Skip to content

Commit

Permalink
Add ldap client
Browse files Browse the repository at this point in the history
  • Loading branch information
lwj5 committed Sep 7, 2023
1 parent dd2df5b commit 25058fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
# Build the project first with a node container
FROM rockylinux:9.2

# Below install items and those requiring EPEL
RUN dnf install -y \
openldap-clients \
sssd-ldap \
authselect \
epel-release \
&& dnf install -y \
slurm-slurmctld \
supervisor \
&& dnf clean all

# Create user
ARG UID=1103
RUN groupadd -g ${UID} -r slurm \
&& useradd -u ${UID} -r -g slurm -M slurm \
&& chown -R slurm:slurm /var/log/supervisor \
&& chown -R slurm:slurm /var/log/slurm \
&& chown -R slurm:slurm /var/run/slurm \
&& chown -R slurm:slurm /var/lib/munge \
&& chown -R slurm:slurm /run/munge \
&& chown -R slurm:slurm /etc/munge

RUN authselect select sssd --force

COPY container /

USER ${UID}

CMD [ "supervisord" ]
8 changes: 8 additions & 0 deletions container/etc/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ logfile=/var/log/supervisor/supervisord.log

[program:munged]
command=munged --foreground
user=munge
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

[program:sssd]
command=sssd -i
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
Expand Down

0 comments on commit 25058fe

Please sign in to comment.