WIP: slurm
This commit is contained in:
8
roles/slurm/files/entrypoint.sh
Normal file
8
roles/slurm/files/entrypoint.sh
Normal 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 "$@"
|
26
roles/slurm/files/slurm.Dockerfile
Normal file
26
roles/slurm/files/slurm.Dockerfile
Normal 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 & })'
|
19
roles/slurm/files/slurmctld.Dockerfile
Normal file
19
roles/slurm/files/slurmctld.Dockerfile
Normal 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 & })'
|
16
roles/slurm/files/slurmd.Dockerfile
Normal file
16
roles/slurm/files/slurmd.Dockerfile
Normal 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 & })'
|
Reference in New Issue
Block a user