Skip to content

Commit

Permalink
fix: updated SLES 15 SLURM docker image to work with SLURM 23.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmunday committed Nov 23, 2023
1 parent 4f29429 commit b87c84d
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions tests/integration/docker-slurm/Dockerfile.sl15
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
FROM opensuse/leap:15.4
FROM opensuse/leap:15.5

LABEL org.opencontainers.image.source="https://github.com/neilmunday/slurm-mail" \
org.opencontainers.image.description="A OpenSuSE 15 Slurm container intended for testing Slurm-Mail" \
org.opencontainers.image.title="opensuse8-slurm" \
maintainer="Neil Munday"

ARG SLURM_VER=23.11.0
ARG MARIADB_VER=11.3

RUN zypper install -y \
RUN zypper update -y && \
rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB && \
zypper addrepo --gpgcheck --refresh https://yum.mariadb.org/${MARIADB_VER}/sles/15/x86_64 mariadb && \
zypper --gpg-auto-import-keys refresh && \
zypper install -y \
gcc \
MariaDB-devel \
MariaDB-client \
MariaDB-server \
mailx \
libmariadb-devel \
mariadb \
mariadb-client \
munge-devel \
pam-devel \
perl \
Expand All @@ -33,7 +38,7 @@ RUN zypper install -y \
/usr/src/packages/RPMS/x86_64/slurm-slurmdbd-${SLURM_VER}*.x86_64.rpm && \
zypper remove -y \
gcc \
libmariadb-devel \
MariaDB-devel \
make \
munge-devel \
pam-devel \
Expand All @@ -58,9 +63,11 @@ RUN MAJOR_VER=`echo ${SLURM_VER} | egrep -o "^[0-9]+"` && \
mv /etc/slurm/slurm.${MAJOR_VER}.conf /etc/slurm/slurm.conf && \
rm -f /etc/slurm/slurm.*.conf && \
chmod 600 /etc/slurm/slurm*.conf && \
/usr/bin/mysql_install_db --user=mysql && \
/usr/bin/mariadb-install-db --user=mysql && \
ln -s /tini /usr/bin/tini && \
ln -s /var/log/supervisord /var/log/supervisor
ln -s /var/log/supervisord /var/log/supervisor && \
ln -s /usr/bin/mariadb /usr/bin/mysql && \
ln -s /usr/bin/mariadbd-safe /usr/bin/mysqld_safe

ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/sbin/entrypoint.sh"]
CMD ["tail -f /dev/null"]

0 comments on commit b87c84d

Please sign in to comment.