-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters