SlideShare une entreprise Scribd logo
1  sur  22
Télécharger pour lire hors ligne
GE	Predix	 	
	 . . 	
By Kai Zhao kingaim@gmail.com
https://cn.linkedin.com/in/kai-zhao-63403212
&
Zheming Zhang
https://cn.linkedin.com/in/sonny-zhang-184a4761
Code
Repository
https://github.com/cloudfoundry-samples
https://github.com/PredixDev
VCAP-
SERVICES
http://docs.run.pivotal.io/devguide/deploy-apps/environment-
variable.html#VCAP-SERVICES
Environment
Variable
http://docs.run.pivotal.io/devguide/deploy-apps/environment-
variable.html
CF all cmds http://cli.cloudfoundry.org/en-US/cf/
Service Broker http://blog.csdn.net/zhaozhenyang_go/article/details/32078665
Overview of
CF
https://docs.cloudfoundry.org/concepts/overview.html
Predix Entry https://predix-io.run.xxxx.predix.io
Step 1: Install the cf-clli
References https://github.com/cloudfoundry/cli#downloads
Actions Mac OS X (using Homebrew via the cloudfoundry tap):
$ brew tap cloudfoundry/tap
$ brew install cf-cli
KaiZhaos-MacBook-Pro:~ kaizhao$ brew tap cloudfoundry/tap
==> Tapping cloudfoundry/tap
Cloning into '/usr/local/Library/Taps/cloudfoundry/homebrew-tap'...
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10 (delta 0), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (10/10), done.
Checking connectivity... done.
Tapped 3 formulae (39 files, 43.2K)
KaiZhaos-MacBook-Pro:~ kaizhao$ brew install cf-cli
==> Installing cf-cli from cloudfoundry/tap
==> Downloading https://cli.run.pivotal.io/stable?release=macosx64-
binary&versio
==> Downloading from https://s3-us-west-1.amazonaws.com/cf-cli-
releases/releases
####################################################################
#### 100.0%
! /usr/local/Cellar/cf-cli/6.22.2: 2 files, 20.5M, built in 6
minutes 37 seconds
KaiZhaos-MacBook-Pro:~ kaizhao$ cf
cf version 6.22.2+a95e24c-2016-10-27, Cloud Foundry command line
tool
Usage: cf [global options] command [arguments...] [command options]
Before getting started:
config login,l target,t
help,h logout,lo
Application lifecycle:
apps,a logs set-env,se
push,p ssh create-app-manifest
start,st app
stop,sp env,e
restart,rs scale
restage,rg events
Services integration:
marketplace,m create-user-provided-service,cups
services,s update-user-provided-service,uups
create-service,cs create-service-key,csk
update-service delete-service-key,dsk
delete-service,ds service-keys,sk
service service-key
bind-service,bs bind-route-service,brs
unbind-service,us unbind-route-service,urs
Route and domain management:
routes,r delete-route create-domain
domains map-route
create-route unmap-route
Space management:
spaces create-space set-space-role
space-users delete-space unset-space-role
Org management:
orgs,o set-org-role
org-users unset-org-role
CLI plugin management:
plugins add-plugin-repo repo-plugins
install-plugin list-plugin-repos
Commands offered by installed plugins:
Global options:
--help, -h Show help
-v Print API request diagnostics
to stdout
'cf help -a' lists all commands with short descriptions. See 'cf
help <command>' to read about a specific command.
Step 2: Connect to the CloudFoundry with cf login
References http://docs.cloudfoundry.org/cf-cli/getting-started.html
KaiZhaos-MacBook-Pro:~ kaizhao$ cf login -a
https://api.system.xxxx.predix.io -u xxxxxx@qq.com
API endpoint: https://api.system.xxxx.predix.io
Password>
Authenticating...
OK
Targeted org Shanghai_Foundry
Targeted space xxxxxx@qq.com
API endpoint: https://api.system.xxxx.predix.io (API version:
2.62.0)
User: xxxxxx@qq.com
Org: Shanghai_Foundry
Space: xxxxxx@qq.com
KaiZhaos-MacBook-Pro:~ kaizhao$
Step 3:List all marketplace offering
References
http://cli.cloudfoundry.org/en-US/cf/marketplace.html
NAME
marketplace - List available offerings in the
marketplace
USAGE
cf marketplace [-s SERVICE]
ALIAS
m
OPTIONS
-s
Show plan details for a particular service
offering
SEE ALSO
create-service, services
KaiZhaos-MacBook-Pro:~ kaizhao$ cf marketplace
Getting services from marketplace in org Shanghai_Foundry / space
xxxxxx@qq.com as xxxxxx@qq.com...
OK
service plans
description
event-audit-trail Beta A
service to create and maintain an event audit trail
logstash free
Logstash 1.4 service for application development and testing
p-rabbitmq-35 standard
RabbitMQ is a robust and scalable high-performance multi-protocol
messaging broker.
postgres shared-nr, shared, Dedicated-R-Bronze
Reliable PostgrSQL Service
predix-acs Tiered*, Free
Use this service to provide a more powerful framework than basic
User Account and Authentication.
predix-analytics-catalog Bronze*, Silver*, Gold*, Free
Add analytics to the Predix cloud for use with the Analytics Runtime
Service.
predix-analytics-runtime Bronze*, Silver*, Gold*, Free
Use this service to support elastic execution of the analytic
orchestration.
predix-analytics-ui Free
Use this browser-based user interface to upload, validate, and run
analytics.
predix-asset Free, Tiered*
Create and store machine asset models and instances.
predix-blobstore Tiered*
Use this binary large object storage (BLOB) to securely store large
byte arrays and retrieve data using any file type.
predix-tms Tiered*
Use this service to provision service instances for a tenant and
provide runtime access.
predix-uaa Tiered*, Free
Use this service for a full-featured OAuth 2.0 server.
predix-views Standard*, Free
Control layout and components within your client-side web or mobile
app.
rabbitmq-36 standard
RabbitMQ is a robust and scalable high-performance multi-protocol
messaging broker.
redis shared-vm
Redis service to provide a key-value store
* These service plans have an associated cost. Creating a service
instance will incur this cost.
TIP: Use 'cf marketplace -s SERVICE' to view descriptions of
individual plans of a given service.
KaiZhaos-MacBook-Pro:~ kaizhao$ cf marketplace -s postgres
Getting service plan information for service postgres as
xxxxxx@qq.com...
OK
service plan description
free or paid
shared-nr A PostgreSQL database with no replication on a
shared server. free
shared A Reliable PostgreSQL database on a shared
server. free
Dedicated-R-Bronze Replicated database in a dedicated environment
(Beta) free
KaiZhaos-MacBook-Pro:~ kaizhao$
Step 4: List all services
References http://cli.cloudfoundry.org/en-US/cf/services.html
cf services
KaiZhaos-MacBook-Pro:~ kaizhao$ cf services
Getting services in org Shanghai_Foundry / space xxxxxx@qq.com as
xxxxxx@qq.com...
OK
name service plan bound apps last operation
kzpgsql postgres shared-nr create succeeded
KaiZhaos-MacBook-Pro:~ kaizhao$
Step 5: Show service instance info
References https://docs.cloudfoundry.org/cf-cli/cf-
help.html#services
cf service service_instance
use –guid to retrieve and display the guid of the
service instance
KaiZhaos-MacBook-Pro:~ kaizhao$ cf services
Getting services in org Shanghai_Foundry / space xxxxxx@qq.com as
xxxxxx@qq.com...
OK
name service plan bound apps last operation
kzpgsql postgres shared-nr create succeeded
KaiZhaos-MacBook-Pro:~ kaizhao$ cf service kzpgsql
Service instance: kzpgsql
Service: postgres
Bound apps:
Tags:
Plan: shared-nr
Description: Reliable PostgrSQL Service
Documentation url:
Dashboard:
Last Operation
Status: create succeeded
Message:
Started: 2016-11-23T14:08:25Z
Updated:
KaiZhaos-MacBook-Pro:~ kaizhao$ cf service kzpgsql --guid
72a9143d-98f6-4b21-a9e0-a6cc11acb1cf
Step 5: Create a service instance
KaiZhaos-MacBook-Pro:~ kaizhao$ cf create-service postgres shared-nr
kzpgsql2
Creating service instance kzpgsql2 in org Shanghai_Foundry / space
xxxxxx@qq.com as xxxxxx@qq.com...
OK
KaiZhaos-MacBook-Pro:~ kaizhao$ cf services
Getting services in org Shanghai_Foundry / space xxxxxx@qq.com as
xxxxxx@qq.com...
OK
name service plan bound apps last operation
kzpgsql postgres shared-nr create succeeded
kzpgsql2 postgres shared-nr create succeeded
KaiZhaos-MacBook-Pro:~ kaizhao$ cf service kzpgsql2
Service instance: kzpgsql2
Service: postgres
Bound apps:
Tags:
Plan: shared-nr
Description: Reliable PostgrSQL Service
Documentation url:
Dashboard:
Last Operation
Status: create succeeded
Message:
Started: 2016-11-23T15:23:11Z
Updated:
Step 6: Create a user provided service and add to cf
KaiZhaos-MacBook-Pro:~ kaizhao$ cf create-user-provided-service viz
-r https://www.connectf.com/fe
Creating user provided service viz in org Shanghai_Foundry / space
xxxxxx@qq.com as xxxxxx@qq.com...
OK
KaiZhaos-MacBook-Pro:~ kaizhao$ cf services
Getting services in org Shanghai_Foundry / space xxxxxx@qq.com as
xxxxxx@qq.com...
OK
name service plan bound apps last operation
kzpgsql postgres shared-nr create succeeded
kzpgsql2 postgres shared-nr create succeeded
viz user-provided
Step 7: Push application
Reference https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html
KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ ls
README.md Staticfile hello-world.py index.html manifest.yml
KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf push
Using manifest file
/Users/kaizhao/Desktop/Predix/cf/predixdev/Predix-HelloWorld-
WebApp/manifest.yml
Using stack cflinuxfs2...
OK
Creating app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry /
space xxxxxx@qq.com as xxxxxx@qq.com...
OK
Creating route predix-helloworld-webapp-kz.run.xxxx.predix.io...
OK
Binding predix-helloworld-webapp-kz.run.xxxx.predix.io to Predix-
HelloWorld-WebApp-KZ...
OK
Uploading Predix-HelloWorld-WebApp-KZ...
Uploading app files from:
/Users/kaizhao/Desktop/Predix/cf/predixdev/Predix-HelloWorld-WebApp
Uploading 3.1K, 4 files
Done uploading
OK
Starting app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry /
space xxxxxx@qq.com as xxxxxx@qq.com...
-----> Downloaded app package (4.0K)
-------> Buildpack version 1.3.10
Downloaded
[file:///var/vcap/data/dea_next/admin_buildpacks/51ffcab3-8408-4bef-
8a59-
5180999db286_b476477d537f3b4e29b121b7cd4fde0f57bd730f/dependencies/h
ttps___buildpacks.cloudfoundry.org_concourse-binaries_nginx_nginx-
1.11.3-linux-x64.tgz]
-----> Using root folder
-----> Copying project files into public/
-----> Setting up nginx
-----> Uploading droplet (2.6M)
1 of 1 instances running
App started
OK
App Predix-HelloWorld-WebApp-KZ was started using this command `sh
boot.sh`
Showing health and status for app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
requested state: started
instances: 1/1
usage: 256M x 1 instances
urls: predix-helloworld-webapp-kz.run.xxxx.predix.io
last uploaded: Wed Nov 23 18:03:12 UTC 2016
stack: cflinuxfs2
buildpack: staticfile_buildpack
state since cpu memory disk
details
#0 running 2016-11-24 02:03:25 AM 0.0% 3.7M of 256M 5.6M
of 1G
Step 8: Show all environment variables for an application instance
Reference http://cli.cloudfoundry.org/en-US/cf/env.html
KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf env
Predix-HelloWorld-WebApp-KZ
Getting env variables for app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
System-Provided:
{
"VCAP_APPLICATION": {
"application_id": "95d878d5-600b-4672-b9ca-5b3a69c615d5",
"application_name": "Predix-HelloWorld-WebApp-KZ",
"application_uris": [
"predix-helloworld-webapp-kz.run.xxxx.predix.io"
],
"application_version": "3487cb8c-3260-485a-a915-c845fb2aef8d",
"limits": {
"disk": 1024,
"fds": 16384,
"mem": 256
},
"name": "Predix-HelloWorld-WebApp-KZ",
"space_id": "46d6aa19-f64e-46be-84d6-f888701a68d0",
"space_name": "xxxxxx@qq.com",
"uris": [
"predix-helloworld-webapp-kz.run.xxxx.predix.io"
],
"users": null,
"version": "3487cb8c-3260-485a-a915-c845fb2aef8d"
}
}
No user-defined env variables have been set
No running env variables have been set
No staging env variables have been set
Step 9: Bind application with service
References http://cli.cloudfoundry.org/en-US/cf/bind-
service.html
KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf env
Predix-HelloWorld-WebApp-KZ
Getting env variables for app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
System-Provided:
{
"VCAP_APPLICATION": {
"application_id": "95d878d5-600b-4672-b9ca-5b3a69c615d5",
"application_name": "Predix-HelloWorld-WebApp-KZ",
"application_uris": [
"predix-helloworld-webapp-kz.run.xxxx.predix.io"
],
"application_version": "3487cb8c-3260-485a-a915-c845fb2aef8d",
"limits": {
"disk": 1024,
"fds": 16384,
"mem": 256
},
"name": "Predix-HelloWorld-WebApp-KZ",
"space_id": "46d6aa19-f64e-46be-84d6-f888701a68d0",
"space_name": "xxxxxx@qq.com",
"uris": [
"predix-helloworld-webapp-kz.run.xxxx.predix.io"
],
"users": null,
"version": "3487cb8c-3260-485a-a915-c845fb2aef8d"
}
}
No user-defined env variables have been set
No running env variables have been set
No staging env variables have been set
KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf bind-
service predix-helloworld-webapp-kz kzpgsql
Binding service kzpgsql to app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
TIP: Use 'cf restage Predix-HelloWorld-WebApp-KZ' to ensure your env
variable changes take effect
KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf restage
Predix-HelloWorld-WebApp-KZ
Restaging app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry /
space xxxxxx@qq.com as xxxxxx@qq.com...
-----> Downloaded app package (4.0K)
-----> Downloaded app buildpack cache (4.0K)
-------> Buildpack version 1.3.10
Downloaded
[file:///var/vcap/data/dea_next/admin_buildpacks/51ffcab3-8408-4bef-
8a59-
5180999db286_b476477d537f3b4e29b121b7cd4fde0f57bd730f/dependencies/h
ttps___buildpacks.cloudfoundry.org_concourse-binaries_nginx_nginx-
1.11.3-linux-x64.tgz]
-----> Using root folder
-----> Copying project files into public/
-----> Setting up nginx
-----> Uploading droplet (2.6M)
1 of 1 instances running
App started
OK
App Predix-HelloWorld-WebApp-KZ was started using this command `sh
boot.sh`
Showing health and status for app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
requested state: started
instances: 1/1
usage: 256M x 1 instances
urls: predix-helloworld-webapp-kz.run.xxxx.predix.io
last uploaded: Wed Nov 23 18:03:12 UTC 2016
stack: cflinuxfs2
buildpack: staticfile_buildpack
state since cpu memory disk
details
#0 running 2016-11-24 02:17:37 AM 0.0% 3.8M of 256M 5.6M
of 1G
KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf env
Predix-HelloWorld-WebApp-KZ
Getting env variables for app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
System-Provided:
{
"VCAP_SERVICES": {
"postgres": [
{
"credentials": {
"ID": 0,
"binding_id": "3ce9dfeb-d0f4-4a00-899b-46eff5da03d8",
"database": "db128956807f549728dad6a7e2300d9b4",
"dsn": "host=10.120.8.137 port=5432
user=ub128956807f549728dad6a7e2300d9b4
password=e2432869763245c684e855e7a393b463
dbname=db128956807f549728dad6a7e2300d9b4 connect_timeout=5
sslmode=disable",
"host": "10.120.8.137",
"instance_id": "72a9143d-98f6-4b21-a9e0-a6cc11acb1cf",
"jdbc_uri":
"jdbc:postgresql://10.120.8.137:5432/db128956807f549728dad6a7e2300d9
b4?user=ub128956807f549728dad6a7e2300d9b4u0026password=e24328697632
45c684e855e7a393b463u0026ssl=false",
"password": "e2432869763245c684e855e7a393b463",
"port": "5432",
"uri":
"postgres://ub128956807f549728dad6a7e2300d9b4:e2432869763245c684e855
e7a393b463@10.120.8.137:5432/db128956807f549728dad6a7e2300d9b4?sslmo
de=disable",
"username": "ub128956807f549728dad6a7e2300d9b4"
},
"label": "postgres",
"name": "kzpgsql",
"plan": "shared-nr",
"provider": null,
"syslog_drain_url": null,
"tags": [
"rdpg",
"postgresql"
],
"volume_mounts": []
}
]
}
}
{
"VCAP_APPLICATION": {
"application_id": "95d878d5-600b-4672-b9ca-5b3a69c615d5",
"application_name": "Predix-HelloWorld-WebApp-KZ",
"application_uris": [
"predix-helloworld-webapp-kz.run.xxxx.predix.io"
],
"application_version": "b9ba301c-ff4d-4ec9-bc9d-d4034a0dcf84",
"limits": {
"disk": 1024,
"fds": 16384,
"mem": 256
},
"name": "Predix-HelloWorld-WebApp-KZ",
"space_id": "46d6aa19-f64e-46be-84d6-f888701a68d0",
"space_name": "xxxxxx@qq.com",
"uris": [
"predix-helloworld-webapp-kz.run.xxxx.predix.io"
],
"users": null,
"version": "b9ba301c-ff4d-4ec9-bc9d-d4034a0dcf84"
}
}
No user-defined env variables have been set
No running env variables have been set
No staging env variables have been set
Step 10: Create service key for service instance
References http://cli.cloudfoundry.org/en-US/cf/bind-
service.html
KaiZhaos-MacBook-Pro:~ kaizhao$ cf create-service-key kzpgsql2
kzpgsqlkey2
Creating service key kzpgsqlkey2 for service instance kzpgsql2 as
xxxxxx@qq.com...
OK
KaiZhaos-MacBook-Pro:~ kaizhao$ cf service-key kzpgsql2 kzpgsqlkey2
Getting key kzpgsqlkey2 for service instance kzpgsql2 as
xxxxxx@qq.com...
{
"ID": 0,
"binding_id": "d7342d96-7680-4e61-94fd-35419d6ecab0",
"database": "d8c27e972779844d0b31ad0b2e4d7b821",
"dsn": "host=10.120.8.137 port=5432
user=u8c27e972779844d0b31ad0b2e4d7b821
password=68eddfeec36940489ee42e07d2ba1271
dbname=d8c27e972779844d0b31ad0b2e4d7b821 connect_timeout=5
sslmode=disable",
"host": "10.120.8.137",
"instance_id": "15e876dd-e3a3-4ded-842a-fa27f1703221",
"jdbc_uri":
"jdbc:postgresql://10.120.8.137:5432/d8c27e972779844d0b31ad0b2e4d7b8
21?user=u8c27e972779844d0b31ad0b2e4d7b821u0026password=68eddfeec369
40489ee42e07d2ba1271u0026ssl=false",
"password": "68eddfeec36940489ee42e07d2ba1271",
"port": "5432",
"uri":
"postgres://u8c27e972779844d0b31ad0b2e4d7b821:68eddfeec36940489ee42e
07d2ba1271@10.120.8.137:5432/d8c27e972779844d0b31ad0b2e4d7b821?sslmo
de=disable",
"username": "u8c27e972779844d0b31ad0b2e4d7b821"
}
KaiZhaos-MacBook-Pro:~ kaizhao$
Step 11: Print the version
Reference http://cli.cloudfoundry.org/en-US/cf/version.html
KaiZhaos-MacBook-Pro:~ kaizhao$ cf version
cf version 6.22.2+a95e24c-2016-10-27
Step 12: Set or view target api url
Reference http://cli.cloudfoundry.org/en-US/cf/api.html
cf api
KaiZhaos-MacBook-Pro:~ kaizhao$ cf api
API endpoint: https://api.system.xxxx.predix.io (API version:
2.62.0)
KaiZhaos-MacBook-Pro:~ kaizhao$
Step 13: Application Scalable
Reference http://cli.cloudfoundry.org/en-US/cf/scale.html
USAGE
cf scale APP_NAME [-i INSTANCES] [-k DISK] [-
m MEMORY] [-f]
OPTIONS
-f
Force restart of app without prompt
-i
Number of instances
-k
Disk limit (e.g. 256M, 1024M, 1G)
-m
Memory limit (e.g. 256M, 1024M, 1G)
scale - Change or view the instance count, disk space limit, and memory limit for an app
KaiZhaos-MacBook-Pro:~ kaizhao$ cf scale Predix-HelloWorld-WebApp-KZ
Showing current scale of app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
memory: 256M
disk: 1G
instances: 1
KaiZhaos-MacBook-Pro:~ kaizhao$ cf scale Predix-HelloWorld-WebApp-KZ
Showing current scale of app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
memory: 256M
disk: 1G
instances: 1
KaiZhaos-MacBook-Pro:~ kaizhao$ cf scale Predix-HelloWorld-WebApp-KZ
-m 512M
This will cause the app to restart. Are you sure you want to scale
Predix-HelloWorld-WebApp-KZ?> y
Scaling app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry /
space xxxxxx@qq.com as xxxxxx@qq.com...
OK
Stopping app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry /
space xxxxxx@qq.com as xxxxxx@qq.com...
OK
Starting app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry /
space xxxxxx@qq.com as xxxxxx@qq.com...
0 of 1 instances running, 1 starting
1 of 1 instances running
App started
OK
App Predix-HelloWorld-WebApp-KZ was started using this command `sh
boot.sh`
Showing health and status for app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
requested state: started
instances: 1/1
usage: 512M x 1 instances
urls: predix-helloworld-webapp-kz.run.xxxx.predix.io
last uploaded: Wed Nov 23 18:03:12 UTC 2016
stack: cflinuxfs2
buildpack: staticfile_buildpack
state since cpu memory disk
details
#0 running 2016-11-24 09:39:09 PM 0.0% 3.8M of 512M 5.6M
of 1G
KaiZhaos-MacBook-Pro:~ kaizhao$ cf scale Predix-HelloWorld-WebApp-KZ
Showing current scale of app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
memory: 512M
disk: 1G
instances: 1
KaiZhaos-MacBook-Pro:~ kaizhao$
Step 14: Stop all instances of the app, then start them again. This may
cause downtime.
Reference http://cli.cloudfoundry.org/en-US/cf/restart.html
cf restart APP_NAME
KaiZhaos-MacBook-Pro:~ kaizhao$ cf restart Predix-HelloWorld-WebApp-
KZ
Stopping app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry /
space xxxxxx@qq.com as xxxxxx@qq.com...
OK
Starting app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry /
space xxxxxx@qq.com as xxxxxx@qq.com...
1 of 1 instances running
App started
OK
App Predix-HelloWorld-WebApp-KZ was started using this command `sh
boot.sh`
Showing health and status for app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
requested state: started
instances: 1/1
usage: 512M x 1 instances
urls: predix-helloworld-webapp-kz.run.xxxx.predix.io
last uploaded: Wed Nov 23 18:03:12 UTC 2016
stack: cflinuxfs2
buildpack: staticfile_buildpack
state since cpu memory disk
details
#0 running 2016-11-24 10:24:58 PM 0.0% 3.7M of 512M 5.6M
KaiZhaos-MacBook-Pro:~ kaizhao$ cf app Predix-HelloWorld-WebApp-KZ
Showing health and status for app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
requested state: started
instances: 1/1
usage: 512M x 1 instances
urls: predix-helloworld-webapp-kz.run.xxxx.predix.io
last uploaded: Wed Nov 23 18:03:12 UTC 2016
stack: cflinuxfs2
buildpack: staticfile_buildpack
state since cpu memory disk
details
#0 running 2016-11-24 10:24:58 PM 0.0% 3.7M of 512M 5.6M
of 1G
Step 15: Show recent application events
Reference http://cli.cloudfoundry.org/en-US/cf/events.html
cf events APP_NAME
KaiZhaos-MacBook-Pro:~ kaizhao$ cf events Predix-HelloWorld-WebApp-
KZ
Getting events for app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
time event actor
description
2016-11-24T22:24:56.00+0800 audit.app.update xxxxxx@qq.com
state: STARTED
2016-11-24T22:24:40.00+0800 audit.app.update xxxxxx@qq.com
state: STOPPED
2016-11-24T21:39:08.00+0800 audit.app.update xxxxxx@qq.com
state: STARTED
2016-11-24T21:39:03.00+0800 audit.app.update xxxxxx@qq.com
state: STOPPED
2016-11-24T21:39:01.00+0800 audit.app.update xxxxxx@qq.com
memory: 512
2016-11-24T03:05:44.00+0800 audit.app.restage xxxxxx@qq.com
2016-11-24T02:17:31.00+0800 audit.app.restage xxxxxx@qq.com
2016-11-24T02:03:18.00+0800 audit.app.update xxxxxx@qq.com
state: STARTED
2016-11-24T02:03:06.00+0800 audit.app.update xxxxxx@qq.com
2016-11-24T02:03:06.00+0800 audit.app.map-route xxxxxx@qq.com
2016-11-24T02:03:03.00+0800 audit.app.create xxxxxx@qq.com
instances: 1, memory: 256, state: STOPPED, environment_json: PRIVATE
DATA HIDDEN
KaiZhaos-MacBook-Pro:~ kaizhao$
Step 16: files - Print out a list of files in a directory or the contents of a
specific file of an app running on the DEA backend
Reference http://cli.cloudfoundry.org/en-US/cf/files.html
cf files APP_NAME [PATH] [-i INSTANCE]
KaiZhaos-MacBook-Pro:~ kaizhao$ cf files Predix-HelloWorld-WebApp-KZ
Getting files for app Predix-HelloWorld-WebApp-KZ in org
Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
OK
.bash_logout 220B
.bashrc 3.6K
.profile 675B
app/ -
logs/ -
run.pid 3B
staging_info.yml 226B
tmp/ -
Step 17: Tail or show recent logs for an app
Reference http://cli.cloudfoundry.org/en-US/cf/logs.html
cf logs APP_NAME --recent
KaiZhaos-MacBook-Pro:~ kaizhao$ cf logs Predix-HelloWorld-WebApp-KZ
--recent
Connected, dumping recent logs for app Predix-HelloWorld-WebApp-KZ
in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
2016-11-24T21:39:01.44+0800 [API/0] OUT Updated app with guid
95d878d5-600b-4672-b9ca-5b3a69c615d5 ({"memory"=>512})
2016-11-24T21:39:03.68+0800 [API/0] OUT Updated app with guid
95d878d5-600b-4672-b9ca-5b3a69c615d5 ({"state"=>"STOPPED"})
2016-11-24T21:39:03.72+0800 [App/0] ERR
2016-11-24T21:39:03.72+0800 [App/0] OUT
2016-11-24T21:39:08.11+0800 [API/0] OUT Updated app with guid
95d878d5-600b-4672-b9ca-5b3a69c615d5 ({"state"=>"STARTED"})
2016-11-24T21:39:08.12+0800 [DEA/5] OUT Starting app instance
(index 0) with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5
2016-11-24T22:24:40.59+0800 [API/0] OUT Updated app with guid
95d878d5-600b-4672-b9ca-5b3a69c615d5 ({"state"=>"STOPPED"})
2016-11-24T22:24:40.63+0800 [App/0] ERR
2016-11-24T22:24:40.63+0800 [App/0] OUT
2016-11-24T22:24:41.64+0800 [DEA/5] OUT Stopping app instance
(index 0) with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5
2016-11-24T22:24:41.64+0800 [DEA/5] OUT Stopped app instance
(index 0) with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5
2016-11-24T22:24:56.52+0800 [API/0] OUT Updated app with guid
95d878d5-600b-4672-b9ca-5b3a69c615d5 ({"state"=>"STARTED"})
2016-11-24T22:24:56.52+0800 [DEA/5] OUT Starting app instance
(index 0) with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5
KaiZhaos-MacBook-Pro:~ kaizhao$
Step 18: List all stacks (a stack is a pre-built file system, including an
operating system, that can run apps)
Reference http://cli.cloudfoundry.org/en-US/cf/stacks.html
cf stacks
KaiZhaos-MacBook-Pro:~ kaizhao$ cf stacks
Getting stacks in org Shanghai_Foundry / space xxxxxx@qq.com as
xxxxxx@qq.com...
OK
name description
cflinuxfs2 Cloud Foundry Linux-based filesystem
KaiZhaos-MacBook-Pro:~ kaizhao$
Step 19: org and space information
KaiZhaos-MacBook-Pro:~ kaizhao$ cf orgs
Getting orgs as xxxxxx@qq.com...
name
Shanghai_Foundry
KaiZhaos-MacBook-Pro:~ kaizhao$ cf spaces
Getting spaces in org Shanghai_Foundry as xxxxxx@qq.com...
name
xxxxxx@qq.com
KaiZhaos-MacBook-Pro:~ kaizhao$
Route: map the domain name to a specific instance.
============================================================
Step 20: List all routes in the current space or the current organization
Reference http://cli.cloudfoundry.org/en-US/cf/routes.html
cf routes [--orglevel]
KaiZhaos-MacBook-Pro:~ kaizhao$ cf routes
Getting routes for org Shanghai_Foundry / space xxxxxx@qq.com as
xxxxxx@qq.com ...
space host domain
port path type apps service
xxxxxx@qq.com predix-helloworld-webapp-kz run.xxxx.predix.io
Predix-HelloWorld-WebApp-KZ
KaiZhaos-MacBook-Pro:~ kaizhao$
Step 21: List domains in the target org
Reference http://cli.cloudfoundry.org/en-US/cf/domains.html
cf domains

Contenu connexe

Tendances

Java Application Modernization Patterns and Stories from the IBM Garage
Java Application Modernization Patterns and Stories from the IBM GarageJava Application Modernization Patterns and Stories from the IBM Garage
Java Application Modernization Patterns and Stories from the IBM GarageHolly Cummins
 
Ravello – the Easiest Way to Cloud
Ravello – the Easiest Way to CloudRavello – the Easiest Way to Cloud
Ravello – the Easiest Way to CloudMarketingArrowECS_CZ
 
Cncf checkov and bridgecrew
Cncf checkov and bridgecrewCncf checkov and bridgecrew
Cncf checkov and bridgecrewLibbySchulze
 
Transformace IT s technologiemi VMware
Transformace IT s technologiemi VMwareTransformace IT s technologiemi VMware
Transformace IT s technologiemi VMwareMarketingArrowECS_CZ
 
Deploy Secure Network Architectures for The Connected Enterprise
Deploy Secure Network Architectures for The Connected EnterpriseDeploy Secure Network Architectures for The Connected Enterprise
Deploy Secure Network Architectures for The Connected EnterpriseRockwell Automation
 
Azure and Predix
Azure and PredixAzure and Predix
Azure and PredixAltoros
 
Cloud-Native Workshop New York- Pivotal
Cloud-Native Workshop New York- PivotalCloud-Native Workshop New York- Pivotal
Cloud-Native Workshop New York- PivotalVMware Tanzu
 
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed ServiceCloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed ServiceVMware Tanzu
 
Why AIOps Matters For Kubernetes
Why AIOps Matters For KubernetesWhy AIOps Matters For Kubernetes
Why AIOps Matters For KubernetesTimothy Chen
 
App Mod 01: Moving existing apps to the cloud
App Mod 01: Moving existing apps to the cloudApp Mod 01: Moving existing apps to the cloud
App Mod 01: Moving existing apps to the cloudJudy Breedlove
 
InfoSec: Evolve Thyself to Keep Pace in the Age of DevOps
InfoSec: Evolve Thyself to Keep Pace in the Age of DevOpsInfoSec: Evolve Thyself to Keep Pace in the Age of DevOps
InfoSec: Evolve Thyself to Keep Pace in the Age of DevOpsVMware Tanzu
 
App-First & Cloud-Native: How InterMiles Boosted CX with AWS & Infostretch
App-First & Cloud-Native: How InterMiles Boosted CX with AWS & InfostretchApp-First & Cloud-Native: How InterMiles Boosted CX with AWS & Infostretch
App-First & Cloud-Native: How InterMiles Boosted CX with AWS & InfostretchInfostretch
 
IW13 Keynote, Bill Ruh, GE Software—The Emerging Industrial Internet
IW13 Keynote, Bill Ruh, GE Software—The Emerging Industrial Internet  IW13 Keynote, Bill Ruh, GE Software—The Emerging Industrial Internet
IW13 Keynote, Bill Ruh, GE Software—The Emerging Industrial Internet Software AG
 
NetApp HCI – Hyperkonvergovaná infrastruktura pro datacentra příští generace
NetApp HCI – Hyperkonvergovaná infrastruktura pro datacentra příští generaceNetApp HCI – Hyperkonvergovaná infrastruktura pro datacentra příští generace
NetApp HCI – Hyperkonvergovaná infrastruktura pro datacentra příští generaceMarketingArrowECS_CZ
 
Pivotal Container Service : la nuova soluzione per gestire Kubernetes in azienda
Pivotal Container Service : la nuova soluzione per gestire Kubernetes in aziendaPivotal Container Service : la nuova soluzione per gestire Kubernetes in azienda
Pivotal Container Service : la nuova soluzione per gestire Kubernetes in aziendaVMware Tanzu
 
Accelerate Digital Transformation with Pivotal Cloud Foundry on Azure
Accelerate Digital Transformation with Pivotal Cloud Foundry on AzureAccelerate Digital Transformation with Pivotal Cloud Foundry on Azure
Accelerate Digital Transformation with Pivotal Cloud Foundry on AzureVMware Tanzu
 
D6: Cloud Directions ( Predix Transform 2016)
D6: Cloud Directions ( Predix Transform 2016)D6: Cloud Directions ( Predix Transform 2016)
D6: Cloud Directions ( Predix Transform 2016)Predix
 
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...Altoros
 
"The Cloud Native Enterprise is Coming"
"The Cloud Native Enterprise is Coming" "The Cloud Native Enterprise is Coming"
"The Cloud Native Enterprise is Coming" James Watters
 

Tendances (20)

Java Application Modernization Patterns and Stories from the IBM Garage
Java Application Modernization Patterns and Stories from the IBM GarageJava Application Modernization Patterns and Stories from the IBM Garage
Java Application Modernization Patterns and Stories from the IBM Garage
 
Ravello – the Easiest Way to Cloud
Ravello – the Easiest Way to CloudRavello – the Easiest Way to Cloud
Ravello – the Easiest Way to Cloud
 
Cncf checkov and bridgecrew
Cncf checkov and bridgecrewCncf checkov and bridgecrew
Cncf checkov and bridgecrew
 
Transformace IT s technologiemi VMware
Transformace IT s technologiemi VMwareTransformace IT s technologiemi VMware
Transformace IT s technologiemi VMware
 
Deploy Secure Network Architectures for The Connected Enterprise
Deploy Secure Network Architectures for The Connected EnterpriseDeploy Secure Network Architectures for The Connected Enterprise
Deploy Secure Network Architectures for The Connected Enterprise
 
Azure and Predix
Azure and PredixAzure and Predix
Azure and Predix
 
Moderní management Windows 10
Moderní management Windows 10Moderní management Windows 10
Moderní management Windows 10
 
Cloud-Native Workshop New York- Pivotal
Cloud-Native Workshop New York- PivotalCloud-Native Workshop New York- Pivotal
Cloud-Native Workshop New York- Pivotal
 
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed ServiceCloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
 
Why AIOps Matters For Kubernetes
Why AIOps Matters For KubernetesWhy AIOps Matters For Kubernetes
Why AIOps Matters For Kubernetes
 
App Mod 01: Moving existing apps to the cloud
App Mod 01: Moving existing apps to the cloudApp Mod 01: Moving existing apps to the cloud
App Mod 01: Moving existing apps to the cloud
 
InfoSec: Evolve Thyself to Keep Pace in the Age of DevOps
InfoSec: Evolve Thyself to Keep Pace in the Age of DevOpsInfoSec: Evolve Thyself to Keep Pace in the Age of DevOps
InfoSec: Evolve Thyself to Keep Pace in the Age of DevOps
 
App-First & Cloud-Native: How InterMiles Boosted CX with AWS & Infostretch
App-First & Cloud-Native: How InterMiles Boosted CX with AWS & InfostretchApp-First & Cloud-Native: How InterMiles Boosted CX with AWS & Infostretch
App-First & Cloud-Native: How InterMiles Boosted CX with AWS & Infostretch
 
IW13 Keynote, Bill Ruh, GE Software—The Emerging Industrial Internet
IW13 Keynote, Bill Ruh, GE Software—The Emerging Industrial Internet  IW13 Keynote, Bill Ruh, GE Software—The Emerging Industrial Internet
IW13 Keynote, Bill Ruh, GE Software—The Emerging Industrial Internet
 
NetApp HCI – Hyperkonvergovaná infrastruktura pro datacentra příští generace
NetApp HCI – Hyperkonvergovaná infrastruktura pro datacentra příští generaceNetApp HCI – Hyperkonvergovaná infrastruktura pro datacentra příští generace
NetApp HCI – Hyperkonvergovaná infrastruktura pro datacentra příští generace
 
Pivotal Container Service : la nuova soluzione per gestire Kubernetes in azienda
Pivotal Container Service : la nuova soluzione per gestire Kubernetes in aziendaPivotal Container Service : la nuova soluzione per gestire Kubernetes in azienda
Pivotal Container Service : la nuova soluzione per gestire Kubernetes in azienda
 
Accelerate Digital Transformation with Pivotal Cloud Foundry on Azure
Accelerate Digital Transformation with Pivotal Cloud Foundry on AzureAccelerate Digital Transformation with Pivotal Cloud Foundry on Azure
Accelerate Digital Transformation with Pivotal Cloud Foundry on Azure
 
D6: Cloud Directions ( Predix Transform 2016)
D6: Cloud Directions ( Predix Transform 2016)D6: Cloud Directions ( Predix Transform 2016)
D6: Cloud Directions ( Predix Transform 2016)
 
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...
 
"The Cloud Native Enterprise is Coming"
"The Cloud Native Enterprise is Coming" "The Cloud Native Enterprise is Coming"
"The Cloud Native Enterprise is Coming"
 

En vedette

Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...Lucas Jellema
 
Kylo为企业级的数据湖赋能 赵锴 kai_zhao_大数据_数据湖_datalake
Kylo为企业级的数据湖赋能 赵锴 kai_zhao_大数据_数据湖_datalakeKylo为企业级的数据湖赋能 赵锴 kai_zhao_大数据_数据湖_datalake
Kylo为企业级的数据湖赋能 赵锴 kai_zhao_大数据_数据湖_datalakeKai Zhao
 
物联网IoT用例 赵锴_kaizhao_大数据_物联网_云计算2
物联网IoT用例 赵锴_kaizhao_大数据_物联网_云计算2物联网IoT用例 赵锴_kaizhao_大数据_物联网_云计算2
物联网IoT用例 赵锴_kaizhao_大数据_物联网_云计算2Kai Zhao
 
MongoDB NoSQL database a deep dive -MyWhitePaper
MongoDB  NoSQL database a deep dive -MyWhitePaperMongoDB  NoSQL database a deep dive -MyWhitePaper
MongoDB NoSQL database a deep dive -MyWhitePaperRajesh Kumar
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceAmazon Web Services
 
Barclays global financial services conference sep. 13 2016 final
Barclays global financial services conference sep. 13 2016 finalBarclays global financial services conference sep. 13 2016 final
Barclays global financial services conference sep. 13 2016 finalfirstamericaninvestors
 
Vinculan las malas dietas con muertes cardiovasculares
Vinculan las malas dietas con muertes cardiovascularesVinculan las malas dietas con muertes cardiovasculares
Vinculan las malas dietas con muertes cardiovascularesAgeleo Justiniano Tucto
 
Delivering radio's future - Joan Warner keynote at ABU DBS 2017
Delivering radio's future - Joan Warner keynote at ABU DBS 2017Delivering radio's future - Joan Warner keynote at ABU DBS 2017
Delivering radio's future - Joan Warner keynote at ABU DBS 2017WorldDAB
 
Tracxn Research - Construction Tech Landscape, February 2017
Tracxn Research - Construction Tech Landscape, February 2017Tracxn Research - Construction Tech Landscape, February 2017
Tracxn Research - Construction Tech Landscape, February 2017Tracxn
 
2015 Internet Trends Report
2015 Internet Trends Report2015 Internet Trends Report
2015 Internet Trends ReportIQbal KHan
 
Зрительная гимнастика по Аветисову
Зрительная гимнастика по АветисовуЗрительная гимнастика по Аветисову
Зрительная гимнастика по АветисовуAnastasia Simonova
 
Benefits of breastfeeding to mother and baby
Benefits of breastfeeding to mother and babyBenefits of breastfeeding to mother and baby
Benefits of breastfeeding to mother and babyAnisa Edmund
 
神戸市給食オープンデータの有効活用
神戸市給食オープンデータの有効活用神戸市給食オープンデータの有効活用
神戸市給食オープンデータの有効活用Masaki Goto
 
Het effect van Google Adwords op offline winkelbezoek
Het effect van Google Adwords op offline winkelbezoekHet effect van Google Adwords op offline winkelbezoek
Het effect van Google Adwords op offline winkelbezoekvalantic NL
 
Microservices Tracing With Spring Cloud and Zipkin @Szczecin JUG
Microservices Tracing With Spring Cloud and Zipkin @Szczecin JUGMicroservices Tracing With Spring Cloud and Zipkin @Szczecin JUG
Microservices Tracing With Spring Cloud and Zipkin @Szczecin JUGMarcin Grzejszczak
 
Enabling the Real Time Analytical Enterprise
Enabling the Real Time Analytical EnterpriseEnabling the Real Time Analytical Enterprise
Enabling the Real Time Analytical EnterpriseHortonworks
 
School for Change Agents Module 5 slides
School for Change Agents Module 5 slidesSchool for Change Agents Module 5 slides
School for Change Agents Module 5 slidesNHS Horizons
 

En vedette (20)

Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
 
Kylo为企业级的数据湖赋能 赵锴 kai_zhao_大数据_数据湖_datalake
Kylo为企业级的数据湖赋能 赵锴 kai_zhao_大数据_数据湖_datalakeKylo为企业级的数据湖赋能 赵锴 kai_zhao_大数据_数据湖_datalake
Kylo为企业级的数据湖赋能 赵锴 kai_zhao_大数据_数据湖_datalake
 
物联网IoT用例 赵锴_kaizhao_大数据_物联网_云计算2
物联网IoT用例 赵锴_kaizhao_大数据_物联网_云计算2物联网IoT用例 赵锴_kaizhao_大数据_物联网_云计算2
物联网IoT用例 赵锴_kaizhao_大数据_物联网_云计算2
 
MongoDB NoSQL database a deep dive -MyWhitePaper
MongoDB  NoSQL database a deep dive -MyWhitePaperMongoDB  NoSQL database a deep dive -MyWhitePaper
MongoDB NoSQL database a deep dive -MyWhitePaper
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 
Barclays global financial services conference sep. 13 2016 final
Barclays global financial services conference sep. 13 2016 finalBarclays global financial services conference sep. 13 2016 final
Barclays global financial services conference sep. 13 2016 final
 
Ugalketafuntzioa 101116122744-phpapp01
Ugalketafuntzioa 101116122744-phpapp01Ugalketafuntzioa 101116122744-phpapp01
Ugalketafuntzioa 101116122744-phpapp01
 
Vinculan las malas dietas con muertes cardiovasculares
Vinculan las malas dietas con muertes cardiovascularesVinculan las malas dietas con muertes cardiovasculares
Vinculan las malas dietas con muertes cardiovasculares
 
Delivering radio's future - Joan Warner keynote at ABU DBS 2017
Delivering radio's future - Joan Warner keynote at ABU DBS 2017Delivering radio's future - Joan Warner keynote at ABU DBS 2017
Delivering radio's future - Joan Warner keynote at ABU DBS 2017
 
Tracxn Research - Construction Tech Landscape, February 2017
Tracxn Research - Construction Tech Landscape, February 2017Tracxn Research - Construction Tech Landscape, February 2017
Tracxn Research - Construction Tech Landscape, February 2017
 
Google Cloud Spanner Preview
Google Cloud Spanner PreviewGoogle Cloud Spanner Preview
Google Cloud Spanner Preview
 
2015 Internet Trends Report
2015 Internet Trends Report2015 Internet Trends Report
2015 Internet Trends Report
 
Зрительная гимнастика по Аветисову
Зрительная гимнастика по АветисовуЗрительная гимнастика по Аветисову
Зрительная гимнастика по Аветисову
 
Benefits of breastfeeding to mother and baby
Benefits of breastfeeding to mother and babyBenefits of breastfeeding to mother and baby
Benefits of breastfeeding to mother and baby
 
神戸市給食オープンデータの有効活用
神戸市給食オープンデータの有効活用神戸市給食オープンデータの有効活用
神戸市給食オープンデータの有効活用
 
Het effect van Google Adwords op offline winkelbezoek
Het effect van Google Adwords op offline winkelbezoekHet effect van Google Adwords op offline winkelbezoek
Het effect van Google Adwords op offline winkelbezoek
 
Matrice leader
Matrice leaderMatrice leader
Matrice leader
 
Microservices Tracing With Spring Cloud and Zipkin @Szczecin JUG
Microservices Tracing With Spring Cloud and Zipkin @Szczecin JUGMicroservices Tracing With Spring Cloud and Zipkin @Szczecin JUG
Microservices Tracing With Spring Cloud and Zipkin @Szczecin JUG
 
Enabling the Real Time Analytical Enterprise
Enabling the Real Time Analytical EnterpriseEnabling the Real Time Analytical Enterprise
Enabling the Real Time Analytical Enterprise
 
School for Change Agents Module 5 slides
School for Change Agents Module 5 slidesSchool for Change Agents Module 5 slides
School for Change Agents Module 5 slides
 

Similaire à GE Predix 新手入门 赵锴 物联网_IoT

OpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
OpenShift Meetup - Tokyo - Service Mesh and Serverless OverviewOpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
OpenShift Meetup - Tokyo - Service Mesh and Serverless OverviewMaría Angélica Bracho
 
Monitoring CloudStack and components
Monitoring CloudStack and componentsMonitoring CloudStack and components
Monitoring CloudStack and componentsShapeBlue
 
Simplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring CloudSimplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring CloudRamnivas Laddad
 
Digital Forensics and Incident Response in The Cloud Part 3
Digital Forensics and Incident Response in The Cloud Part 3Digital Forensics and Incident Response in The Cloud Part 3
Digital Forensics and Incident Response in The Cloud Part 3Velocidex Enterprises
 
20171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v0120171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v01Scott Miao
 
SpringBoot and Spring Cloud Service for MSA
SpringBoot and Spring Cloud Service for MSASpringBoot and Spring Cloud Service for MSA
SpringBoot and Spring Cloud Service for MSAOracle Korea
 
Microsoft Azure Traffic Manager
Microsoft Azure Traffic ManagerMicrosoft Azure Traffic Manager
Microsoft Azure Traffic ManagerIdo Katz
 
Distributed Traceability in AWS - Life of a Transaction
Distributed Traceability in AWS - Life of a TransactionDistributed Traceability in AWS - Life of a Transaction
Distributed Traceability in AWS - Life of a TransactionAmazon Web Services
 
Microservices with kubernetes @190316
Microservices with kubernetes @190316Microservices with kubernetes @190316
Microservices with kubernetes @190316Jupil Hwang
 
Cloud Native Applications on OpenShift
Cloud Native Applications on OpenShiftCloud Native Applications on OpenShift
Cloud Native Applications on OpenShiftSerhat Dirik
 
DCEU 18: Docker Container Networking
DCEU 18: Docker Container NetworkingDCEU 18: Docker Container Networking
DCEU 18: Docker Container NetworkingDocker, Inc.
 
FIWARE Wednesday Webinars - Short Term History within Smart Systems
FIWARE Wednesday Webinars - Short Term History within Smart SystemsFIWARE Wednesday Webinars - Short Term History within Smart Systems
FIWARE Wednesday Webinars - Short Term History within Smart SystemsFIWARE
 
Designing a production grade realtime ml inference endpoint
Designing a production grade realtime ml inference endpointDesigning a production grade realtime ml inference endpoint
Designing a production grade realtime ml inference endpointChandim Sett
 
Live Coding 12 Factor App
Live Coding 12 Factor AppLive Coding 12 Factor App
Live Coding 12 Factor AppEmily Jiang
 
Building 12-factor Cloud Native Microservices
Building 12-factor Cloud Native MicroservicesBuilding 12-factor Cloud Native Microservices
Building 12-factor Cloud Native MicroservicesJakarta_EE
 
All About Microservices and OpenSource Microservice Frameworks
All About Microservices and OpenSource Microservice FrameworksAll About Microservices and OpenSource Microservice Frameworks
All About Microservices and OpenSource Microservice FrameworksMohammad Asif Siddiqui
 
使用 Prometheus 監控 Kubernetes Cluster
使用 Prometheus 監控 Kubernetes Cluster 使用 Prometheus 監控 Kubernetes Cluster
使用 Prometheus 監控 Kubernetes Cluster inwin stack
 
Docker and Cloud - Enables for DevOps - by ACA-IT
Docker and Cloud - Enables for DevOps - by ACA-ITDocker and Cloud - Enables for DevOps - by ACA-IT
Docker and Cloud - Enables for DevOps - by ACA-ITStijn Wijndaele
 
'DOCKER' & CLOUD: ENABLERS For DEVOPS
'DOCKER' & CLOUD:  ENABLERS For DEVOPS'DOCKER' & CLOUD:  ENABLERS For DEVOPS
'DOCKER' & CLOUD: ENABLERS For DEVOPSACA IT-Solutions
 

Similaire à GE Predix 新手入门 赵锴 物联网_IoT (20)

OpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
OpenShift Meetup - Tokyo - Service Mesh and Serverless OverviewOpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
OpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
 
Monitoring CloudStack and components
Monitoring CloudStack and componentsMonitoring CloudStack and components
Monitoring CloudStack and components
 
Simplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring CloudSimplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring Cloud
 
Digital Forensics and Incident Response in The Cloud Part 3
Digital Forensics and Incident Response in The Cloud Part 3Digital Forensics and Incident Response in The Cloud Part 3
Digital Forensics and Incident Response in The Cloud Part 3
 
20171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v0120171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v01
 
SpringBoot and Spring Cloud Service for MSA
SpringBoot and Spring Cloud Service for MSASpringBoot and Spring Cloud Service for MSA
SpringBoot and Spring Cloud Service for MSA
 
EVOLVE'14 | Enhance | Anshul Chhabra & Akhil Aggrawal | Cisco - AEM High Avai...
EVOLVE'14 | Enhance | Anshul Chhabra & Akhil Aggrawal | Cisco - AEM High Avai...EVOLVE'14 | Enhance | Anshul Chhabra & Akhil Aggrawal | Cisco - AEM High Avai...
EVOLVE'14 | Enhance | Anshul Chhabra & Akhil Aggrawal | Cisco - AEM High Avai...
 
Microsoft Azure Traffic Manager
Microsoft Azure Traffic ManagerMicrosoft Azure Traffic Manager
Microsoft Azure Traffic Manager
 
Distributed Traceability in AWS - Life of a Transaction
Distributed Traceability in AWS - Life of a TransactionDistributed Traceability in AWS - Life of a Transaction
Distributed Traceability in AWS - Life of a Transaction
 
Microservices with kubernetes @190316
Microservices with kubernetes @190316Microservices with kubernetes @190316
Microservices with kubernetes @190316
 
Cloud Native Applications on OpenShift
Cloud Native Applications on OpenShiftCloud Native Applications on OpenShift
Cloud Native Applications on OpenShift
 
DCEU 18: Docker Container Networking
DCEU 18: Docker Container NetworkingDCEU 18: Docker Container Networking
DCEU 18: Docker Container Networking
 
FIWARE Wednesday Webinars - Short Term History within Smart Systems
FIWARE Wednesday Webinars - Short Term History within Smart SystemsFIWARE Wednesday Webinars - Short Term History within Smart Systems
FIWARE Wednesday Webinars - Short Term History within Smart Systems
 
Designing a production grade realtime ml inference endpoint
Designing a production grade realtime ml inference endpointDesigning a production grade realtime ml inference endpoint
Designing a production grade realtime ml inference endpoint
 
Live Coding 12 Factor App
Live Coding 12 Factor AppLive Coding 12 Factor App
Live Coding 12 Factor App
 
Building 12-factor Cloud Native Microservices
Building 12-factor Cloud Native MicroservicesBuilding 12-factor Cloud Native Microservices
Building 12-factor Cloud Native Microservices
 
All About Microservices and OpenSource Microservice Frameworks
All About Microservices and OpenSource Microservice FrameworksAll About Microservices and OpenSource Microservice Frameworks
All About Microservices and OpenSource Microservice Frameworks
 
使用 Prometheus 監控 Kubernetes Cluster
使用 Prometheus 監控 Kubernetes Cluster 使用 Prometheus 監控 Kubernetes Cluster
使用 Prometheus 監控 Kubernetes Cluster
 
Docker and Cloud - Enables for DevOps - by ACA-IT
Docker and Cloud - Enables for DevOps - by ACA-ITDocker and Cloud - Enables for DevOps - by ACA-IT
Docker and Cloud - Enables for DevOps - by ACA-IT
 
'DOCKER' & CLOUD: ENABLERS For DEVOPS
'DOCKER' & CLOUD:  ENABLERS For DEVOPS'DOCKER' & CLOUD:  ENABLERS For DEVOPS
'DOCKER' & CLOUD: ENABLERS For DEVOPS
 

Dernier

Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...gajnagarg
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...Health
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1ranjankumarbehera14
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Klinik kandungan
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabiaahmedjiabur940
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...gajnagarg
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...gajnagarg
 
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...kumargunjan9515
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxronsairoathenadugay
 
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...gragchanchal546
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraGovindSinghDasila
 
Computer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfComputer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfSayantanBiswas37
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样wsppdmt
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...nirzagarg
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...Bertram Ludäscher
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubaikojalkojal131
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...gajnagarg
 

Dernier (20)

Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
 
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
Computer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfComputer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdf
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
 

GE Predix 新手入门 赵锴 物联网_IoT

  • 1. GE Predix . . By Kai Zhao kingaim@gmail.com https://cn.linkedin.com/in/kai-zhao-63403212 & Zheming Zhang https://cn.linkedin.com/in/sonny-zhang-184a4761 Code Repository https://github.com/cloudfoundry-samples https://github.com/PredixDev VCAP- SERVICES http://docs.run.pivotal.io/devguide/deploy-apps/environment- variable.html#VCAP-SERVICES Environment Variable http://docs.run.pivotal.io/devguide/deploy-apps/environment- variable.html CF all cmds http://cli.cloudfoundry.org/en-US/cf/ Service Broker http://blog.csdn.net/zhaozhenyang_go/article/details/32078665 Overview of CF https://docs.cloudfoundry.org/concepts/overview.html Predix Entry https://predix-io.run.xxxx.predix.io
  • 2. Step 1: Install the cf-clli References https://github.com/cloudfoundry/cli#downloads Actions Mac OS X (using Homebrew via the cloudfoundry tap): $ brew tap cloudfoundry/tap $ brew install cf-cli KaiZhaos-MacBook-Pro:~ kaizhao$ brew tap cloudfoundry/tap ==> Tapping cloudfoundry/tap Cloning into '/usr/local/Library/Taps/cloudfoundry/homebrew-tap'... remote: Counting objects: 10, done. remote: Compressing objects: 100% (9/9), done. remote: Total 10 (delta 0), reused 5 (delta 0), pack-reused 0 Unpacking objects: 100% (10/10), done. Checking connectivity... done. Tapped 3 formulae (39 files, 43.2K) KaiZhaos-MacBook-Pro:~ kaizhao$ brew install cf-cli ==> Installing cf-cli from cloudfoundry/tap ==> Downloading https://cli.run.pivotal.io/stable?release=macosx64- binary&versio ==> Downloading from https://s3-us-west-1.amazonaws.com/cf-cli- releases/releases #################################################################### #### 100.0% ! /usr/local/Cellar/cf-cli/6.22.2: 2 files, 20.5M, built in 6 minutes 37 seconds KaiZhaos-MacBook-Pro:~ kaizhao$ cf cf version 6.22.2+a95e24c-2016-10-27, Cloud Foundry command line tool Usage: cf [global options] command [arguments...] [command options] Before getting started: config login,l target,t help,h logout,lo Application lifecycle: apps,a logs set-env,se push,p ssh create-app-manifest start,st app stop,sp env,e restart,rs scale restage,rg events
  • 3. Services integration: marketplace,m create-user-provided-service,cups services,s update-user-provided-service,uups create-service,cs create-service-key,csk update-service delete-service-key,dsk delete-service,ds service-keys,sk service service-key bind-service,bs bind-route-service,brs unbind-service,us unbind-route-service,urs Route and domain management: routes,r delete-route create-domain domains map-route create-route unmap-route Space management: spaces create-space set-space-role space-users delete-space unset-space-role Org management: orgs,o set-org-role org-users unset-org-role CLI plugin management: plugins add-plugin-repo repo-plugins install-plugin list-plugin-repos Commands offered by installed plugins: Global options: --help, -h Show help -v Print API request diagnostics to stdout 'cf help -a' lists all commands with short descriptions. See 'cf help <command>' to read about a specific command. Step 2: Connect to the CloudFoundry with cf login References http://docs.cloudfoundry.org/cf-cli/getting-started.html KaiZhaos-MacBook-Pro:~ kaizhao$ cf login -a https://api.system.xxxx.predix.io -u xxxxxx@qq.com API endpoint: https://api.system.xxxx.predix.io Password> Authenticating...
  • 4. OK Targeted org Shanghai_Foundry Targeted space xxxxxx@qq.com API endpoint: https://api.system.xxxx.predix.io (API version: 2.62.0) User: xxxxxx@qq.com Org: Shanghai_Foundry Space: xxxxxx@qq.com KaiZhaos-MacBook-Pro:~ kaizhao$ Step 3:List all marketplace offering References http://cli.cloudfoundry.org/en-US/cf/marketplace.html NAME marketplace - List available offerings in the marketplace USAGE cf marketplace [-s SERVICE] ALIAS m OPTIONS -s Show plan details for a particular service offering SEE ALSO create-service, services KaiZhaos-MacBook-Pro:~ kaizhao$ cf marketplace Getting services from marketplace in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK service plans description event-audit-trail Beta A service to create and maintain an event audit trail
  • 5. logstash free Logstash 1.4 service for application development and testing p-rabbitmq-35 standard RabbitMQ is a robust and scalable high-performance multi-protocol messaging broker. postgres shared-nr, shared, Dedicated-R-Bronze Reliable PostgrSQL Service predix-acs Tiered*, Free Use this service to provide a more powerful framework than basic User Account and Authentication. predix-analytics-catalog Bronze*, Silver*, Gold*, Free Add analytics to the Predix cloud for use with the Analytics Runtime Service. predix-analytics-runtime Bronze*, Silver*, Gold*, Free Use this service to support elastic execution of the analytic orchestration. predix-analytics-ui Free Use this browser-based user interface to upload, validate, and run analytics. predix-asset Free, Tiered* Create and store machine asset models and instances. predix-blobstore Tiered* Use this binary large object storage (BLOB) to securely store large byte arrays and retrieve data using any file type. predix-tms Tiered* Use this service to provision service instances for a tenant and provide runtime access. predix-uaa Tiered*, Free Use this service for a full-featured OAuth 2.0 server. predix-views Standard*, Free Control layout and components within your client-side web or mobile app. rabbitmq-36 standard RabbitMQ is a robust and scalable high-performance multi-protocol messaging broker. redis shared-vm Redis service to provide a key-value store * These service plans have an associated cost. Creating a service instance will incur this cost. TIP: Use 'cf marketplace -s SERVICE' to view descriptions of individual plans of a given service. KaiZhaos-MacBook-Pro:~ kaizhao$ cf marketplace -s postgres Getting service plan information for service postgres as xxxxxx@qq.com... OK service plan description free or paid shared-nr A PostgreSQL database with no replication on a shared server. free
  • 6. shared A Reliable PostgreSQL database on a shared server. free Dedicated-R-Bronze Replicated database in a dedicated environment (Beta) free KaiZhaos-MacBook-Pro:~ kaizhao$ Step 4: List all services References http://cli.cloudfoundry.org/en-US/cf/services.html cf services KaiZhaos-MacBook-Pro:~ kaizhao$ cf services Getting services in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK name service plan bound apps last operation kzpgsql postgres shared-nr create succeeded KaiZhaos-MacBook-Pro:~ kaizhao$ Step 5: Show service instance info References https://docs.cloudfoundry.org/cf-cli/cf- help.html#services cf service service_instance use –guid to retrieve and display the guid of the service instance KaiZhaos-MacBook-Pro:~ kaizhao$ cf services Getting services in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK name service plan bound apps last operation kzpgsql postgres shared-nr create succeeded KaiZhaos-MacBook-Pro:~ kaizhao$ cf service kzpgsql Service instance: kzpgsql Service: postgres Bound apps: Tags: Plan: shared-nr Description: Reliable PostgrSQL Service Documentation url: Dashboard: Last Operation Status: create succeeded Message: Started: 2016-11-23T14:08:25Z Updated:
  • 7. KaiZhaos-MacBook-Pro:~ kaizhao$ cf service kzpgsql --guid 72a9143d-98f6-4b21-a9e0-a6cc11acb1cf Step 5: Create a service instance KaiZhaos-MacBook-Pro:~ kaizhao$ cf create-service postgres shared-nr kzpgsql2 Creating service instance kzpgsql2 in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK KaiZhaos-MacBook-Pro:~ kaizhao$ cf services Getting services in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK name service plan bound apps last operation kzpgsql postgres shared-nr create succeeded kzpgsql2 postgres shared-nr create succeeded KaiZhaos-MacBook-Pro:~ kaizhao$ cf service kzpgsql2 Service instance: kzpgsql2 Service: postgres Bound apps: Tags: Plan: shared-nr Description: Reliable PostgrSQL Service Documentation url: Dashboard: Last Operation Status: create succeeded Message: Started: 2016-11-23T15:23:11Z Updated: Step 6: Create a user provided service and add to cf KaiZhaos-MacBook-Pro:~ kaizhao$ cf create-user-provided-service viz -r https://www.connectf.com/fe Creating user provided service viz in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK KaiZhaos-MacBook-Pro:~ kaizhao$ cf services Getting services in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK name service plan bound apps last operation kzpgsql postgres shared-nr create succeeded
  • 8. kzpgsql2 postgres shared-nr create succeeded viz user-provided Step 7: Push application Reference https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ ls README.md Staticfile hello-world.py index.html manifest.yml KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf push Using manifest file /Users/kaizhao/Desktop/Predix/cf/predixdev/Predix-HelloWorld- WebApp/manifest.yml Using stack cflinuxfs2... OK Creating app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK Creating route predix-helloworld-webapp-kz.run.xxxx.predix.io... OK Binding predix-helloworld-webapp-kz.run.xxxx.predix.io to Predix- HelloWorld-WebApp-KZ... OK
  • 9. Uploading Predix-HelloWorld-WebApp-KZ... Uploading app files from: /Users/kaizhao/Desktop/Predix/cf/predixdev/Predix-HelloWorld-WebApp Uploading 3.1K, 4 files Done uploading OK Starting app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... -----> Downloaded app package (4.0K) -------> Buildpack version 1.3.10 Downloaded [file:///var/vcap/data/dea_next/admin_buildpacks/51ffcab3-8408-4bef- 8a59- 5180999db286_b476477d537f3b4e29b121b7cd4fde0f57bd730f/dependencies/h ttps___buildpacks.cloudfoundry.org_concourse-binaries_nginx_nginx- 1.11.3-linux-x64.tgz] -----> Using root folder -----> Copying project files into public/ -----> Setting up nginx -----> Uploading droplet (2.6M) 1 of 1 instances running App started OK App Predix-HelloWorld-WebApp-KZ was started using this command `sh boot.sh` Showing health and status for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK requested state: started instances: 1/1 usage: 256M x 1 instances urls: predix-helloworld-webapp-kz.run.xxxx.predix.io last uploaded: Wed Nov 23 18:03:12 UTC 2016 stack: cflinuxfs2 buildpack: staticfile_buildpack state since cpu memory disk details #0 running 2016-11-24 02:03:25 AM 0.0% 3.7M of 256M 5.6M of 1G
  • 10. Step 8: Show all environment variables for an application instance Reference http://cli.cloudfoundry.org/en-US/cf/env.html KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf env Predix-HelloWorld-WebApp-KZ Getting env variables for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK System-Provided: { "VCAP_APPLICATION": { "application_id": "95d878d5-600b-4672-b9ca-5b3a69c615d5", "application_name": "Predix-HelloWorld-WebApp-KZ", "application_uris": [ "predix-helloworld-webapp-kz.run.xxxx.predix.io" ], "application_version": "3487cb8c-3260-485a-a915-c845fb2aef8d", "limits": { "disk": 1024, "fds": 16384, "mem": 256 }, "name": "Predix-HelloWorld-WebApp-KZ", "space_id": "46d6aa19-f64e-46be-84d6-f888701a68d0", "space_name": "xxxxxx@qq.com", "uris": [ "predix-helloworld-webapp-kz.run.xxxx.predix.io" ], "users": null, "version": "3487cb8c-3260-485a-a915-c845fb2aef8d"
  • 11. } } No user-defined env variables have been set No running env variables have been set No staging env variables have been set Step 9: Bind application with service References http://cli.cloudfoundry.org/en-US/cf/bind- service.html KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf env Predix-HelloWorld-WebApp-KZ Getting env variables for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK System-Provided: { "VCAP_APPLICATION": { "application_id": "95d878d5-600b-4672-b9ca-5b3a69c615d5", "application_name": "Predix-HelloWorld-WebApp-KZ", "application_uris": [ "predix-helloworld-webapp-kz.run.xxxx.predix.io" ], "application_version": "3487cb8c-3260-485a-a915-c845fb2aef8d", "limits": { "disk": 1024, "fds": 16384, "mem": 256 }, "name": "Predix-HelloWorld-WebApp-KZ", "space_id": "46d6aa19-f64e-46be-84d6-f888701a68d0", "space_name": "xxxxxx@qq.com", "uris": [ "predix-helloworld-webapp-kz.run.xxxx.predix.io" ], "users": null, "version": "3487cb8c-3260-485a-a915-c845fb2aef8d" } } No user-defined env variables have been set No running env variables have been set
  • 12. No staging env variables have been set KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf bind- service predix-helloworld-webapp-kz kzpgsql Binding service kzpgsql to app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK TIP: Use 'cf restage Predix-HelloWorld-WebApp-KZ' to ensure your env variable changes take effect KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf restage Predix-HelloWorld-WebApp-KZ Restaging app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... -----> Downloaded app package (4.0K) -----> Downloaded app buildpack cache (4.0K) -------> Buildpack version 1.3.10 Downloaded [file:///var/vcap/data/dea_next/admin_buildpacks/51ffcab3-8408-4bef- 8a59- 5180999db286_b476477d537f3b4e29b121b7cd4fde0f57bd730f/dependencies/h ttps___buildpacks.cloudfoundry.org_concourse-binaries_nginx_nginx- 1.11.3-linux-x64.tgz] -----> Using root folder -----> Copying project files into public/ -----> Setting up nginx -----> Uploading droplet (2.6M) 1 of 1 instances running App started OK App Predix-HelloWorld-WebApp-KZ was started using this command `sh boot.sh` Showing health and status for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK requested state: started instances: 1/1 usage: 256M x 1 instances urls: predix-helloworld-webapp-kz.run.xxxx.predix.io last uploaded: Wed Nov 23 18:03:12 UTC 2016 stack: cflinuxfs2 buildpack: staticfile_buildpack state since cpu memory disk details
  • 13. #0 running 2016-11-24 02:17:37 AM 0.0% 3.8M of 256M 5.6M of 1G KaiZhaos-MacBook-Pro:Predix-HelloWorld-WebApp kaizhao$ cf env Predix-HelloWorld-WebApp-KZ Getting env variables for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK System-Provided: { "VCAP_SERVICES": { "postgres": [ { "credentials": { "ID": 0, "binding_id": "3ce9dfeb-d0f4-4a00-899b-46eff5da03d8", "database": "db128956807f549728dad6a7e2300d9b4", "dsn": "host=10.120.8.137 port=5432 user=ub128956807f549728dad6a7e2300d9b4 password=e2432869763245c684e855e7a393b463 dbname=db128956807f549728dad6a7e2300d9b4 connect_timeout=5 sslmode=disable", "host": "10.120.8.137", "instance_id": "72a9143d-98f6-4b21-a9e0-a6cc11acb1cf", "jdbc_uri": "jdbc:postgresql://10.120.8.137:5432/db128956807f549728dad6a7e2300d9 b4?user=ub128956807f549728dad6a7e2300d9b4u0026password=e24328697632 45c684e855e7a393b463u0026ssl=false", "password": "e2432869763245c684e855e7a393b463", "port": "5432", "uri": "postgres://ub128956807f549728dad6a7e2300d9b4:e2432869763245c684e855 e7a393b463@10.120.8.137:5432/db128956807f549728dad6a7e2300d9b4?sslmo de=disable", "username": "ub128956807f549728dad6a7e2300d9b4" }, "label": "postgres", "name": "kzpgsql", "plan": "shared-nr", "provider": null, "syslog_drain_url": null, "tags": [ "rdpg", "postgresql" ], "volume_mounts": [] } ] } } { "VCAP_APPLICATION": {
  • 14. "application_id": "95d878d5-600b-4672-b9ca-5b3a69c615d5", "application_name": "Predix-HelloWorld-WebApp-KZ", "application_uris": [ "predix-helloworld-webapp-kz.run.xxxx.predix.io" ], "application_version": "b9ba301c-ff4d-4ec9-bc9d-d4034a0dcf84", "limits": { "disk": 1024, "fds": 16384, "mem": 256 }, "name": "Predix-HelloWorld-WebApp-KZ", "space_id": "46d6aa19-f64e-46be-84d6-f888701a68d0", "space_name": "xxxxxx@qq.com", "uris": [ "predix-helloworld-webapp-kz.run.xxxx.predix.io" ], "users": null, "version": "b9ba301c-ff4d-4ec9-bc9d-d4034a0dcf84" } } No user-defined env variables have been set No running env variables have been set No staging env variables have been set
  • 15. Step 10: Create service key for service instance References http://cli.cloudfoundry.org/en-US/cf/bind- service.html KaiZhaos-MacBook-Pro:~ kaizhao$ cf create-service-key kzpgsql2 kzpgsqlkey2 Creating service key kzpgsqlkey2 for service instance kzpgsql2 as xxxxxx@qq.com... OK KaiZhaos-MacBook-Pro:~ kaizhao$ cf service-key kzpgsql2 kzpgsqlkey2 Getting key kzpgsqlkey2 for service instance kzpgsql2 as xxxxxx@qq.com... { "ID": 0, "binding_id": "d7342d96-7680-4e61-94fd-35419d6ecab0", "database": "d8c27e972779844d0b31ad0b2e4d7b821", "dsn": "host=10.120.8.137 port=5432 user=u8c27e972779844d0b31ad0b2e4d7b821 password=68eddfeec36940489ee42e07d2ba1271 dbname=d8c27e972779844d0b31ad0b2e4d7b821 connect_timeout=5 sslmode=disable", "host": "10.120.8.137", "instance_id": "15e876dd-e3a3-4ded-842a-fa27f1703221", "jdbc_uri": "jdbc:postgresql://10.120.8.137:5432/d8c27e972779844d0b31ad0b2e4d7b8 21?user=u8c27e972779844d0b31ad0b2e4d7b821u0026password=68eddfeec369 40489ee42e07d2ba1271u0026ssl=false", "password": "68eddfeec36940489ee42e07d2ba1271",
  • 16. "port": "5432", "uri": "postgres://u8c27e972779844d0b31ad0b2e4d7b821:68eddfeec36940489ee42e 07d2ba1271@10.120.8.137:5432/d8c27e972779844d0b31ad0b2e4d7b821?sslmo de=disable", "username": "u8c27e972779844d0b31ad0b2e4d7b821" } KaiZhaos-MacBook-Pro:~ kaizhao$ Step 11: Print the version Reference http://cli.cloudfoundry.org/en-US/cf/version.html KaiZhaos-MacBook-Pro:~ kaizhao$ cf version cf version 6.22.2+a95e24c-2016-10-27 Step 12: Set or view target api url Reference http://cli.cloudfoundry.org/en-US/cf/api.html cf api KaiZhaos-MacBook-Pro:~ kaizhao$ cf api API endpoint: https://api.system.xxxx.predix.io (API version: 2.62.0) KaiZhaos-MacBook-Pro:~ kaizhao$ Step 13: Application Scalable Reference http://cli.cloudfoundry.org/en-US/cf/scale.html USAGE cf scale APP_NAME [-i INSTANCES] [-k DISK] [- m MEMORY] [-f] OPTIONS -f Force restart of app without prompt -i
  • 17. Number of instances -k Disk limit (e.g. 256M, 1024M, 1G) -m Memory limit (e.g. 256M, 1024M, 1G) scale - Change or view the instance count, disk space limit, and memory limit for an app KaiZhaos-MacBook-Pro:~ kaizhao$ cf scale Predix-HelloWorld-WebApp-KZ Showing current scale of app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK memory: 256M disk: 1G instances: 1 KaiZhaos-MacBook-Pro:~ kaizhao$ cf scale Predix-HelloWorld-WebApp-KZ Showing current scale of app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK memory: 256M disk: 1G instances: 1 KaiZhaos-MacBook-Pro:~ kaizhao$ cf scale Predix-HelloWorld-WebApp-KZ -m 512M This will cause the app to restart. Are you sure you want to scale Predix-HelloWorld-WebApp-KZ?> y Scaling app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK Stopping app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK Starting app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... 0 of 1 instances running, 1 starting 1 of 1 instances running App started
  • 18. OK App Predix-HelloWorld-WebApp-KZ was started using this command `sh boot.sh` Showing health and status for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK requested state: started instances: 1/1 usage: 512M x 1 instances urls: predix-helloworld-webapp-kz.run.xxxx.predix.io last uploaded: Wed Nov 23 18:03:12 UTC 2016 stack: cflinuxfs2 buildpack: staticfile_buildpack state since cpu memory disk details #0 running 2016-11-24 09:39:09 PM 0.0% 3.8M of 512M 5.6M of 1G KaiZhaos-MacBook-Pro:~ kaizhao$ cf scale Predix-HelloWorld-WebApp-KZ Showing current scale of app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK memory: 512M disk: 1G instances: 1 KaiZhaos-MacBook-Pro:~ kaizhao$ Step 14: Stop all instances of the app, then start them again. This may cause downtime. Reference http://cli.cloudfoundry.org/en-US/cf/restart.html cf restart APP_NAME KaiZhaos-MacBook-Pro:~ kaizhao$ cf restart Predix-HelloWorld-WebApp- KZ Stopping app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK Starting app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... 1 of 1 instances running
  • 19. App started OK App Predix-HelloWorld-WebApp-KZ was started using this command `sh boot.sh` Showing health and status for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK requested state: started instances: 1/1 usage: 512M x 1 instances urls: predix-helloworld-webapp-kz.run.xxxx.predix.io last uploaded: Wed Nov 23 18:03:12 UTC 2016 stack: cflinuxfs2 buildpack: staticfile_buildpack state since cpu memory disk details #0 running 2016-11-24 10:24:58 PM 0.0% 3.7M of 512M 5.6M KaiZhaos-MacBook-Pro:~ kaizhao$ cf app Predix-HelloWorld-WebApp-KZ Showing health and status for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK requested state: started instances: 1/1 usage: 512M x 1 instances urls: predix-helloworld-webapp-kz.run.xxxx.predix.io last uploaded: Wed Nov 23 18:03:12 UTC 2016 stack: cflinuxfs2 buildpack: staticfile_buildpack state since cpu memory disk details #0 running 2016-11-24 10:24:58 PM 0.0% 3.7M of 512M 5.6M of 1G Step 15: Show recent application events Reference http://cli.cloudfoundry.org/en-US/cf/events.html cf events APP_NAME KaiZhaos-MacBook-Pro:~ kaizhao$ cf events Predix-HelloWorld-WebApp- KZ Getting events for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com...
  • 20. time event actor description 2016-11-24T22:24:56.00+0800 audit.app.update xxxxxx@qq.com state: STARTED 2016-11-24T22:24:40.00+0800 audit.app.update xxxxxx@qq.com state: STOPPED 2016-11-24T21:39:08.00+0800 audit.app.update xxxxxx@qq.com state: STARTED 2016-11-24T21:39:03.00+0800 audit.app.update xxxxxx@qq.com state: STOPPED 2016-11-24T21:39:01.00+0800 audit.app.update xxxxxx@qq.com memory: 512 2016-11-24T03:05:44.00+0800 audit.app.restage xxxxxx@qq.com 2016-11-24T02:17:31.00+0800 audit.app.restage xxxxxx@qq.com 2016-11-24T02:03:18.00+0800 audit.app.update xxxxxx@qq.com state: STARTED 2016-11-24T02:03:06.00+0800 audit.app.update xxxxxx@qq.com 2016-11-24T02:03:06.00+0800 audit.app.map-route xxxxxx@qq.com 2016-11-24T02:03:03.00+0800 audit.app.create xxxxxx@qq.com instances: 1, memory: 256, state: STOPPED, environment_json: PRIVATE DATA HIDDEN KaiZhaos-MacBook-Pro:~ kaizhao$ Step 16: files - Print out a list of files in a directory or the contents of a specific file of an app running on the DEA backend Reference http://cli.cloudfoundry.org/en-US/cf/files.html cf files APP_NAME [PATH] [-i INSTANCE] KaiZhaos-MacBook-Pro:~ kaizhao$ cf files Predix-HelloWorld-WebApp-KZ Getting files for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK .bash_logout 220B .bashrc 3.6K .profile 675B app/ - logs/ - run.pid 3B staging_info.yml 226B tmp/ - Step 17: Tail or show recent logs for an app Reference http://cli.cloudfoundry.org/en-US/cf/logs.html cf logs APP_NAME --recent
  • 21. KaiZhaos-MacBook-Pro:~ kaizhao$ cf logs Predix-HelloWorld-WebApp-KZ --recent Connected, dumping recent logs for app Predix-HelloWorld-WebApp-KZ in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... 2016-11-24T21:39:01.44+0800 [API/0] OUT Updated app with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5 ({"memory"=>512}) 2016-11-24T21:39:03.68+0800 [API/0] OUT Updated app with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5 ({"state"=>"STOPPED"}) 2016-11-24T21:39:03.72+0800 [App/0] ERR 2016-11-24T21:39:03.72+0800 [App/0] OUT 2016-11-24T21:39:08.11+0800 [API/0] OUT Updated app with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5 ({"state"=>"STARTED"}) 2016-11-24T21:39:08.12+0800 [DEA/5] OUT Starting app instance (index 0) with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5 2016-11-24T22:24:40.59+0800 [API/0] OUT Updated app with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5 ({"state"=>"STOPPED"}) 2016-11-24T22:24:40.63+0800 [App/0] ERR 2016-11-24T22:24:40.63+0800 [App/0] OUT 2016-11-24T22:24:41.64+0800 [DEA/5] OUT Stopping app instance (index 0) with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5 2016-11-24T22:24:41.64+0800 [DEA/5] OUT Stopped app instance (index 0) with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5 2016-11-24T22:24:56.52+0800 [API/0] OUT Updated app with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5 ({"state"=>"STARTED"}) 2016-11-24T22:24:56.52+0800 [DEA/5] OUT Starting app instance (index 0) with guid 95d878d5-600b-4672-b9ca-5b3a69c615d5 KaiZhaos-MacBook-Pro:~ kaizhao$ Step 18: List all stacks (a stack is a pre-built file system, including an operating system, that can run apps) Reference http://cli.cloudfoundry.org/en-US/cf/stacks.html cf stacks KaiZhaos-MacBook-Pro:~ kaizhao$ cf stacks Getting stacks in org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com... OK name description cflinuxfs2 Cloud Foundry Linux-based filesystem KaiZhaos-MacBook-Pro:~ kaizhao$ Step 19: org and space information KaiZhaos-MacBook-Pro:~ kaizhao$ cf orgs Getting orgs as xxxxxx@qq.com...
  • 22. name Shanghai_Foundry KaiZhaos-MacBook-Pro:~ kaizhao$ cf spaces Getting spaces in org Shanghai_Foundry as xxxxxx@qq.com... name xxxxxx@qq.com KaiZhaos-MacBook-Pro:~ kaizhao$ Route: map the domain name to a specific instance. ============================================================ Step 20: List all routes in the current space or the current organization Reference http://cli.cloudfoundry.org/en-US/cf/routes.html cf routes [--orglevel] KaiZhaos-MacBook-Pro:~ kaizhao$ cf routes Getting routes for org Shanghai_Foundry / space xxxxxx@qq.com as xxxxxx@qq.com ... space host domain port path type apps service xxxxxx@qq.com predix-helloworld-webapp-kz run.xxxx.predix.io Predix-HelloWorld-WebApp-KZ KaiZhaos-MacBook-Pro:~ kaizhao$ Step 21: List domains in the target org Reference http://cli.cloudfoundry.org/en-US/cf/domains.html cf domains