Docker/Dockerfiles/Git
From charlesreid1
Using git to organize Dockerfiles:
- Started by creating an organization on git.charlesreid1.com (can do this on Github/Github Enterprise/GitLab/BitBucket as well)
- Organization was called docker: https://charlesreid1.com:3000/docker
- User docker owns repositories related to storing Dockerfiles for docker containers that are useful to have accessible across machines.
All repositories created in the docker organization follow the same system:
- Each repo prefixed with d-
- Apache httpd is d-httpd
- Mongodb container is d-mongodb
- Etc
Repository contents:
- Dockerfile
- Readme
- Config files
- Relevant scripts for building/running/other important verbs
- You basically plug and chug, docker build with the docker file
Git:
- Possible to use Git because Dockerfiles are just plain text.