WIP: slurm

This commit is contained in:
2021-04-24 00:13:57 +02:00
parent af71f7e983
commit 53502213bc
8 changed files with 935 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
chown munge:munge /etc/munge/munge.key
chmod 600 /etc/munge/munge.key
exec "$@"

View File

@@ -0,0 +1,26 @@
FROM docker.io/library/centos:7 as base
RUN yum install -y epel-release && \
yum install -y slurm && \
yum clean all
RUN yum install -y less iproute bind-utils nmap-ncat net-tools && \
yum clean all
COPY entrypoint.sh /usr/local/sbin/entrypoint.sh
RUN chown root:root /usr/local/sbin/entrypoint.sh && chmod 755 /usr/local/sbin/entrypoint.sh
ENTRYPOINT [ "/usr/local/sbin/entrypoint.sh" ]
FROM base as slurmd
RUN yum install -y slurm-slurmd && \
yum clean all
FROM base as slurmctld
RUN yum install -y slurm-slurmctld && \
yum clean all
# CMD bash -c 'cat <({ condor_master -f & tail --retry --pid $! -f /var/log/condor/MasterLog & })'

View File

@@ -0,0 +1,19 @@
FROM docker.io/library/centos:7 as base
RUN yum install -y epel-release && \
yum install -y slurm slurm-slurmctld && \
yum clean all
RUN yum install -y less iproute bind-utils nmap-ncat net-tools && \
yum clean all
RUN yum install -y slurm-slurmctld && \
yum clean all
COPY entrypoint.sh /usr/local/sbin/entrypoint.sh
RUN chown root:root /usr/local/sbin/entrypoint.sh && chmod 755 /usr/local/sbin/entrypoint.sh
ENTRYPOINT [ "/usr/local/sbin/entrypoint.sh" ]
# CMD bash -c 'cat <({ condor_master -f & tail --retry --pid $! -f /var/log/condor/MasterLog & })'

View File

@@ -0,0 +1,16 @@
FROM docker.io/library/centos:7
RUN yum install -y epel-release && \
yum install -y slurm slurm-slurmd && \
yum clean all
RUN yum install -y less iproute bind-utils nmap-ncat net-tools && \
yum clean all
COPY entrypoint.sh /usr/local/sbin/entrypoint.sh
RUN chown root:root /usr/local/sbin/entrypoint.sh && chmod 755 /usr/local/sbin/entrypoint.sh
ENTRYPOINT [ "/usr/local/sbin/entrypoint.sh" ]
# CMD bash -c 'cat <({ condor_master -f & tail --retry --pid $! -f /var/log/condor/MasterLog & })'