docker-scripts/confluence/latest/Dockerfile

60 lines
2.9 KiB
Docker
Raw Normal View History

2019-03-06 19:54:00 +03:00
FROM debian:buster
2018-09-18 13:35:18 +03:00
MAINTAINER Atlassian Confluence Server Team
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
2019-03-06 19:54:00 +03:00
ENV DEBIAN_FRONTEND noninteractive
#editing sources list
RUN rm /etc/apt/sources.list
COPY sources.list /etc/apt/sources.list
COPY locale.gen /etc/locale.gen
#installing utils
# https://confluence.atlassian.com/confkb/update-the-confluence-docker-image-to-use-oracle-jdk-829062521.html
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
2019-03-07 01:14:20 +03:00
RUN apt-get update && apt-get install -y --allow-unauthenticated gnupg2
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu disco main" | tee /etc/apt/sources.list.d/webupd8team-java.list
RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu disco main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
RUN apt-get update && apt-get install -y --allow-unauthenticated htop mc tmux iftop cmatrix iputils-ping cmatrix-xfont lsof lynx ca-certificates gnupg sudo apt-transport-https lsb-release apt-utils oracle-java8-installer oracle-java8-set-default locales console-cyrillic wget curl bash procps openssl perl ttf-dejavu tini util-linux fontconfig
2019-03-06 19:54:00 +03:00
2018-09-18 13:35:18 +03:00
VOLUME ["${CONFLUENCE_HOME}"]
2019-03-06 19:54:00 +03:00
WORKDIR $CONFLUENCE_HOME
2018-09-18 13:35:18 +03:00
# Expose HTTP and Synchrony ports
EXPOSE 8090
EXPOSE 8091
CMD ["/entrypoint.sh", "-fg"]
2019-03-06 19:54:00 +03:00
ENTRYPOINT ["/usr/bin/tini", "--"]
2018-09-18 13:35:18 +03:00
COPY entrypoint.sh /entrypoint.sh
2019-03-06 19:54:00 +03:00
#After install fixes
RUN localedef en_US.UTF-8 -i en_US -f UTF-8
RUN update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
RUN apt update
RUN apt upgrade -y
RUN apt dist-upgrade -y
RUN apt-get clean autoclean
RUN apt-get autoremove -y
RUN rm -rf /var/lib/apt/lists/*
ARG CONFLUENCE_VERSION=6.14.2
2018-09-18 13:35:18 +03:00
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 \
2018-10-05 15:23:26 +03:00
&& sed -i -e 's/port="8090"/port="8090" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CONFLUENCE_INSTALL_DIR}/conf/server.xml