Skip to content
Permalink
Newer
Older
100644 70 lines (48 sloc) 2.04 KB
1
#
2
# Building assumes midpoint-3.9-SNAPSHOT-dist.tar.gz is present in the current directory.
3
#
4
5
FROM tier/shibboleth_sp
6
7
MAINTAINER info@evolveum.com
8
9
RUN yum -y install java-1.8.0-openjdk
10
11
RUN rm /etc/shibboleth/sp-key.pem /etc/shibboleth/sp-cert.pem
12
13
COPY container_files/httpd/conf/* /etc/httpd/conf.d/
14
COPY container_files/shibboleth/* /etc/shibboleth/
15
COPY container_files/usr-local-bin/* /usr/local/bin/
16
17
RUN cp /dev/null /etc/httpd/conf.d/ssl.conf \
18
&& sed -i 's/LogFormat "/LogFormat "httpd;access_log;%{ENV}e;%{USERTOKEN}e;/g' /etc/httpd/conf/httpd.conf \
19
&& 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 \
20
&& sed -i 's/CustomLog "logs\/access_log"/CustomLog "\/tmp\/logpipe"/g' /etc/httpd/conf/httpd.conf \
21
&& sed -i 's/ErrorLog "logs\/error_log"/ErrorLog "\/tmp\/logpipe"/g' /etc/httpd/conf/httpd.conf \
22
&& echo -e "\nPassEnv ENV" >> /etc/httpd/conf/httpd.conf \
23
&& echo -e "\nPassEnv USERTOKEN" >> /etc/httpd/conf/httpd.conf
24
25
# Build arguments
26
27
ARG MP_VERSION=3.9-SNAPSHOT
28
ARG MP_DIST_FILE=midpoint-${MP_VERSION}-dist.tar.gz
29
30
ENV MP_DIR /opt/midpoint
31
32
RUN mkdir -p ${MP_DIR}/var
34
COPY ${MP_DIST_FILE} ${MP_DIR}
35
COPY container_files/mp-dir/ ${MP_DIR}/
36
37
RUN echo 'Extracting midPoint archive...' \
38
&& tar xzf ${MP_DIR}/midpoint-${MP_VERSION}-dist.tar.gz -C ${MP_DIR} --strip-components=1
39
40
VOLUME ${MP_DIR}/var
41
42
# Repository parameters
43
44
ENV REPO_HOST midpoint-data
45
ENV REPO_PORT 3306
46
ENV REPO_USER root
47
ENV REPO_DATABASE midpoint
48
ENV REPO_JDBC_URL default
49
ENV REPO_PASSWORD_FILE /run/secrets/m_database_password.txt
50
ENV REPO_DATABASE_TYPE mariadb
51
52
# Logging parameters
53
54
ENV ENV demo
55
ENV USERTOKEN $MP_VERSION
56
57
# Authentication/web
58
59
ENV AUTHENTICATION internal
60
ENV SSO_HEADER uid
61
ENV AJP_ENABLED true
62
ENV AJP_PORT 9090
63
ENV LOGOUT_URL https://localhost:8443/Shibboleth.sso/Logout
64
65
# Other parameters
66
67
ENV KEYSTORE_PASSWORD_FILE /run/secrets/m_keystore_password.txt
68
ENV MEM 2048m
69
70
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
You can’t perform that action at this time.