deploying an application with chef and docker

25
Deploying an Applica tion w/ Chef & Docker Daniel Ku ( ht tp://kjunine.net/)

Upload: daniel-ku

Post on 02-Dec-2014

574 views

Category:

Software


5 download

DESCRIPTION

Docker 캐주얼 토크 #1 (2014-10-15)에서 발표하기 위해 만든 자료. 원래 'Docker 실서비스 도입기'를 발표하려고 했으나, 아직 도입이 마무리되지 못한 관계로 그 과정에서 의미 있는 부분을 찾아보았다. 그래서 Chef와 Docker가 도입되면 StudyGPS에서 어플리케이션을 업데이트하는 기존의 방식이 어떻게 변화하는지에 대해 설명하고, 그 변화의 의미에 대해서 생각해보고 정리하였다.

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.