Skip to content

Commit

Permalink
updating readme with instructions
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Aug 24, 2021
1 parent d3feecb commit fd3d86c
Show file tree
Hide file tree
Showing 6 changed files with 246 additions and 258 deletions.
88 changes: 13 additions & 75 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,88 +1,26 @@
FROM centos:7

# docker build -t vanessa/slurm:20.11.8 .
FROM vanessa/slurm:18.08.6

LABEL org.label-schema.vcs-url="https://github.com/hpc/spindle" \
org.label-schema.docker.cmd="docker-compose up -d" \
org.label-schema.name="spindle" \
org.label-schema.description="Spindle with SLURM on Centos 7" \
maintainer="Vanessa Sochat"

ARG SLURM_TAG=slurm-20-11-8-1

RUN set -ex \
&& yum makecache fast \
&& yum -y update \
&& yum -y install epel-release \
&& yum -y install \
wget \
bzip2 \
perl \
gcc \
gcc-c++\
git \
gnupg \
make \
munge \
munge-devel \
python-devel \
python-pip \
python3 \
python3-devel \
python3-pip \
mariadb-server \
mariadb-devel \
psmisc \
bash-completion \
vim-enhanced \
automake \
&& yum clean all \
&& rm -rf /var/cache/yum

RUN pip install Cython nose && pip3 install Cython nose

RUN set -x \
&& git clone https://github.com/SchedMD/slurm.git \
&& pushd slurm \
&& git checkout tags/$SLURM_TAG \
&& ./configure --enable-debug --prefix=/usr --sysconfdir=/etc/slurm \
--with-mysql_config=/usr/bin --libdir=/usr/lib64 \
&& make install \
&& install -D -m644 etc/cgroup.conf.example /etc/slurm/cgroup.conf.example \
&& install -D -m644 etc/slurm.conf.example /etc/slurm/slurm.conf.example \
&& install -D -m644 etc/slurmdbd.conf.example /etc/slurm/slurmdbd.conf.example \
&& install -D -m644 contribs/slurm_completion_help/slurm_completion.sh /etc/profile.d/slurm_completion.sh \
&& popd \
&& rm -rf slurm \
&& groupadd -r --gid=995 slurm \
&& useradd -r -g slurm --uid=995 slurm \
&& mkdir /etc/sysconfig/slurm \
/var/spool/slurmd \
/var/run/slurmd \
/var/run/slurmdbd \
/var/lib/slurmd \
/var/log/slurm \
/data \
&& touch /var/lib/slurmd/node_state \
/var/lib/slurmd/front_end_state \
/var/lib/slurmd/job_state \
/var/lib/slurmd/resv_state \
/var/lib/slurmd/trigger_state \
/var/lib/slurmd/assoc_mgr_state \
/var/lib/slurmd/assoc_usage \
/var/lib/slurmd/qos_usage \
/var/lib/slurmd/fed_mgr_state \
&& chown -R slurm:slurm /var/*/slurm* \
&& /sbin/create-munge-key
# Install ompi
RUN wget https://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.2.tar.gz && \
tar -xzvf openmpi-1.10.2.tar.gz && cd openmpi-1.10.2/ && \
./configure --with-slurm --prefix="/home/$USER/.openmpi" && \
make && make install

COPY slurm.conf /etc/slurm/slurm.conf
COPY slurmdbd.conf /etc/slurm/slurmdbd.conf
ENV PATH "$PATH:/home/$USER/.openmpi/bin"
ENV LD_LIBRARY_PATH "$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/"

COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
ENV TMPDIR /tmp

RUN yum install -y net-tools openssh-server openssh-clients singularity && \
yum install -y epel-release centos-release-scl lsof sudo httpd24-mod_ssl httpd24-mod_ldap
RUN yum install -y automake && git clone https://github.com/hpc/spindle && \
cd spindle && \
./configure --with-munge-dir=/etc/munge --enable-sec-munge --with-slurm-dir=/etc/slurm --with-testrm=slurm && \
make && make install

RUN groupadd spindle && \
useradd --create-home --gid spindle spindle && \
Expand Down
3 changes: 0 additions & 3 deletions docker/Dockerfile.node

This file was deleted.

0 comments on commit fd3d86c

Please sign in to comment.