Bluemix essentials
Cloud/Bluemix2017. 3. 18. 20:08
https://developer.ibm.com/courses/all-courses/bluemix-essentials/
Start Course
Register
시작
설치
martket place에서 두가지를 설치해야한다.
1. Eclipse Tools for Bluemix for Neon
2. Node.js Tools for Eclipse
jar를 하나 다운로드 받는 과정에서 시간이 오래소요됨. 몇번을 껐다킴.
편리한 편집기. 오픈소스기반
Bluemix interface tour
Lab: boilerplates
Starter code download가 처음에 나오지 않아서 다시 지웠다가 생성하니, 생김. 아직은 좀 불안정한가보다.
c:\first-myung>cf cs cloudantNoSQLDB Lite BICloudant
Creating service instance BICloudant in org jesang.myung / space test as jesang.myung@gmail.com...
OK
c:\first-myung>cf push first-myung -c "node app.js" -m 128M --no-manifest --no-start
Creating app first-myung in org jesang.myung / space test as jesang.myung@gmail.com...
OK
Creating route first-myung.mybluemix.net...
OK
Binding first-myung.mybluemix.net to first-myung...
OK
Uploading first-myung...
Uploading app files from: C:\first-myung
Uploading 113.6K, 29 files
Done uploading
OK
c:\first-myung>cf bs first-myung BICloudant
Binding service BICloudant to app first-myung in org jesang.myung / space test as jesang.myung@gmail.com...
OK
TIP: Use 'cf restage first-myung' to ensure your env variable changes take effect
c:\first-myung>cf start first-myung
Starting app first-myung in org jesang.myung / space test as jesang.myung@gmail.com...
Downloading liberty-for-java...
Downloading dotnet-core...
Downloaded liberty-for-java
Downloading swift_buildpack...
Downloaded xpages_buildpack
Downloaded liberty-for-java_v3_7-20170118-2046
Downloading java_buildpack...
Downloading ruby_buildpack...
Downloading liberty-for-java_v3_7-20170118-2046...
Downloaded dotnet-core
Downloading nodejs_buildpack...
Downloaded ruby_buildpack
Downloading go_buildpack...
Downloaded noop-buildpack
Downloading python_buildpack...
Downloading liberty-for-java_v3_4_1-20161030-2241...
Downloading php_buildpack...
Downloaded nodejs_buildpack
Downloading staticfile_buildpack...
Downloaded go_buildpack
Downloading binary_buildpack...
Downloading dotnet-core_v1_0_6-20161205-0912...
Downloaded liberty-for-java_v3_4_1-20161030-2241
Downloaded python_buildpack
Downloading liberty-for-java_v3_5-20161114-1152...
Downloaded php_buildpack
Downloading sdk-for-nodejs_v3_9-20161128-1327...
Downloading swift_buildpack_v2_0_3-20161217-1748...
Downloaded dotnet-core_v1_0_6-20161205-0912
Downloaded binary_buildpack
Downloaded sdk-for-nodejs_v3_9-20161128-1327
Downloaded swift_buildpack_v2_0_3-20161217-1748
Creating container
Successfully created container
Downloading app package...
Downloaded app package (233.9K)
Staging...
-----> IBM SDK for Node.js Buildpack v3.10-20170119-1146
Based on Cloud Foundry Node.js Buildpack v1.5.24
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=true
-----> Installing binaries
NODE_ENV=production
NODE_MODULES_CACHE=true
engines.node (package.json): 4.x
engines.npm (package.json): unspecified (use default)
Resolving node version 4.x via 'node-version-resolver'
Installing IBM SDK for Node.js (4.7.2) from cache
Using default npm version: 2.15.11
-----> Restoring cache
Skipping cache restore (new runtime signature)
-----> Building dependencies
Installing node modules (package.json)
method-override@2.3.7 node_modules/method-override
├── methods@1.1.2
├── vary@1.1.0
├── parseurl@1.3.1
└── debug@2.3.3 (ms@0.7.2)
├── basic-auth@1.0.4
└── debug@2.2.0 (ms@0.7.1)
├── on-finished@2.3.0 (ee-first@1.1.1)
├── debug@2.2.0 (ms@0.7.1)
├── raw-body@2.1.7 (unpipe@1.0.0, bytes@2.4.0)
morgan@1.6.1 node_modules/morgan
├── on-headers@1.0.1
├── depd@1.0.1
├── on-finished@2.3.0 (ee-first@1.1.1)
ejs@2.4.2 node_modules/ejs
body-parser@1.14.2 node_modules/body-parser
├── content-type@1.0.2
├── bytes@2.2.0
├── depd@1.1.0
├── qs@5.2.0
├── http-errors@1.3.1 (inherits@2.0.3, statuses@1.3.1)
├── iconv-lite@0.4.13
└── type-is@1.6.14 (media-typer@0.3.0, mime-types@2.1.14)
errorhandler@1.4.3 node_modules/errorhandler
├── escape-html@1.0.3
└── accepts@1.3.3 (negotiator@0.6.1, mime-types@2.1.14)
├── qs@4.0.0
├── on-finished@2.3.0 (ee-first@1.1.1)
├── type-is@1.6.14 (media-typer@0.3.0, mime-types@2.1.14)
└── multiparty@4.1.3 (fd-slicer@1.0.1)
├── escape-html@1.0.3
├── content-type@1.0.2
├── methods@1.1.2
├── array-flatten@1.1.1
├── cookie-signature@1.0.6
├── utils-merge@1.0.0
├── merge-descriptors@1.0.1
├── vary@1.0.1
├── cookie@0.1.5
├── content-disposition@0.5.1
├── range-parser@1.0.3
├── path-to-regexp@0.1.7
├── fresh@0.3.0
├── etag@1.7.0
├── depd@1.1.0
├── qs@4.0.0
├── on-finished@2.3.0 (ee-first@1.1.1)
├── finalhandler@0.4.1 (unpipe@1.0.0)
├── debug@2.2.0 (ms@0.7.1)
├── proxy-addr@1.0.10 (forwarded@0.1.0, ipaddr.js@1.0.5)
├── send@0.13.1 (ms@0.7.1, destroy@1.0.4, statuses@1.2.1, mime@1.3.4, http-errors@1.3.1)
└── serve-static@1.10.3 (send@0.13.2)
cloudant@1.4.3 node_modules/cloudant
├── debug@2.2.0 (ms@0.7.1)
└── nano@6.2.0 (underscore@1.8.3, errs@0.3.2, follow@0.12.1, request@2.81.0)
-----> Checking and configuring service extensions after installing dependencies
-----> Installing App Management
-----> Caching build
Clearing previous node cache
Saving 2 cacheDirectories (default):
- node_modules
- bower_components (nothing to cache)
├── body-parser@1.14.2
├── cloudant@1.4.3
├── connect-multiparty@2.0.0
├── ejs@2.4.2
├── errorhandler@1.4.3
├── express@4.13.4
├── method-override@2.3.7
└── morgan@1.6.1
Exit status 0
Staging complete
Uploading build artifacts cache...
Uploading droplet...
Uploaded droplet (19.8M)
Uploading complete
Destroying container
Successfully destroyed container
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
1 of 1 instances running
App started
OK
App first-myung was started using this command `node app.js`
Showing health and status for app first-myung in org jesang.myung / space test as jesang.myung@gmail.com...
OK
requested state: started
instances: 1/1
usage: 128M x 1 instances
urls: first-myung.mybluemix.net
last uploaded: Sun Mar 19 12:36:13 UTC 2017
stack: cflinuxfs2
buildpack: SDK for Node.js(TM) (ibm-node.js-4.7.2, buildpack-v3.10-20170119-1146)
state since cpu memory disk details
#0 running 2017-03-19 09:45:12 PM 0.0% 1.1M of 128M 1.3M of 1G