mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-14 17:37:25 +01:00
40 lines
955 B
Docker
40 lines
955 B
Docker
|
FROM scidas/slurm.base:19.05.1
|
||
|
MAINTAINER Michael J. Stealey <stealey@renci.org>
|
||
|
|
||
|
# install openmpi 3.0.1
|
||
|
RUN yum -y install \
|
||
|
gcc-c++ \
|
||
|
gcc-gfortran \
|
||
|
&& yum -y localinstall \
|
||
|
/packages/openmpi-*.rpm
|
||
|
|
||
|
# install Lmod 7.7
|
||
|
RUN yum -y install \
|
||
|
lua-posix \
|
||
|
lua \
|
||
|
lua-filesystem \
|
||
|
lua-devel \
|
||
|
wget \
|
||
|
bzip2 \
|
||
|
expectk \
|
||
|
make \
|
||
|
&& wget https://sourceforge.net/projects/lmod/files/Lmod-7.7.tar.bz2 \
|
||
|
&& tar -xjvf Lmod-7.7.tar.bz2
|
||
|
WORKDIR /Lmod-7.7
|
||
|
RUN ./configure --prefix=/opt/apps \
|
||
|
&& make install \
|
||
|
&& ln -s /opt/apps/lmod/lmod/init/profile /etc/profile.d/z00_lmod.sh \
|
||
|
&& ln -s /opt/apps/lmod/lmod/init/cshrc /etc/profile.d/z00_lmod.csh
|
||
|
|
||
|
WORKDIR /home/worker
|
||
|
|
||
|
# clean up
|
||
|
RUN rm -f /packages/slurm-*.rpm /packages/openmpi-*.rpm \
|
||
|
&& yum clean all \
|
||
|
&& rm -rf /var/cache/yum \
|
||
|
&& rm -f /Lmod-7.7.tar.bz2
|
||
|
|
||
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||
|
|
||
|
ENTRYPOINT ["/usr/local/bin/tini", "--", "/docker-entrypoint.sh"]
|