CCBR / Dockers

A collection of Dockerfiles to facilitate reproducibility across computing environments.
11 stars 3 forks source link
biowulf dnanexus docker sbg singularity

:anchor: Dockers :anchor:

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.

General conventions:

NOTE: The suffix 2 ensures that there is no conflict with the hosts' /data and /opt folders.

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.

How the base image nciccbr/ccbr_ubuntu_base_20.04 is built:

How to build your own docker image:

Use 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.

eg.: Running the following:

> /path/to/scripts/build v2

inside the folder /some/path/ccbr_xyz will

Following this up with:

> /path/to/scripts/path v2

will

NOTE: If you are not a member of the nciccbr org on Dockerhub, then you cannot use push script as-in. You may have to modify the dockerhub_account variable appropriately for a successful push.