mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-10 10:57:25 +01:00
47 lines
1.2 KiB
Docker
47 lines
1.2 KiB
Docker
FROM krallin/centos-tini:7
|
|
MAINTAINER Michael J. Stealey <stealey@renci.org>
|
|
|
|
ENV SLURM_VERSION=19.05.1 \
|
|
MUNGE_UID=981 \
|
|
SLURM_UID=982 \
|
|
WORKER_UID=1000
|
|
|
|
RUN groupadd -g $MUNGE_UID munge \
|
|
&& useradd -m -c "MUNGE Uid 'N' Gid Emporium" -d /var/lib/munge -u $MUNGE_UID -g munge -s /sbin/nologin munge \
|
|
&& groupadd -g $SLURM_UID slurm \
|
|
&& useradd -m -c "Slurm workload manager" -d /var/lib/slurm -u $SLURM_UID -g slurm -s /bin/bash slurm \
|
|
&& groupadd -g $WORKER_UID worker \
|
|
&& useradd -m -c "Workflow user" -d /home/worker -u $WORKER_UID -g worker -s /bin/bash worker
|
|
|
|
# install packages for general functionality
|
|
RUN yum -y install \
|
|
epel-release \
|
|
&& yum -y install \
|
|
sudo \
|
|
wget \
|
|
which \
|
|
tree \
|
|
mariadb-server \
|
|
mariadb-devel \
|
|
munge \
|
|
munge-libs \
|
|
munge-devel \
|
|
openssh-server \
|
|
openssh-clients
|
|
|
|
# install slurm 19.05.1
|
|
COPY rpms /packages
|
|
# /usr/bin/mpiexec from slurm-torque conflicts with openmpi install
|
|
WORKDIR /packages
|
|
RUN yum -y localinstall $(ls | grep -v -e 'torque' -e 'openmpi')
|
|
WORKDIR /
|
|
|
|
VOLUME ["/home", "/.secret"]
|
|
|
|
# 22: SSH
|
|
# 3306: MariaDB
|
|
# 6817: Slurm Ctl D
|
|
# 6818: Slurm D
|
|
# 6819: Slurm DBD
|
|
EXPOSE 22 3306 6817 6818 6819
|