Deploying an application with Chef and Docker

Download Deploying an application with Chef and Docker

Post on 02-Dec-2014

542 views

Category:

Software

5 download

DESCRIPTION

Docker #1 (2014-10-15) . 'Docker ' , . Chef Docker StudyGPS , .

TRANSCRIPT

  • 1. Deploying an Application w/ Chef & Docker Daniel Ku (http://kjunine.net/)
  • 2. AS-IS
  • 3. TO-BE
  • 4. Pros and Cons Let's Focus on Docker, Not Chef.
  • 5. 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.
  • 6. Pros and Cons Let's Focus on Docker, Not Chef.
  • 7. ...
  • 8. ???
  • 9. 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
  • 10. 4 But, you should write Dockerfiles additionally. 4 It is much EASIER to write a Dockerfile than writing a Chef Recipe.
  • 11. ...
  • 12. -_-a
  • 13. !!!
  • 14. Docker Orchestration with Chef can be possible.
  • 15. Conclusion
  • 16. After all, Docker