Skip to content

Commit

Permalink
allow customizing base image via build args
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed May 29, 2020
1 parent 6aa7927 commit 528b6bd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions containers/Dockerfile.base-centos7
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM centos:7.8.2003
# Set default easybuild version
ARG IMG_REGISTRY=docker.io
ARG IMG_ORG=library
ARG IMG_NAME=centos
ARG IMG_TAG=7.8.2003
# allow CI/CD to change all of the above
FROM ${IMG_REGISTRY}/${IMG_ORG}/${IMG_NAME}:${IMG_TAG}
# set default easybuild version
ARG EB_VER=4.2.1
LABEL easybuild_version=${EB_VER}
# install required packages (EPEL is required for Lmod)
Expand Down Expand Up @@ -39,4 +44,5 @@ USER root
RUN pip3 uninstall -y easybuild
# switch to 'easybuild' user
USER easybuild
# make sure we start in /home/easybuild rather than / when shell in started in container
WORKDIR /home/easybuild

0 comments on commit 528b6bd

Please sign in to comment.