mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
40 lines
1.8 KiB
Docker
40 lines
1.8 KiB
Docker
FROM adoptopenjdk/openjdk8:x86_64-alpine-jdk8u192-b12
|
|
MAINTAINER Atlassian Confluence
|
|
|
|
ENV RUN_USER daemon
|
|
ENV RUN_GROUP daemon
|
|
|
|
# https://confluence.atlassian.com/doc/confluence-home-and-other-important-directories-590259707.html
|
|
ENV CONFLUENCE_HOME /var/atlassian/application-data/confluence
|
|
ENV CONFLUENCE_INSTALL_DIR /opt/atlassian/confluence
|
|
|
|
VOLUME ["${CONFLUENCE_HOME}"]
|
|
|
|
# Expose HTTP and Synchrony ports
|
|
EXPOSE 8090
|
|
EXPOSE 8091
|
|
|
|
WORKDIR $CONFLUENCE_HOME
|
|
|
|
CMD ["/entrypoint.sh", "-fg"]
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
|
|
RUN apk update -qq \
|
|
&& update-ca-certificates \
|
|
&& apk add ca-certificates wget curl openssh bash procps openssl perl ttf-dejavu tini \
|
|
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ /tmp/* /var/tmp/*
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
ARG CONFLUENCE_VERSION=6.3.3
|
|
ARG DOWNLOAD_URL=http://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-${CONFLUENCE_VERSION}.tar.gz
|
|
|
|
COPY . /tmp
|
|
|
|
RUN mkdir -p ${CONFLUENCE_INSTALL_DIR} \
|
|
&& curl -L --silent ${DOWNLOAD_URL} | tar -xz --strip-components=1 -C "$CONFLUENCE_INSTALL_DIR" \
|
|
&& chown -R ${RUN_USER}:${RUN_GROUP} ${CONFLUENCE_INSTALL_DIR}/ \
|
|
&& sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dconfluence.home=\${CONFLUENCE_HOME}/g' ${CONFLUENCE_INSTALL_DIR}/bin/setenv.sh \
|
|
&& sed -i -e 's/port="8090"/port="8090" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CONFLUENCE_INSTALL_DIR}/conf/server.xml \
|
|
&& sed -i -e 's/Context path=""/Context path="${catalinaContextPath}"/' ${CONFLUENCE_INSTALL_DIR}/conf/server.xml
|