Transcript
Page 1: Deploying an application with Chef and Docker

Deploying an Application w/ Chef & Docker

Daniel Ku (http://kjunine.net/)

Page 2: Deploying an application with Chef and Docker

AS-IS

Page 3: Deploying an application with Chef and Docker
Page 4: Deploying an application with Chef and Docker

TO-BE

Page 5: Deploying an application with Chef and Docker
Page 6: Deploying an application with Chef and Docker

Pros and ConsLet's Focus on Docker, Not Chef.

Page 7: Deploying an application with Chef and Docker

4 Difference of Data Amount between Versions (40MB)

ADD . /studygpsWORKDIR /studygps

☛ RUN NODE_ENV=production npm install

4 But it's not a Big Problem.

4 And MONEY can solve this.

Page 8: Deploying an application with Chef and Docker

Pros and ConsLet's Focus on Docker, Not Chef.

Page 9: Deploying an application with Chef and Docker

...

Page 10: Deploying an application with Chef and Docker

???

Page 11: Deploying an application with Chef and Docker

4 Docker makes Chef Recipes SIMPLE and TYPICAL.docker_image 'kjunine/mongodb' do tag 'latest' cmd_timeout 600 action :pullend

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 :runend

Page 12: Deploying an application with Chef and Docker

4 But, you should write

Dockerfilesadditionally.

4 It is much EASIER to write a Dockerfile than writing a Chef Recipe.

Page 13: Deploying an application with Chef and Docker

...

Page 14: Deploying an application with Chef and Docker

-_-a

Page 15: Deploying an application with Chef and Docker

!!!

Page 16: Deploying an application with Chef and Docker

Docker Orchestration with Chefcan be

possible.

Page 17: Deploying an application with Chef and Docker
Page 18: Deploying an application with Chef and Docker

Conclusion

Page 19: Deploying an application with Chef and Docker

After all,

Docker <<<<< Orchestration Tool

Page 20: Deploying an application with Chef and Docker
Page 21: Deploying an application with Chef and Docker

So,

Page 22: Deploying an application with Chef and Docker

REAL Conclusion

Page 23: Deploying an application with Chef and Docker

I will WAIT and WATCH, until the WINNER

appears.

Page 24: Deploying an application with Chef and Docker

ㅋㅋㅋ

Page 25: Deploying an application with Chef and Docker

The EndI hope CoreOS wins.