This repository contains recipes to Dockers created by CCBR team members to be used :
The docker images were pushed to dockerhub and are available here.
/data2
→ Default working directory/opt2
→ Tools/software installed inside the docker container go hereNOTE: The suffix
2
ensures that there is no conflict with the hosts'/data
and/opt
folders.
Original recipe Dockerfile
is copied into the docker image itself in the /opt2
folder.
Most docker images are built using our own base image nciccbr/ccbr_ubuntu_base_20.04:latest
NOTE: Some of the older docker images may use one of the following base image:
ubuntu:16.04
ubuntu:18.04
bitnami/minideb:jessie
: Docker images built using this base image tend to have a smaller digital footprint.
BUILD_DATE
BUILD_TAG
REPONAME
nciccbr/ccbr_ubuntu_base_20.04
is built:ubuntu:20.04
LTS as its base image/data2
and /opt2
folder/data2
nciccbr/ccbr_ubuntu_base_20.04:SOMETAG
as base imageUse these lines to kick start your recipe:
FROM nciccbr/ccbr_ubuntu_base_20.04:SOMETAG
# build time variables
ARG BUILD_DATE="000000"
ENV BUILD_DATE=${BUILD_DATE}
ARG BUILD_TAG="000000"
ENV BUILD_TAG=${BUILD_TAG}
ARG REPONAME="000000"
ENV REPONAME=${REPONAME}
# your layers go here!!!
COPY Dockerfile /opt2/Dockerfile_${REPONAME}.${BUILD_TAG}
RUN chmod a+r /opt2/Dockerfile_${REPONAME}.${BUILD_TAG}
NOTE: Dockerfile template is available under the
resources
folder.
build
and push
scripts are from the scripts
folder can be used to:
nciccbr
dockerhub accountbuild
expects the folder to contain a file named Dockerfile.TAG
which is symlinked to Dockerfile
prior to initiating a buildbuild
extracts the name of the repo from the current folder namepush
pushes the built docker over to dockerhubeg.: Running the following:
> /path/to/scripts/build v2
inside the folder /some/path/ccbr_xyz
will
Dockerfile.v2
in the folderDockerfile
nciccbr/ccbr_xyz:v2
Following this up with:
> /path/to/scripts/path v2
will
nciccbr/ccbr_xyz:v2
to Dockerhubnciccbr/ccbr_xyz:latest
with nciccbr/ccbr_xyz:v2
on dockerhubNOTE: If you are not a member of the
nciccbr
org on Dockerhub, then you cannot usepush
script as-in. You may have to modify thedockerhub_account
variable appropriately for a successful push.