-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (25 loc) · 1.06 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
FROM rockylinux:9
### Adding Shibboleth official repos
COPY ./httpd-shibd/config/shibboleth.repo /etc/yum.repos.d/shibboleth.repo
### Installing httpd, shibboleth & supervisor
RUN dnf install -y epel-release &&\
dnf update -y &&\
dnf install -y shibboleth.x86_64 httpd supervisor mod_ssl &&\
dnf clean all
RUN ls -lah /var/run
### Creating a non-root user to manage supervisorctl & setting rights to launch the daemon
RUN adduser supervisor &&\
usermod -a -G apache supervisor &&\
usermod -a -G shibd supervisor &&\
mkdir -p /etc/supervisor &&\
chown -v root:supervisor "/var/log" &&\
chown -Rv supervisor:supervisor "/var/log/supervisor" &&\
chown -Rv supervisor:supervisor "/var/log/httpd" &&\
chown -Rv supervisor:supervisor "/var/log/shibboleth" &&\
chown -Rv supervisor:supervisor "/etc/supervisor" &&\
chown -Rv supervisor:supervisor "/usr/bin/supervisord" &&\
chown -Rv supervisor:supervisor "/var/run/supervisor"
USER supervisor
WORKDIR /var/www/redcap
### Launching supervisord
ENTRYPOINT ["/usr/bin/supervisord"]