Giter Club home page Giter Club logo

docker_tutorial's Introduction

Notes

Steps

  1. Setup a flask app w/ venv
  2. See that it works
  3. Write a dockerfile
  4. Run it, and see that the thing is running but not accessible
  5. docker ps
  6. Add exposed ports and flask config
  7. Compose
  8. Compose env variables
  9. Why docker?
    1. Same os environment on local and prod
    2. Runs on anything
    3. Ephemeral
    4. No dependency hell
    5. Repeatable builds
    6. Separation from the host means OS updates don’t break things
    7. Security: ACE probably doesn’t get to the host OS or other containers
    8. Simplicity: can download and run with the exact same environment with a single command
    9. Scalability: I can run X instances by adding a single line to a config file w/ swarm, kubes, aws, etc.

How to follow this tutorial.

  1. Clone the repo (or just view it on GitHub)
  2. Checkout the first commit using `git log` then `git checkout ….` using the commit hash from the first commit
  3. Checkout the following commits to follow the steps.

docker_tutorial's People

Contributors

tomfaulkner avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.