forked from iay/shibboleth-idp-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
67 lines (54 loc) · 1.31 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# Shibboleth Identity Provider
#
# Builds a partial image for running the Shibboleth Identity Provider.
#
# This includes Java, Jetty and the Jetty configuration. At present,
# the IdP itself and its configuration are mounted into the container.
#
#
# The base Java image to use is determined by a build argument.
#
ARG JAVA_VERSION
FROM ${JAVA_VERSION}
MAINTAINER Ian Young <ian@iay.org.uk>
#
# Jetty itself lives in JETTY_HOME.
#
ENV JETTY_HOME=/opt/jetty
#
# The Jetty base lives in JETTY_BASE, outside the Shibboleth IdP.
#
ENV JETTY_BASE=/opt/jetty-base
#
# A subdirectory of JETTY_BASE is used for Jetty's logs, and is
# exposed as a volume.
#
ENV JETTY_LOGS=${JETTY_BASE}/logs
VOLUME ["${JETTY_LOGS}"]
ENV IDP_HOME=/opt/shibboleth-idp
#
# Add the Jetty base.
#
ARG JETTY_BASE_VERSION
ADD jetty-base-${JETTY_BASE_VERSION} ${JETTY_BASE}
#
# Add the Jetty distribution.
#
ADD jetty-dist/dist ${JETTY_HOME}
EXPOSE 443 8443
VOLUME ["${IDP_HOME}"]
WORKDIR ${JETTY_BASE}
CMD ["java",\
"-Djdk.tls.ephemeralDHKeySize=2048", \
"-Didp.home=/opt/shibboleth-idp", \
"-Djetty.base=/opt/jetty-base",\
"-Djetty.logs=/opt/jetty-base/logs",\
"-jar", "/opt/jetty/start.jar"]
#
# Add Jetty configuration overlay from a tar archive.
#
ADD overlay/jetty-base-${JETTY_BASE_VERSION}.tar ${JETTY_BASE}
#
# End.
#