Skip to content

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 the manifest.yml file
  • --docker: will create Dockerfile and .dockerignore files
  • --toolchain: will create .bluemix dir and the toolchain related file there

A docker image can be created and published on Bluemix using the generated Dockerfile

Test set up

If you want to test the features, do the following.

  1. Clone these repos:
  1. Install the dependencies in loopback-cli, generator-loopback, and loopback-workspace
  2. Delete generator-loopback dir from loopback-cli/node_modules/
  3. Symlink generator-loopback project dir to loopback-cli/node_modules/.
  4. Delete loopback-workspace dir from generator-loopback/node_modules/loopback-workspace
  5. Symlink loopback-workspace project dir to generator-loopback/node_modules/loopback-workspace.
  6. Checkout the command/bluemix branch in loopback-cli
  7. Checkout the command/bluemix branch in generator-loopback
  8. Checkout the command/bluemix branch in loopback-workspace
  9. Run npm link in the loopback-cli dir.
  10. Refer to the README of loopback-cli for updated commands to test their functionality.
Clone this wiki locally