mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-27 07:05:41 +03:00
49 lines
1.8 KiB
Docker
49 lines
1.8 KiB
Docker
FROM epicmorg/prod:jdk8
|
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
##################################################################
|
|
# ARGuments
|
|
##################################################################
|
|
ARG FECRU_VERSION=4.8.5
|
|
ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/fisheye/downloads/fisheye-${FECRU_VERSION}.zip
|
|
|
|
##################################################################
|
|
# Setup
|
|
##################################################################
|
|
ENV RUN_USER daemon
|
|
ENV RUN_GROUP daemon
|
|
|
|
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
|
|
ENV FISHEYE_HOME /opt/atlassian/fecru
|
|
ENV FISHEYE_INST /var/atlassian/application-data/fecru
|
|
|
|
VOLUME ["${FISHEYE_INST}"]
|
|
WORKDIR $FISHEYE_INST
|
|
|
|
# Expose HTTP port
|
|
EXPOSE 8060
|
|
|
|
##################################################################
|
|
# Installing
|
|
##################################################################
|
|
RUN mkdir -p ${FISHEYE_HOME} \
|
|
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${FECRU_VERSION}.zip \
|
|
&& unzip -q /tmp/fisheye-${FECRU_VERSION}.zip -d /tmp \
|
|
&& mv /tmp/fecru-${FECRU_VERSION}/* ${FISHEYE_HOME} \
|
|
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
|
|
&& chmod +x /usr/bin/p4 \
|
|
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
|
|
&& apt-get clean -y \
|
|
&& apt-get autoclean -y \
|
|
&& rm -rfv /tmp/fisheye-${FECRU_VERSION}.zip \
|
|
&& rm -rfv /tmp/fecru-${FECRU_VERSION} \
|
|
&& rm -rfv /var/lib/apt/lists/* \
|
|
&& rm -rfv /var/cache/apt/archives/*.deb
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
COPY . /tmp
|
|
|
|
CMD ["/entrypoint.sh", "run"]
|
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|