Permalink
Newer
100644
113 lines (86 sloc)
4.03 KB
9
RUN rpm --import http://repos.azulsystems.com/RPM-GPG-KEY-azulsystems
10
RUN curl -o /etc/yum.repos.d/zulu.repo http://repos.azulsystems.com/rhel/zulu.repo
11
RUN yum -y update
12
RUN yum -y install \
13
zulu-8 \
14
cron \
15
supervisor \
16
libcurl \
17
&& yum clean -y all
18
19
RUN rm /etc/shibboleth/sp-signing-key.pem /etc/shibboleth/sp-signing-cert.pem /etc/shibboleth/sp-encrypt-key.pem /etc/shibboleth/sp-encrypt-cert.pem\
20
&& cd /etc/httpd/conf.d/ \
21
&& rm -f autoindex.conf ssl.conf userdir.conf welcome.conf
22
23
COPY container_files/supervisor/supervisord.conf /etc/supervisor/supervisord.conf
24
COPY container_files/httpd/conf/* /etc/httpd/conf.d/
25
COPY container_files/shibboleth/* /etc/shibboleth/
26
COPY container_files/usr-local-bin/* /usr/local/bin/
27
COPY container_files/opt-tier/* /opt/tier/
28
29
RUN chmod 755 /opt/tier/setenv.sh \
35
&& chmod 755 /usr/local/bin/startup.sh \
36
&& chmod 755 /usr/local/bin/healthcheck.sh
41
&& sed -i 's/LogFormat "/LogFormat "httpd;access_log;%{ENV}e;%{USERTOKEN}e;/g' /etc/httpd/conf/httpd.conf \
42
&& echo -e "\nErrorLogFormat \"httpd;error_log;%{ENV}e;%{USERTOKEN}e;[%{u}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% ,\ referer\ %{Referer}i\"" >> /etc/httpd/conf/httpd.conf \
43
&& sed -i 's/CustomLog "logs\/access_log"/CustomLog "\/tmp\/loghttpd"/g' /etc/httpd/conf/httpd.conf \
44
&& sed -i 's/ErrorLog "logs\/error_log"/ErrorLog "\/tmp\/loghttpd"/g' /etc/httpd/conf/httpd.conf \
45
&& echo -e "\nPassEnv ENV" >> /etc/httpd/conf/httpd.conf \
46
&& echo -e "\nPassEnv USERTOKEN" >> /etc/httpd/conf/httpd.conf
47
62
63
VOLUME ${MP_DIR}/var
64
65
# Repository parameters
66
67
ENV REPO_DATABASE_TYPE mariadb
68
ENV REPO_JDBC_URL default
69
ENV REPO_HOST midpoint_data
70
ENV REPO_PORT default
71
ENV REPO_DATABASE registry
72
ENV REPO_USER registry_user
73
ENV REPO_PASSWORD_FILE /run/secrets/mp_database_password.txt
82
# Authentication/web
83
84
ENV AUTHENTICATION internal
85
ENV SSO_HEADER uid
86
ENV AJP_ENABLED true
87
ENV AJP_PORT 9090
99
# TIER Beacon Opt-out
100
# Completely uncomment the following ENV line to prevent the containers from sending analytics information to Internet2.
101
# With the default/release configuration, it will only send product (Shibb/Grouper/COmanage/midPoint) and version (4.0, etc)
102
# once daily between midnight and 4am. There is no configuration or private information collected or sent.
103
# This data helps with the scaling and funding of TIER. Please do not disable it if you find the TIER tools useful.
104
# To keep it commented, keep multiple comments on the following line (to prevent other scripts from processing it).
105
##### ENV TIER_BEACON_OPT_OUT true
111
HEALTHCHECK --interval=1m --timeout=30s --start-period=2m CMD /usr/local/bin/healthcheck.sh
112