SlideShare a Scribd company logo
1 of 22
Download to read offline
Cloud Focker 
 
20 PaaS  
2014919 
ibmamnt 
© 2014 IBM Corporation
© 2014 @ibmamnt
! 
#$% '()*+,-./ 
012 3456785697:;=:59?@AABCD=EFG 
HI JK*LMNOPQRS 
TUV WXXEYZZ@[@9545]^_5:7E:CFF^`5[ 
abcdefghij kl[@[9XG
© 2014 @ibmamnt 
	


 
• Cloud Foundry
• ssh  tmate-boostrap 
https://github.com/danhigham/tmate-bootstrap/ 
blob/master/scripts/cf-ssh  
•  !#
 
• $%$%'((( 
“cf logs --recent”
”cf files”
© 2014 @ibmamnt
• cf-debug-tools )* by @morika_t + 
– Cloud foundry(v2) !#$% 
(http://www.slideshare.net/morika_t/cloud-foundryv2-17- 
cloud-foundry ) 
• Node ,-./012.34	
5 
6 by @pmuellr+(IBM) 
– https://github.com/pmuellr/cf-node-debug 
• 78 Java 8'.34	
9: 
– http://www.paasmag.com/2014/07/31/debugging-java-applications- 
running-in-bluemix/
© 2014 @ibmamnt
mn stage failed o
Cloud Focker  
• Cloud Foundry Docker = Cloud Focker 
Cloud Foundry '!()*+,-./01 
– CloudCredo;-=?@48ABCD 
• https://github.com/CloudCredo/cloudfocker 
• E Version 0.0.1 FEG'H 
© 2014 @ibmamnt 
– IJ 
• Cloud Foundry ' stack (lucid64)!2)3 
•  Docker . 
• buildpack '45)67 
 @kenojiri 89' twitter :;)=?@AB7
© 2014 @ibmamnt 
Cloud Focker at a glance 
fock up 
Run application 
run 
Cloud Foundry Container( lucid64) 
stage 
Application source p buildpack 
Cloud Focker image (Ubuntu / Docker)
© 2014 @ibmamnt 
fock  
VERSION: 
0.0.1 
COMMANDS: 
docker Docker 
this Cloud Foundry image  
up
stage  
off
buildpacks buildpack 
add-buildpack buildpack 
delete-buildpack buildpack 
stage stage	 
run stage
© 2014 @ibmamnt 
 ! 
$ fock buildpacks 
java-buildpack 
nodejs-buildpack 
$ fock add-buildpack 
https://github.com/cloudfoundry/ruby-buildpack.git 
$ fock buildpacks 
java-buildpack 
nodejs-buildpack 
ruby-buildpack 
Ruby *qrstuvwxy 
Ruby qrstuvxyz{j
© 2014 @ibmamnt 
dora 
#$%$ 
• 	 dora 
$pwd 
/tmp/cf-acceptance-tests/assets/dora 
$ echo “web: exec bundle exec rails server -p $PORT”  Procfile 
$fock up 
Starting the CloudFocker container... 
Running Buildpacks... 
----- Compiling Ruby/Rack 
Started the CloudFocker container. 
Connect to your running application at http://localhost:8080/ 
$curl http://localhost:8080 
Hi, I'm Dora!
© 2014 @ibmamnt 
Cloud Focker : orz '( 
# fock up 
Starting the CloudFocker container... 
Running Buildpacks... 
Started the CloudFocker container. 
Deleting the CloudFocker container... 
cloudfocker-staging 
Deleted container. 
2014/09/18 02:01:22 Staging failed 
Stage CDAEFGA
H orz III
© 2014 @ibmamnt 
Tips 
• Procfile  (Node, Ruby) 
web: KL2M 
• VCAP_APP_PORT

More Related Content

What's hot

NLIT 2011: Chef & Capistrano
NLIT 2011: Chef & CapistranoNLIT 2011: Chef & Capistrano
NLIT 2011: Chef & Capistranonickblah
 
Spring Booted, But... @JCConf 16', Taiwan
Spring Booted, But... @JCConf 16', TaiwanSpring Booted, But... @JCConf 16', Taiwan
Spring Booted, But... @JCConf 16', TaiwanPei-Tang Huang
 
"13 ways to run web applications on the Internet" Andrii Shumada
"13 ways to run web applications on the Internet" Andrii Shumada"13 ways to run web applications on the Internet" Andrii Shumada
"13 ways to run web applications on the Internet" Andrii ShumadaFwdays
 
How to stay sane during your Vagrant journey
How to stay sane during your Vagrant journeyHow to stay sane during your Vagrant journey
How to stay sane during your Vagrant journeyJakub Wadolowski
 
Understanding kube proxy in ipvs mode
Understanding kube proxy in ipvs modeUnderstanding kube proxy in ipvs mode
Understanding kube proxy in ipvs modeVictor Morales
 
1st Chinaonrails Open Course 高级战略
1st Chinaonrails Open Course 高级战略1st Chinaonrails Open Course 高级战略
1st Chinaonrails Open Course 高级战略Jesse Cai
 
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and ChefScaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chefbridgetkromhout
 
Building with Firebase
Building with FirebaseBuilding with Firebase
Building with FirebaseMike Fowler
 
Toolbox of a Ruby Team
Toolbox of a Ruby TeamToolbox of a Ruby Team
Toolbox of a Ruby TeamArto Artnik
 
Lesson Learned from Using Docker Swarm at Pronto
Lesson Learned from Using Docker Swarm at ProntoLesson Learned from Using Docker Swarm at Pronto
Lesson Learned from Using Docker Swarm at ProntoKan Ouivirach, Ph.D.
 
Docker command
Docker commandDocker command
Docker commandEric Ahn
 
Deploying Rails applications with Moonshine
Deploying Rails applications with MoonshineDeploying Rails applications with Moonshine
Deploying Rails applications with MoonshineRobot Mode
 
Managing Puppet using MCollective
Managing Puppet using MCollectiveManaging Puppet using MCollective
Managing Puppet using MCollectivePuppet
 
Building Docker images with Puppet
Building Docker images with PuppetBuilding Docker images with Puppet
Building Docker images with PuppetNick Jones
 
Deployment with Fabric
Deployment with FabricDeployment with Fabric
Deployment with Fabricandymccurdy
 
Running node.js as a service behind nginx/varnish
Running node.js as a service behind nginx/varnishRunning node.js as a service behind nginx/varnish
Running node.js as a service behind nginx/varnishthiagoalessio
 
Learn basic ansible using docker
Learn basic ansible using dockerLearn basic ansible using docker
Learn basic ansible using dockerLarry Cai
 
手把手教你如何串接 Log 到各種網路服務
手把手教你如何串接 Log 到各種網路服務手把手教你如何串接 Log 到各種網路服務
手把手教你如何串接 Log 到各種網路服務Mu Chun Wang
 
Quick and Dirty Python Deployments with Heroku
Quick and Dirty Python Deployments with HerokuQuick and Dirty Python Deployments with Heroku
Quick and Dirty Python Deployments with HerokuDaniel Pritchett
 

What's hot (20)

NLIT 2011: Chef & Capistrano
NLIT 2011: Chef & CapistranoNLIT 2011: Chef & Capistrano
NLIT 2011: Chef & Capistrano
 
Spring Booted, But... @JCConf 16', Taiwan
Spring Booted, But... @JCConf 16', TaiwanSpring Booted, But... @JCConf 16', Taiwan
Spring Booted, But... @JCConf 16', Taiwan
 
"13 ways to run web applications on the Internet" Andrii Shumada
"13 ways to run web applications on the Internet" Andrii Shumada"13 ways to run web applications on the Internet" Andrii Shumada
"13 ways to run web applications on the Internet" Andrii Shumada
 
(Re)discover your AEM
(Re)discover your AEM(Re)discover your AEM
(Re)discover your AEM
 
How to stay sane during your Vagrant journey
How to stay sane during your Vagrant journeyHow to stay sane during your Vagrant journey
How to stay sane during your Vagrant journey
 
Understanding kube proxy in ipvs mode
Understanding kube proxy in ipvs modeUnderstanding kube proxy in ipvs mode
Understanding kube proxy in ipvs mode
 
1st Chinaonrails Open Course 高级战略
1st Chinaonrails Open Course 高级战略1st Chinaonrails Open Course 高级战略
1st Chinaonrails Open Course 高级战略
 
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and ChefScaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
 
Building with Firebase
Building with FirebaseBuilding with Firebase
Building with Firebase
 
Toolbox of a Ruby Team
Toolbox of a Ruby TeamToolbox of a Ruby Team
Toolbox of a Ruby Team
 
Lesson Learned from Using Docker Swarm at Pronto
Lesson Learned from Using Docker Swarm at ProntoLesson Learned from Using Docker Swarm at Pronto
Lesson Learned from Using Docker Swarm at Pronto
 
Docker command
Docker commandDocker command
Docker command
 
Deploying Rails applications with Moonshine
Deploying Rails applications with MoonshineDeploying Rails applications with Moonshine
Deploying Rails applications with Moonshine
 
Managing Puppet using MCollective
Managing Puppet using MCollectiveManaging Puppet using MCollective
Managing Puppet using MCollective
 
Building Docker images with Puppet
Building Docker images with PuppetBuilding Docker images with Puppet
Building Docker images with Puppet
 
Deployment with Fabric
Deployment with FabricDeployment with Fabric
Deployment with Fabric
 
Running node.js as a service behind nginx/varnish
Running node.js as a service behind nginx/varnishRunning node.js as a service behind nginx/varnish
Running node.js as a service behind nginx/varnish
 
Learn basic ansible using docker
Learn basic ansible using dockerLearn basic ansible using docker
Learn basic ansible using docker
 
手把手教你如何串接 Log 到各種網路服務
手把手教你如何串接 Log 到各種網路服務手把手教你如何串接 Log 到各種網路服務
手把手教你如何串接 Log 到各種網路服務
 
Quick and Dirty Python Deployments with Heroku
Quick and Dirty Python Deployments with HerokuQuick and Dirty Python Deployments with Heroku
Quick and Dirty Python Deployments with Heroku
 

Viewers also liked

Presentacion trabajo anxo power point tema 1
Presentacion trabajo anxo power point tema 1Presentacion trabajo anxo power point tema 1
Presentacion trabajo anxo power point tema 1ANXOMOREIRAS
 
Traballo en diapositivas tema 6
Traballo en diapositivas tema 6Traballo en diapositivas tema 6
Traballo en diapositivas tema 6ANXOMOREIRAS
 
Traballo en diapositivas tema 5
Traballo en diapositivas tema 5Traballo en diapositivas tema 5
Traballo en diapositivas tema 5ANXOMOREIRAS
 
Traballo en diapositivas tema 6
Traballo en diapositivas tema 6Traballo en diapositivas tema 6
Traballo en diapositivas tema 6ANXOMOREIRAS
 
Anxo trabajo tema 4
Anxo trabajo tema 4Anxo trabajo tema 4
Anxo trabajo tema 4ANXOMOREIRAS
 
Traballo en diapositivas tema 8
Traballo en diapositivas tema 8Traballo en diapositivas tema 8
Traballo en diapositivas tema 8ANXOMOREIRAS
 
Kajul verma-Product Implementation Engineer_4 years
Kajul verma-Product Implementation Engineer_4 yearsKajul verma-Product Implementation Engineer_4 years
Kajul verma-Product Implementation Engineer_4 yearsKAJUL VERMA
 
Deploy application from web editor 20140326 public
Deploy application from web editor 20140326 publicDeploy application from web editor 20140326 public
Deploy application from web editor 20140326 publicTakehiko Amano
 
Pic Profile
Pic ProfilePic Profile
Pic ProfileDebbout
 
Polivka Profile
Polivka ProfilePolivka Profile
Polivka ProfileDebbout
 
OpenWhisk introduction public
OpenWhisk introduction publicOpenWhisk introduction public
OpenWhisk introduction publicTakehiko Amano
 
Node red hands on - public
Node red hands on - publicNode red hands on - public
Node red hands on - publicTakehiko Amano
 
Garden introduction for dea users public
Garden introduction for dea users   publicGarden introduction for dea users   public
Garden introduction for dea users publicTakehiko Amano
 

Viewers also liked (17)

E commerce
E commerceE commerce
E commerce
 
Making the Voice of the Customer Roar Through the C-Suite
Making the Voice of the Customer Roar Through the C-SuiteMaking the Voice of the Customer Roar Through the C-Suite
Making the Voice of the Customer Roar Through the C-Suite
 
Presentacion trabajo anxo power point tema 1
Presentacion trabajo anxo power point tema 1Presentacion trabajo anxo power point tema 1
Presentacion trabajo anxo power point tema 1
 
Traballo en diapositivas tema 6
Traballo en diapositivas tema 6Traballo en diapositivas tema 6
Traballo en diapositivas tema 6
 
Traballo en diapositivas tema 5
Traballo en diapositivas tema 5Traballo en diapositivas tema 5
Traballo en diapositivas tema 5
 
Traballo en diapositivas tema 6
Traballo en diapositivas tema 6Traballo en diapositivas tema 6
Traballo en diapositivas tema 6
 
Anxo trabajo tema 4
Anxo trabajo tema 4Anxo trabajo tema 4
Anxo trabajo tema 4
 
Traballo en diapositivas tema 8
Traballo en diapositivas tema 8Traballo en diapositivas tema 8
Traballo en diapositivas tema 8
 
Kajul verma-Product Implementation Engineer_4 years
Kajul verma-Product Implementation Engineer_4 yearsKajul verma-Product Implementation Engineer_4 years
Kajul verma-Product Implementation Engineer_4 years
 
Deploy application from web editor 20140326 public
Deploy application from web editor 20140326 publicDeploy application from web editor 20140326 public
Deploy application from web editor 20140326 public
 
Pic Profile
Pic ProfilePic Profile
Pic Profile
 
Nicepics
NicepicsNicepics
Nicepics
 
Polivka Profile
Polivka ProfilePolivka Profile
Polivka Profile
 
OpenWhisk introduction public
OpenWhisk introduction publicOpenWhisk introduction public
OpenWhisk introduction public
 
Della i
Della iDella i
Della i
 
Node red hands on - public
Node red hands on - publicNode red hands on - public
Node red hands on - public
 
Garden introduction for dea users public
Garden introduction for dea users   publicGarden introduction for dea users   public
Garden introduction for dea users public
 

Similar to Cloud focker を試してみた public

CCCEU15 run cloudstack in docker
CCCEU15 run cloudstack in dockerCCCEU15 run cloudstack in docker
CCCEU15 run cloudstack in dockerPierre-Luc Dion
 
CloudStack Collab Conference 2015 Run CloudStack in Docker
CloudStack Collab Conference 2015 Run CloudStack in DockerCloudStack Collab Conference 2015 Run CloudStack in Docker
CloudStack Collab Conference 2015 Run CloudStack in DockerCloudOps2005
 
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017Amazon Web Services Korea
 
How to create your own hack environment
How to create your own hack environmentHow to create your own hack environment
How to create your own hack environmentSumedt Jitpukdebodin
 
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境謝 宗穎
 
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis OverviewLeo Lorieri
 
Into The Box 2018 Going live with commandbox and docker
Into The Box 2018 Going live with commandbox and dockerInto The Box 2018 Going live with commandbox and docker
Into The Box 2018 Going live with commandbox and dockerOrtus Solutions, Corp
 
Going live with BommandBox and docker Into The Box 2018
Going live with BommandBox and docker Into The Box 2018Going live with BommandBox and docker Into The Box 2018
Going live with BommandBox and docker Into The Box 2018Ortus Solutions, Corp
 
Introduction to Cloud Foundry #JJUG
Introduction to Cloud Foundry #JJUGIntroduction to Cloud Foundry #JJUG
Introduction to Cloud Foundry #JJUGToshiaki Maki
 
Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)Ben Hall
 
How to Dockerize your Sitecore module
How to Dockerize your Sitecore moduleHow to Dockerize your Sitecore module
How to Dockerize your Sitecore moduleMihály Árvai
 
Developing and deploying applications with Spring Boot and Docker (@oakjug)
Developing and deploying applications with Spring Boot and Docker (@oakjug)Developing and deploying applications with Spring Boot and Docker (@oakjug)
Developing and deploying applications with Spring Boot and Docker (@oakjug)Chris Richardson
 
Docker Swarm 1.12 Overview and Demo
Docker Swarm 1.12 Overview and DemoDocker Swarm 1.12 Overview and Demo
Docker Swarm 1.12 Overview and DemoBrian Christner
 
CloudOps CloudStack Days, Austin April 2015
CloudOps CloudStack Days, Austin April 2015CloudOps CloudStack Days, Austin April 2015
CloudOps CloudStack Days, Austin April 2015CloudOps2005
 
Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)Ben Hall
 
DevFest 2022 - Cloud Workstation Introduction TaiChung
DevFest 2022 - Cloud Workstation Introduction TaiChungDevFest 2022 - Cloud Workstation Introduction TaiChung
DevFest 2022 - Cloud Workstation Introduction TaiChungKAI CHU CHUNG
 
Real World Experience of Running Docker in Development and Production
Real World Experience of Running Docker in Development and ProductionReal World Experience of Running Docker in Development and Production
Real World Experience of Running Docker in Development and ProductionBen Hall
 
Docker for Java Developers
Docker for Java DevelopersDocker for Java Developers
Docker for Java DevelopersNGINX, Inc.
 

Similar to Cloud focker を試してみた public (20)

CCCEU15 run cloudstack in docker
CCCEU15 run cloudstack in dockerCCCEU15 run cloudstack in docker
CCCEU15 run cloudstack in docker
 
CloudStack Collab Conference 2015 Run CloudStack in Docker
CloudStack Collab Conference 2015 Run CloudStack in DockerCloudStack Collab Conference 2015 Run CloudStack in Docker
CloudStack Collab Conference 2015 Run CloudStack in Docker
 
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
AWS와 Docker Swarm을 이용한 쉽고 빠른 컨테이너 오케스트레이션 - AWS Summit Seoul 2017
 
How to create your own hack environment
How to create your own hack environmentHow to create your own hack environment
How to create your own hack environment
 
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境
 
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
 
Into The Box 2018 Going live with commandbox and docker
Into The Box 2018 Going live with commandbox and dockerInto The Box 2018 Going live with commandbox and docker
Into The Box 2018 Going live with commandbox and docker
 
Going live with BommandBox and docker Into The Box 2018
Going live with BommandBox and docker Into The Box 2018Going live with BommandBox and docker Into The Box 2018
Going live with BommandBox and docker Into The Box 2018
 
Introduction to Cloud Foundry #JJUG
Introduction to Cloud Foundry #JJUGIntroduction to Cloud Foundry #JJUG
Introduction to Cloud Foundry #JJUG
 
Set up a Development Environment in 5 Minutes
Set up a Development Environment in 5 MinutesSet up a Development Environment in 5 Minutes
Set up a Development Environment in 5 Minutes
 
Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)
 
How to Dockerize your Sitecore module
How to Dockerize your Sitecore moduleHow to Dockerize your Sitecore module
How to Dockerize your Sitecore module
 
Docker, c'est bonheur !
Docker, c'est bonheur !Docker, c'est bonheur !
Docker, c'est bonheur !
 
Developing and deploying applications with Spring Boot and Docker (@oakjug)
Developing and deploying applications with Spring Boot and Docker (@oakjug)Developing and deploying applications with Spring Boot and Docker (@oakjug)
Developing and deploying applications with Spring Boot and Docker (@oakjug)
 
Docker Swarm 1.12 Overview and Demo
Docker Swarm 1.12 Overview and DemoDocker Swarm 1.12 Overview and Demo
Docker Swarm 1.12 Overview and Demo
 
CloudOps CloudStack Days, Austin April 2015
CloudOps CloudStack Days, Austin April 2015CloudOps CloudStack Days, Austin April 2015
CloudOps CloudStack Days, Austin April 2015
 
Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)
 
DevFest 2022 - Cloud Workstation Introduction TaiChung
DevFest 2022 - Cloud Workstation Introduction TaiChungDevFest 2022 - Cloud Workstation Introduction TaiChung
DevFest 2022 - Cloud Workstation Introduction TaiChung
 
Real World Experience of Running Docker in Development and Production
Real World Experience of Running Docker in Development and ProductionReal World Experience of Running Docker in Development and Production
Real World Experience of Running Docker in Development and Production
 
Docker for Java Developers
Docker for Java DevelopersDocker for Java Developers
Docker for Java Developers
 

Cloud focker を試してみた public

  • 1. Cloud Focker 20 PaaS 2014919 ibmamnt © 2014 IBM Corporation
  • 3. ! #$% '()*+,-./ 012 3456785697:;=:59?@AABCD=EFG HI JK*LMNOPQRS TUV WXXEYZZ@[@9545]^_5:7E:CFF^`5[ abcdefghij kl[@[9XG
  • 4. © 2014 @ibmamnt • Cloud Foundry
  • 5. • ssh tmate-boostrap https://github.com/danhigham/tmate-bootstrap/ blob/master/scripts/cf-ssh • !# • $%$%'((( “cf logs --recent”
  • 8.
  • 9. • cf-debug-tools )* by @morika_t + – Cloud foundry(v2) !#$% (http://www.slideshare.net/morika_t/cloud-foundryv2-17- cloud-foundry ) • Node ,-./012.34 5 6 by @pmuellr+(IBM) – https://github.com/pmuellr/cf-node-debug • 78 Java 8'.34 9: – http://www.paasmag.com/2014/07/31/debugging-java-applications- running-in-bluemix/
  • 11.
  • 12.
  • 14. Cloud Focker • Cloud Foundry Docker = Cloud Focker Cloud Foundry '!()*+,-./01 – CloudCredo;-=?@48ABCD • https://github.com/CloudCredo/cloudfocker • E Version 0.0.1 FEG'H © 2014 @ibmamnt – IJ • Cloud Foundry ' stack (lucid64)!2)3 • Docker . • buildpack '45)67 @kenojiri 89' twitter :;)=?@AB7
  • 15. © 2014 @ibmamnt Cloud Focker at a glance fock up Run application run Cloud Foundry Container( lucid64) stage Application source p buildpack Cloud Focker image (Ubuntu / Docker)
  • 16. © 2014 @ibmamnt fock VERSION: 0.0.1 COMMANDS: docker Docker this Cloud Foundry image up
  • 18. buildpacks buildpack add-buildpack buildpack delete-buildpack buildpack stage stage run stage
  • 19. © 2014 @ibmamnt ! $ fock buildpacks java-buildpack nodejs-buildpack $ fock add-buildpack https://github.com/cloudfoundry/ruby-buildpack.git $ fock buildpacks java-buildpack nodejs-buildpack ruby-buildpack Ruby *qrstuvwxy Ruby qrstuvxyz{j
  • 20. © 2014 @ibmamnt dora #$%$ • dora $pwd /tmp/cf-acceptance-tests/assets/dora $ echo “web: exec bundle exec rails server -p $PORT” Procfile $fock up Starting the CloudFocker container... Running Buildpacks... ----- Compiling Ruby/Rack Started the CloudFocker container. Connect to your running application at http://localhost:8080/ $curl http://localhost:8080 Hi, I'm Dora!
  • 21. © 2014 @ibmamnt Cloud Focker : orz '( # fock up Starting the CloudFocker container... Running Buildpacks... Started the CloudFocker container. Deleting the CloudFocker container... cloudfocker-staging Deleted container. 2014/09/18 02:01:22 Staging failed Stage CDAEFGA H orz III
  • 22. © 2014 @ibmamnt Tips • Procfile (Node, Ruby) web: KL2M • VCAP_APP_PORT
  • 24. • – IBM Liberty buildpack (^O^)
  • 25. © 2014 @ibmamnt )*+,-. nsenter |}~sw€ $docker ps CONTAINER ID IMAGE NAMES 222c0f6535bb cloudfocker-base:latest /bin/bash $PID=$(docker inspect --format {{.State.Pid}} 222c0f6535bb) $sudo nsenter --target $PID --mount --uts --ipc --net --pid # pstree -a bash /app/cloudfocker-start-1c4352a23e52040ddb1857d7675fe3cc.sh /app bundle exec rackup config.ru -p $PORT ruby /app/vendor/bundle/ruby/2.0.0/bin/rackup config.ru -p 8080 2*[{ruby}]
  • 26. Cloud Foundry Warden /0 • ,-./012NO wshd OPQR STU • ,-./012O /home/vcap/app OP B /app VWXHYE • Port: 8080 Z[M+ B • /home/vcap/logs
  • 27. © 2014 @ibmamnt – JK “docker logs ” LM • 8 bind O vcap_service.json Z]^ 6 VW_` • !#$%
  • 28. ' abc
  • 29. © 2014 @ibmamnt 12 • 6Md @eC • ,-./012=f6 • ,-./012ghi2 -=4j^- • k
  • 30. © 2014 @ibmamnt 34 • Version 0.0.1 ABOlH8mPB • ()*+
  • 31. , -
  • 32. $ . – Cloud Focker
  • 33. Cloud Foundry PaaS N deploy • n9o – O' PC PQR%S • PC !#$%'()*) – cf-nise-install 'TMUV
  • 34. © 2014 @ibmamnt 56789:Bluemix L‚ƒ„…j†‡‡ https://www.youtube.com/watch?v=UXXiS_IYROE
  • 36. +,,-.//00012345674897/:9;,0=/?@,:/5@,=89@@8,/ Image from Wikipedia Image from http://www.las-vegas-urlaub.com/hotel-mandalay- bay.htm
  • 39. © 2014 @ibmamnt Cloud Focker @+(ABC) • VirtualBox / Vagrant pq` • Cloud Focker -=?@4@=2 – git clone https://github.com/CloudCredo/cloudfocker.git • OS ^rq` $ vagrant up –provider virtualbox $ vagrant ssh • nsenter q` docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter (/usr/local/bin NWS)