-
Notifications
You must be signed in to change notification settings - Fork 383
LoopBack Bluemix native tooling
Rand McKinney edited this page Mar 20, 2017
·
5 revisions
There is a new --bluemix option for several lb commands.
- 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
npm install -g strongloop/loopback-cli#command/bluemix-beta
Bluemix-specific configuration:
lb --bluemix
? How much memory to allocate for the app? 256M
? How many instances of app to run? 2
? What is the domain name of the app? mybluemix.net
? What is the subdomain of the app? bmtest
? How much disk space to allocate for the app? 1G
? Do you want to create toolchain files? Yes
? Do you want create Dockerfile? Yes
? Do you want to enable autoscaling? Yes
? Do you want to enable appmetrics? Yes