https://github.com/tomfaulkner/docker_tutorial
https://github.com/tomfaulkner/docker_tutorial
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomfaulkner/docker_tutorial
- Owner: TomFaulkner
- Created: 2022-08-02T21:31:06.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T21:47:41.000Z (over 3 years ago)
- Last Synced: 2025-01-01T06:27:17.392Z (12 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
#+title: 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.