Skip to content

Instantly share code, notes, and snippets.

@William-Hill
Last active August 5, 2018 04:56
Show Gist options
  • Save William-Hill/e7049b159b5fab23fcb23bf0ed30bd99 to your computer and use it in GitHub Desktop.
Save William-Hill/e7049b159b5fab23fcb23bf0ed30bd99 to your computer and use it in GitHub Desktop.
Dockerfile for creating a CentOS6 image bootstrapped for ESGF
# Use an official CentOS image
FROM centos:6
# Set the working directory to /home/hill119
WORKDIR /home/hill119
USER root
# Copy the current directory contents into the container at /home/hill119
ADD . /home/hill119
RUN yum -y install wget && yum clean all
# Run esgf bootstrap
RUN chmod 777 esg_bootstrap.sh && ./esg_bootstrap.sh
#Activate conda env
RUN source /usr/local/conda/bin/activate esgf-pub
RUN git clone https://github.com/ESGF/esgf-installer.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment