-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (36 loc) · 1.6 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
FROM eclipse-temurin:17-alpine
# Configuration variables.
ENV SOFT confluence
#ENV SOFTSUB core
ENV OPENJDKV 17
ENV CONF_HOME /var/atlassian/${SOFT}
ENV CONF_INSTALL /opt/atlassian/${SOFT}
ENV CONF_VERSION 9.0.3
ENV JAVA_CACERTS $JAVA_HOME/jre/lib/security/cacerts
ENV CERTIFICATE $CONF_HOME/certificate
ENV SOFT_HOME ${CONF_HOME}
ENV SOFT_INSTALL ${CONF_INSTALL}
ENV SOFT_VERSION ${CONF_VERSION}
# download option
RUN apk add --no-cache curl bash && \
curl -s https://raw.githubusercontent.com/babim/docker-tag-options/master/z%20SCRIPT%20AUTO/option.sh -o /option.sh && \
chmod 755 /option.sh
# copyright and timezone
RUN curl -s https://raw.githubusercontent.com/babim/docker-tag-options/master/z%20SCRIPT%20AUTO/copyright.sh | bash
# install
RUN curl -s https://raw.githubusercontent.com/babim/docker-tag-options/master/z%20Atlassian/${SOFT}_install.sh | bash
# Use the default unprivileged account. This could be considered bad practice
# on systems where multiple processes end up being executed by 'daemon' but
# here we only ever run one process anyway.
USER daemon:daemon
# Expose default HTTP connector port.
EXPOSE 8090 8091 8443
# Set volume mount points for installation and home directory. Changes to the
# home directory needs to be persisted as well as parts of the installation
# directory due to eg. logs.
VOLUME ["${SOFT_HOME}", "${SOFT_INSTALL}/logs"]
# Set the default working directory as the installation directory.
WORKDIR ${SOFT_HOME}
ENTRYPOINT ["/docker-entrypoint.sh"]
# Run Atlassian as a foreground process by default.
CMD ["/opt/atlassian/confluence/bin/start-confluence.sh", "-fg"]