Skip to content

Instantly share code, notes, and snippets.

@nazavode
Last active January 30, 2018 15:52
Show Gist options
  • Save nazavode/61650268b150e94bdbfa58fe0f626373 to your computer and use it in GitHub Desktop.
Save nazavode/61650268b150e94bdbfa58fe0f626373 to your computer and use it in GitHub Desktop.
FROM centos:7
RUN yum -y update && \
yum -y upgrade && \
yum -y install git gcc gcc-c++ make bzip2 patch file
RUN useradd -ms /bin/bash spack
USER spack
RUN git clone --depth=1 --single-branch https://github.com/spack/spack.git /home/spack/spack
RUN git clone --depth=1 --single-branch https://github.com/nazavode/spack-repo-test.git /home/spack/spack-repo-test
RUN /home/spack/spack/bin/spack repo add /home/spack/spack-repo-test
RUN /home/spack/spack/bin/spack spec example-dependent
RUN /home/spack/spack/bin/spack install example-dependent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment