-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (38 loc) · 1.48 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM rockylinux/rockylinux:8
LABEL maintainer 'Jeff Ohrstrom <johrstrom@osc.edu>'
ARG WEBMO_VERSION=17.0.012e
ARG WEBMO_LICENSE
RUN dnf update -y ca-certificates
RUN dnf update -y && dnf clean all && rm -rf /var/cache/dnf/*
RUN dnf install -y \
dnf-utils \
epel-release \
&& dnf config-manager --set-enabled powertools \
&& dnf clean all && rm -rf /var/cache/dnf/*
RUN dnf install -y \
httpd gcc perl expect perl-App-cpanminus \
procps-ng \
&& dnf clean all && rm -rf /var/cache/dnf/*
# Add SLURM
RUN dnf config-manager --add-repo https://repo.hpc.osc.edu/internal/slurm/24.05/slurm.repo
RUN dnf config-manager --add-repo https://repo.hpc.osc.edu/internal/osc_yum_repo/osc_repo.repo
RUN dnf -y install slurm slurm-spank-lua lua lua-posix lua-socket \
&& dnf clean all && rm -rf /var/cache/dnf/*
RUN groupadd -r slurm
RUN useradd -r -g slurm -d /var/spool/slurm -s /sbin/nologin slurm
RUN cpanm CGI
COPY httpd.conf /etc/httpd/conf/httpd.conf
RUN /bin/rm -f /etc/httpd.d/conf.d/*
COPY webmo.conf /etc/httpd/conf.d
RUN groupadd -g 3608 PZS0605
RUN groupadd -g 3427 GaussC
RUN useradd -g PZS0605 -u 42113 -m webmo
RUN usermod -aG PZS0605 webmo
RUN usermod -aG GaussC webmo
RUN mkdir -p /var/www/html && echo "ok" > /var/www/html/status
RUN chown -R webmo: /run/httpd /var/log/httpd
RUN mkdir -p /home/webmo/.slurm \
&& echo "account = PZS0605" > /home/webmo/.slurm/defaults \
&& chown -R webmo: /home/webmo/.slurm
USER webmo
ENTRYPOINT httpd -DFOREGROUND