Skip to content

Commit

Permalink
Set permissions for /etc/slurm in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Jun 22, 2023
1 parent 78dc224 commit fdba88f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ RUN set -x \
&& ./configure --enable-debug --prefix=/usr --sysconfdir=/etc/slurm \
--with-mysql_config=/usr/bin --libdir=/usr/lib64 \
&& make install \
&& install -D -m644 etc/cgroup.conf.example /etc/slurm/cgroup.conf.example \
&& install -D -m644 etc/slurm.conf.example /etc/slurm/slurm.conf.example \
&& install -D -m644 etc/slurmdbd.conf.example /etc/slurm/slurmdbd.conf.example \
# && install -D -m644 etc/cgroup.conf.example /etc/slurm/cgroup.conf.example \
# && install -D -m644 etc/slurm.conf.example /etc/slurm/slurm.conf.example \
# && install -D -m644 etc/slurmdbd.conf.example /etc/slurm/slurmdbd.conf.example \
&& install -D -m644 contribs/slurm_completion_help/slurm_completion.sh /etc/profile.d/slurm_completion.sh \
&& popd \
&& rm -rf slurm \
Expand All @@ -73,6 +73,7 @@ RUN set -x \
/var/lib/slurmd \
/var/log/slurm \
/data \
/etc/slurm \
&& touch /var/lib/slurmd/node_state \
/var/lib/slurmd/front_end_state \
/var/lib/slurmd/job_state \
Expand All @@ -83,6 +84,7 @@ RUN set -x \
/var/lib/slurmd/qos_usage \
/var/lib/slurmd/fed_mgr_state \
&& chown -R slurm:slurm /var/*/slurm* \
&& chown -R slurm:slurm /etc/slurm \
&& /sbin/create-munge-key

#COPY slurm.conf /etc/slurm/slurm.conf
Expand Down

0 comments on commit fdba88f

Please sign in to comment.