From charlesreid1

(Created page with "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) * Organizat...")
 
m (Replacing charlesreid1.com:3000 with git.charlesreid1.com)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Using git to organize Dockerfiles:
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)
* 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
* Organization was called docker: https://git.charlesreid1.com/docker
* User docker owns repositories related to storing Dockerfiles for docker containers that are useful to have accessible across machines.
* User docker owns repositories related to storing Dockerfiles for docker containers that are useful to have accessible across machines.


Line 24: Line 24:


[[Category:Git]]
[[Category:Git]]
[[Category:Docker]]
 
{{DockerFlag}}

Latest revision as of 03:22, 9 October 2019

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://git.charlesreid1.com/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.