KEMBAR78
Deploying an application with Chef and Docker | PDF
Deploying an Application 
w/ Chef & Docker 
Daniel Ku (http://kjunine.net/)
AS-IS
TO-BE
Pros and Cons 
Let's Focus on Docker, Not Chef.
4 Difference of Data Amount between Versions 
(40MB) 
ADD . /studygps 
WORKDIR /studygps 
☛ RUN NODE_ENV=production npm install 
4 But it's not a Big Problem. 
4 And MONEY can solve this.
Pros and Cons 
Let's Focus on Docker, Not Chef.
...
???
4 Docker makes Chef Recipes SIMPLE and TYPICAL. 
docker_image 'kjunine/mongodb' do 
tag 'latest' 
cmd_timeout 600 
action :pull 
end 
docker_container 'mongod' do 
image 'kjunine/mongodb:latest' 
container_name 'mongod' 
entrypoint 'mongod' 
command "--dbpath /data --replSet #{node['mongodb']['replset']}" 
detach true 
port '27017:27017' 
volume '/data' 
cmd_timeout 300 
action :run 
end
4 But, you should write 
Dockerfiles 
additionally. 
4 It is much EASIER to write a Dockerfile than writing a 
Chef Recipe.
...
-_-a
!!!
Docker Orchestration with Chef 
can be 
possible.
Conclusion
After all, 
Docker <<<<< Orchestration Tool
So,
REAL Conclusion
I will WAIT and WATCH, 
until the WINNER 
appears.
ㅋㅋㅋ
The End 
I hope CoreOS wins.

Deploying an application with Chef and Docker

  • 1.
    Deploying an Application w/ Chef & Docker Daniel Ku (http://kjunine.net/)
  • 2.
  • 4.
  • 6.
    Pros and Cons Let's Focus on Docker, Not Chef.
  • 7.
    4 Difference ofData Amount between Versions (40MB) ADD . /studygps WORKDIR /studygps ☛ RUN NODE_ENV=production npm install 4 But it's not a Big Problem. 4 And MONEY can solve this.
  • 8.
    Pros and Cons Let's Focus on Docker, Not Chef.
  • 9.
  • 10.
  • 11.
    4 Docker makesChef Recipes SIMPLE and TYPICAL. docker_image 'kjunine/mongodb' do tag 'latest' cmd_timeout 600 action :pull end docker_container 'mongod' do image 'kjunine/mongodb:latest' container_name 'mongod' entrypoint 'mongod' command "--dbpath /data --replSet #{node['mongodb']['replset']}" detach true port '27017:27017' volume '/data' cmd_timeout 300 action :run end
  • 12.
    4 But, youshould write Dockerfiles additionally. 4 It is much EASIER to write a Dockerfile than writing a Chef Recipe.
  • 13.
  • 14.
  • 15.
  • 16.
    Docker Orchestration withChef can be possible.
  • 18.
  • 19.
    After all, Docker<<<<< Orchestration Tool
  • 21.
  • 22.
  • 23.
    I will WAITand WATCH, until the WINNER appears.
  • 24.
  • 25.
    The End Ihope CoreOS wins.