mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2025-01-13 15:17:56 +03:00
cleanup
This commit is contained in:
parent
dc637b84d2
commit
bc9140cbf4
@ -16,8 +16,8 @@ ENV RUN_USER daemon
|
|||||||
ENV RUN_GROUP daemon
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
|
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
|
||||||
ENV FISHEYE_HOME /opt/atlassian/fecru
|
ENV FISHEYE_HOME /opt/atlassian/crucible
|
||||||
ENV FISHEYE_INST /var/atlassian/application-data/fecru
|
ENV FISHEYE_INST /var/atlassian/application-data/crucible
|
||||||
|
|
||||||
VOLUME ["${FISHEYE_INST}"]
|
VOLUME ["${FISHEYE_INST}"]
|
||||||
WORKDIR $FISHEYE_INST
|
WORKDIR $FISHEYE_INST
|
||||||
@ -29,16 +29,16 @@ EXPOSE 8060
|
|||||||
# Installing
|
# Installing
|
||||||
##################################################################
|
##################################################################
|
||||||
RUN mkdir -p ${FISHEYE_HOME} \
|
RUN mkdir -p ${FISHEYE_HOME} \
|
||||||
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
|
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/crucible-${RELEASE}.zip \
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
&& unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
|
&& mv /tmp/crucible-${RELEASE}/* ${FISHEYE_HOME} \
|
||||||
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
|
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
|
||||||
&& chmod +x /usr/bin/p4 \
|
&& chmod +x /usr/bin/p4 \
|
||||||
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
|
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
|
||||||
&& apt-get clean -y \
|
&& apt-get clean -y \
|
||||||
&& apt-get autoclean -y \
|
&& apt-get autoclean -y \
|
||||||
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
|
&& rm -rfv /tmp/crucible-${RELEASE}.zip \
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
&& rm -rfv /tmp/crucible-${RELEASE} \
|
||||||
&& rm -rfv /var/lib/apt/lists/* \
|
&& rm -rfv /var/lib/apt/lists/* \
|
||||||
&& rm -rfv /var/cache/apt/archives/*.deb
|
&& rm -rfv /var/cache/apt/archives/*.deb
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
version: '3.9'
|
version: '3.9'
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
image: "epicmorg/crucible:${RELEASE}"
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
0
bin/dotnet/data/fisheye-crucible/templates/1/entrypoint.sh → bin/dotnet/data/crucible/templates/1/entrypoint.sh
Executable file → Normal file
0
bin/dotnet/data/fisheye-crucible/templates/1/entrypoint.sh → bin/dotnet/data/crucible/templates/1/entrypoint.sh
Executable file → Normal file
@ -16,8 +16,8 @@ ENV RUN_USER daemon
|
|||||||
ENV RUN_GROUP daemon
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
|
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
|
||||||
ENV FISHEYE_HOME /opt/atlassian/fecru
|
ENV FISHEYE_HOME /opt/atlassian/fisheye
|
||||||
ENV FISHEYE_INST /var/atlassian/application-data/fecru
|
ENV FISHEYE_INST /var/atlassian/application-data/fisheye
|
||||||
|
|
||||||
VOLUME ["${FISHEYE_INST}"]
|
VOLUME ["${FISHEYE_INST}"]
|
||||||
WORKDIR $FISHEYE_INST
|
WORKDIR $FISHEYE_INST
|
||||||
@ -31,14 +31,14 @@ EXPOSE 8060
|
|||||||
RUN mkdir -p ${FISHEYE_HOME} \
|
RUN mkdir -p ${FISHEYE_HOME} \
|
||||||
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
|
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
|
&& mv /tmp/fisheye-${RELEASE}/* ${FISHEYE_HOME} \
|
||||||
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
|
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
|
||||||
&& chmod +x /usr/bin/p4 \
|
&& chmod +x /usr/bin/p4 \
|
||||||
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
|
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
|
||||||
&& apt-get clean -y \
|
&& apt-get clean -y \
|
||||||
&& apt-get autoclean -y \
|
&& apt-get autoclean -y \
|
||||||
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
|
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
&& rm -rfv /tmp/fisheye-${RELEASE} \
|
||||||
&& rm -rfv /var/lib/apt/lists/* \
|
&& rm -rfv /var/lib/apt/lists/* \
|
||||||
&& rm -rfv /var/cache/apt/archives/*.deb
|
&& rm -rfv /var/cache/apt/archives/*.deb
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
version: '3.9'
|
version: '3.9'
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
image: "epicmorg/fisheye:${RELEASE}"
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.0.1a
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.0.1a-build-br78-94.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.1.3
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.1.3-build-1.1-119c.zip
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.2.5
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.2.5-build-201.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.3.3
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.3.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.3.4
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.4.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.3.5
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.5.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.3.6
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.6.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.3.7
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.7.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.3.8
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.8.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.4.1
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.4.1.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.4.2
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.4.2.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.4.3
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.4.3.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.4
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.4.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.5.1
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.5.1.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.5.2
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.5.2.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.5.3
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.5.3.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.5.4
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.5.4.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.5
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.5.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.6.0
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.0.zip
|
|
@ -1,49 +0,0 @@
|
|||||||
FROM epicmorg/prod:jdk7
|
|
||||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#configured by dockerfile / .ENV
|
|
||||||
ARG RELEASE
|
|
||||||
ARG DOWNLOAD_URL
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# 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-${RELEASE}.zip \
|
|
||||||
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
|
|
||||||
&& mv /tmp/fecru-${RELEASE}/* ${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-${RELEASE}.zip \
|
|
||||||
&& rm -rfv /tmp/fecru-${RELEASE} \
|
|
||||||
&& 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", "--"]
|
|
@ -1,5 +0,0 @@
|
|||||||
all: app
|
|
||||||
|
|
||||||
app:
|
|
||||||
docker-compose build --compress
|
|
||||||
docker-compose push
|
|
@ -1,9 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: "epicmorg/fisheye-crucible:${RELEASE}"
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
RELEASE: ${RELEASE}
|
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Set up FISHEYE_OPTS
|
|
||||||
: ${JVM_MINIMUM_MEMORY:=}
|
|
||||||
: ${JVM_MAXIMUM_MEMORY:=}
|
|
||||||
: ${JVM_SUPPORT_RECOMMENDED_ARGS:=}
|
|
||||||
|
|
||||||
: ${FISHEYE_OPTS:=}
|
|
||||||
|
|
||||||
if [ "${JVM_MINIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xms${JVM_MINIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
if [ "${JVM_MAXIMUM_MEMORY}" != "" ]; then
|
|
||||||
FISHEYE_OPTS="${FISHEYE_OPTS} -Xmx${JVM_MAXIMUM_MEMORY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
|
||||||
|
|
||||||
# Start Bamboo as the correct user
|
|
||||||
if [ "${UID}" -eq 0 ]; then
|
|
||||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
|
||||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
|
||||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
|
||||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
|
||||||
chmod -R 700 "${FISHEYE_INST}" &&
|
|
||||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${FISHEYE_INST}"
|
|
||||||
fi
|
|
||||||
# Now drop privileges
|
|
||||||
exec su -s /bin/bash "${RUN_USER}" -c "$FISHEYE_HOME/bin/fisheyectl.sh $@"
|
|
||||||
else
|
|
||||||
exec "$FISHEYE_HOME/bin/fisheyectl.sh" "$@"
|
|
||||||
fi
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
RELEASE=1.6.0Beta1
|
|
||||||
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.0.beta1.zip
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user