Different docker containers and wrappers.
https://hub.docker.com/r/neurral/cutin/tags
Note: there are no latest
tags used. Each branch is built on its own name.
"Stack" refers to the technology/technologies you are containeraizing.
- Docker org and repository:
neurral/cutin
- Colon:
:
- Name of stack (if multiple, separate each name by underscore):
stack1_stack2_stack3
- If specifying a version of the stack, follow with a dash and semver:
-0.0.1
- Branch name:
dockerfiles
/name_of_stack
- Let's name this stack as something short but memorable and sortable: pg_postgis.
$ export CUTIN_DIR=pg_postgis
- Create branch:
$ git branch dockerfiles/$CUTIN_DIR
$ git checkout dockerfiles/$CUTIN_DIR
- Create your own folder with same name. Do not mix with root folder or other unrelated folders.
$ mkdir $CUTIN_DIR
- In your folder, add your Dockerfile and changes.
- Once, done, test it with a
docker build
in project root.
# use YOUR_FOLDER_NAME with the docker tag following the naming convention below.
$ docker build $CUTIN_DIR/ -t neurral/cutin:$CUTIN_DIR-10.4
# Take note of the container ID, like 'beac46c7bb36'
# To also push to Github Pacakge Registry
$ docker login docker.pkg.github.com --username neurral -p GITHUB_TOKEN
$ docker build pg_postgis/ -t docker.pkg.github.com/neurral/cutin/$CUTIN_DIR-10.4:latest
$ docker push docker.pkg.github.com/neurral/cutin/$CUTIN_DIR-10.4:latest
- If you want to PR this, add a git tag following the name of your branch-version and push.
$ git tag pg_postgis-10.4
$ git push origin dockerfiles/pg_postgis-10.4 --tags
In your custom Dockerfile:
FROM neurral/cutin:pg_postgis-10.4
or docker-compose.yml:
image: neurral/cutin:pg_postgis-10.4