-
Notifications
You must be signed in to change notification settings - Fork 383
LoopBack Bluemix native tooling
Rand McKinney edited this page Mar 17, 2017
·
5 revisions
There is a new option: --bluemix is added to lb datasource.
- When used with
lb, user will get Bluemix config prompts, using which the Bluemix artefacts will be generated. - When used with
lb datasource, it will fetch the provisioned datasource services from Bluemix and present them in the list of choices for datasource to add. Currently only Cloudant and MongoDB services are supported. - When used with
lb model, only BM datasources will be listed in the datasource option for the new model.
The new lb bluemix command has the following options:
-
--manifest: will generate/update themanifest.ymlfile -
--docker: will createDockerfileand.dockerignorefiles -
--toolchain: will create.bluemixdir and the toolchain related file there
A docker image can be created and published on Bluemix using the generated Dockerfile
If you want to test the features, do the following.
- Clone these repos:
- https://github.com/strongloop/loopback-cli
- https://github.com/strongloop/generator-loopback
- https://github.com/strongloop/loopback-workspace
- Install the dependencies in
loopback-cli,generator-loopback, andloopback-workspace - Delete
generator-loopbackdir fromloopback-cli/node_modules/ - Symlink
generator-loopbackproject dir toloopback-cli/node_modules/. - Delete
loopback-workspacedir fromgenerator-loopback/node_modules/loopback-workspace - Symlink
loopback-workspaceproject dir togenerator-loopback/node_modules/loopback-workspace. - Checkout the
command/bluemixbranch inloopback-cli - Checkout the
command/bluemixbranch ingenerator-loopback - Checkout the
command/bluemixbranch inloopback-workspace - Run
npm linkin theloopback-clidir. - Refer to the README of
loopback-clifor updated commands to test their functionality.