Save one of the last spots in our Shell + Git + GitLab introdoctury course on Friday and Monday next week. 👉 Register here.

Commit 15d4cf4c authored by Pape, David (FWCC) - 139658's avatar Pape, David (FWCC) - 139658
Browse files

Adding user janedoe. Making `su --login janedoe` the image's default

command.
parent aac6e67f
Pipeline #20504 passed with stage
in 10 minutes and 47 seconds
......@@ -20,15 +20,14 @@ RUN dnf install -y slurm*.rpm
WORKDIR /
RUN rm -rf slurm*.rpm /root/rpmbuild
RUN groupadd slurm && \
useradd -c "Slurm Workload Manager" -s /sbin/nologin -g slurm slurm && \
mkdir -p /var/spool/slurm{,ctl}d && chown slurm:slurm /var/spool/slurm{,ctl}d && \
mkdir -p /var/run/slurm && chown slurm:slurm /var/run/slurm && \
mkdir -p /var/log/slurm && chown slurm:slurm /var/log/slurm
#imkdir -p /var/log/slurm{,ctl}d.log && chown slurm:slurm /var/log/slurm{,ctl}d.log
RUN useradd --system -c "Slurm Workload Manager" -s /sbin/nologin slurm && \
mkdir -p /var/spool/slurm{,ctl}d && chown slurm /var/spool/slurm{,ctl}d && \
mkdir -p /var/{run,log}/slurm && chown slurm /var/{run,log}/slurm
RUN useradd -c "Default user" -G users -m janedoe
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["bash"]
CMD ["su", "--login", "janedoe"]
......@@ -7,11 +7,11 @@ like `srun`, `sbatch`, etc. This container can be used for testing your HPC appl
The container is set up to automatically detect your hardware on start-up. It will provide four
compute nodes that share the specification of the platform the container is running on (number of
cores, hyperthreading, ...). The *cluster* is called `sid` (Slurm in Docker) and it has one
partition, `sidp`, containing the nodes `sidc[1-4]`.
cores, hyperthreading, ...). The _cluster_ is called `sid` (Slurm in Docker) and it has one
partition, `sidp`, containing the compute nodes `sidc[1-4]`.
When you start the container, the services are already up and running. You will be greeted by a Bash
shell running as `root`.
When you start the container, the services are already up and running. The command run as default is
`su --login janedoe`. _janedoe_ is in the _janedoe_ and _users_ groups.
## Running the container
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment