diff --git a/CHANGELOG.md b/CHANGELOG.md index e9f8328fe..96b353d51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * `may` * @kasthack was wrote docker-template generator for atlassian products * was regenerated and updated *all* `jira` images with `5`, `6`, `7` and `8` versions. + * was regenerated and updated *all* `fisheye-crucible` images with `2`, `3` and `4` versions. * all actual download links was get from [EpicMorg/atlassian-json](https://github.com/EpicMorg/atlassian-json) repo. * asap will be updated and added all additional `atlassian` images. * `april` diff --git a/bin/dotnet/data/fisheye-crucible/templates/2/Dockerfile b/bin/dotnet/data/fisheye-crucible/templates/2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/bin/dotnet/data/fisheye-crucible/templates/2/Makefile b/bin/dotnet/data/fisheye-crucible/templates/2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/bin/dotnet/data/fisheye-crucible/templates/2/docker-compose.yml b/bin/dotnet/data/fisheye-crucible/templates/2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/bin/dotnet/data/fisheye-crucible/templates/2/entrypoint.sh b/bin/dotnet/data/fisheye-crucible/templates/2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/bin/dotnet/data/fisheye-crucible/templates/3/Dockerfile b/bin/dotnet/data/fisheye-crucible/templates/3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/bin/dotnet/data/fisheye-crucible/templates/3/Makefile b/bin/dotnet/data/fisheye-crucible/templates/3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/bin/dotnet/data/fisheye-crucible/templates/3/docker-compose.yml b/bin/dotnet/data/fisheye-crucible/templates/3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/bin/dotnet/data/fisheye-crucible/templates/3/entrypoint.sh b/bin/dotnet/data/fisheye-crucible/templates/3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/bin/dotnet/data/fisheye-crucible/templates/4/Dockerfile b/bin/dotnet/data/fisheye-crucible/templates/4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/bin/dotnet/data/fisheye-crucible/templates/4/Makefile b/bin/dotnet/data/fisheye-crucible/templates/4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/bin/dotnet/data/fisheye-crucible/templates/4/docker-compose.yml b/bin/dotnet/data/fisheye-crucible/templates/4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/bin/dotnet/data/fisheye-crucible/templates/4/entrypoint.sh b/bin/dotnet/data/fisheye-crucible/templates/4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/bin/dotnet/data/fisheye-crucible/templates/4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.B3/.env b/linux/atlassian/fisheye-crucible/2/2.0.0.B3/.env new file mode 100644 index 000000000..b3e452724 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.B3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.0.B3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.0.B3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.B3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.0.B3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.B3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.B3/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.0.B3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.B3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.B3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.0.B3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.B3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.B3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.0.B3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.B3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/.env b/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/.env new file mode 100644 index 000000000..f5b8f82d5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.0.RC1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.0.RC1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/.env b/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/.env new file mode 100644 index 000000000..127c3ce81 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.0.RC2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.0.RC2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/.env b/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/.env new file mode 100644 index 000000000..8f0acb4ef --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.0.RC3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.0.RC3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0.RC3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0/.env b/linux/atlassian/fisheye-crucible/2/2.0.0/.env new file mode 100644 index 000000000..52eca6c5d --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.1/.env b/linux/atlassian/fisheye-crucible/2/2.0.1/.env new file mode 100644 index 000000000..43d4f4c16 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.2/.env b/linux/atlassian/fisheye-crucible/2/2.0.2/.env new file mode 100644 index 000000000..76a232dbc --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.2/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.3/.env b/linux/atlassian/fisheye-crucible/2/2.0.3/.env new file mode 100644 index 000000000..4d965adc3 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.3/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.4/.env b/linux/atlassian/fisheye-crucible/2/2.0.4/.env new file mode 100644 index 000000000..94bf5ef15 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.4/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.4.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.4/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.4/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.4/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.4/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.5/.env b/linux/atlassian/fisheye-crucible/2/2.0.5/.env new file mode 100644 index 000000000..76f47386e --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.5/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.5.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.5/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.5/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.5/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.5/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.0.6/.env b/linux/atlassian/fisheye-crucible/2/2.0.6/.env new file mode 100644 index 000000000..ad6500ab0 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.6/.env @@ -0,0 +1,3 @@ + +RELEASE=2.0.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.6.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.0.6/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.0.6/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.6/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.0.6/Makefile b/linux/atlassian/fisheye-crucible/2/2.0.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.0.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.0.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.0.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.0.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.0.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/.env b/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/.env new file mode 100644 index 000000000..8a53688ff --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/.env @@ -0,0 +1,3 @@ + +RELEASE=2.1.0.M2cc +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.0.M2cc.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/Makefile b/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0.M2cc/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/.env b/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/.env new file mode 100644 index 000000000..84b9e6629 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.1.0.RC1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.0.RC1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/Makefile b/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0.RC1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0/.env b/linux/atlassian/fisheye-crucible/2/2.1.0/.env new file mode 100644 index 000000000..da9f328ea --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.1.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.1.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.1.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.1.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.1.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.1.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.1.1/.env b/linux/atlassian/fisheye-crucible/2/2.1.1/.env new file mode 100644 index 000000000..b58495636 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.1.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.1.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.1.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.1.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.1.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.1.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.1.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.1.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.1.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.1.2/.env b/linux/atlassian/fisheye-crucible/2/2.1.2/.env new file mode 100644 index 000000000..a2240bd5c --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.1.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.1.2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.1.2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.1.2/Makefile b/linux/atlassian/fisheye-crucible/2/2.1.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.1.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.1.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.1.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.1.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.1.3/.env b/linux/atlassian/fisheye-crucible/2/2.1.3/.env new file mode 100644 index 000000000..5d256fc5b --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.1.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.1.3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.1.3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.1.3/Makefile b/linux/atlassian/fisheye-crucible/2/2.1.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.1.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.1.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.1.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.1.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.1.4/.env b/linux/atlassian/fisheye-crucible/2/2.1.4/.env new file mode 100644 index 000000000..11e3f491c --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.4/.env @@ -0,0 +1,3 @@ + +RELEASE=2.1.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.4.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.1.4/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.1.4/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.4/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.1.4/Makefile b/linux/atlassian/fisheye-crucible/2/2.1.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.1.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.1.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.1.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.1.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.1.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.10.0/.env b/linux/atlassian/fisheye-crucible/2/2.10.0/.env new file mode 100644 index 000000000..390976cc5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.10.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.10.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.10.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.10.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.10.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.10.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.10.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.10.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.10.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.10.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.10.1/.env b/linux/atlassian/fisheye-crucible/2/2.10.1/.env new file mode 100644 index 000000000..57f64a28c --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.10.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.10.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.10.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.10.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.10.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.10.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.10.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.10.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.10.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.10.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.10.2/.env b/linux/atlassian/fisheye-crucible/2/2.10.2/.env new file mode 100644 index 000000000..532796441 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.10.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.10.2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.10.2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.10.2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.10.2/Makefile b/linux/atlassian/fisheye-crucible/2/2.10.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.10.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.10.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.10.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.10.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.10.3/.env b/linux/atlassian/fisheye-crucible/2/2.10.3/.env new file mode 100644 index 000000000..9c77750e7 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.10.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.10.3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.10.3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.10.3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.10.3/Makefile b/linux/atlassian/fisheye-crucible/2/2.10.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.10.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.10.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.10.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.10.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.10.4/.env b/linux/atlassian/fisheye-crucible/2/2.10.4/.env new file mode 100644 index 000000000..1674063d6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.4/.env @@ -0,0 +1,3 @@ + +RELEASE=2.10.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.10.4.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.10.4/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.10.4/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.4/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.10.4/Makefile b/linux/atlassian/fisheye-crucible/2/2.10.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.10.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.10.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.10.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.10.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.10.5/.env b/linux/atlassian/fisheye-crucible/2/2.10.5/.env new file mode 100644 index 000000000..beda9717e --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.5/.env @@ -0,0 +1,3 @@ + +RELEASE=2.10.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.10.5.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.10.5/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.10.5/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.5/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.10.5/Makefile b/linux/atlassian/fisheye-crucible/2/2.10.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.10.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.10.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.10.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.10.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.10.6/.env b/linux/atlassian/fisheye-crucible/2/2.10.6/.env new file mode 100644 index 000000000..2313fc602 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.6/.env @@ -0,0 +1,3 @@ + +RELEASE=2.10.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.10.6.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.10.6/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.10.6/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.6/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.10.6/Makefile b/linux/atlassian/fisheye-crucible/2/2.10.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.10.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.10.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.10.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.10.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.10.7/.env b/linux/atlassian/fisheye-crucible/2/2.10.7/.env new file mode 100644 index 000000000..ec759bcee --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.7/.env @@ -0,0 +1,3 @@ + +RELEASE=2.10.7 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.10.7.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.10.7/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.10.7/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.7/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.10.7/Makefile b/linux/atlassian/fisheye-crucible/2/2.10.7/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.7/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.10.7/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.10.7/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.7/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.10.7/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.10.7/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.7/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.10.8/.env b/linux/atlassian/fisheye-crucible/2/2.10.8/.env new file mode 100644 index 000000000..e15b6d392 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.8/.env @@ -0,0 +1,3 @@ + +RELEASE=2.10.8 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.10.8.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.10.8/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.10.8/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.8/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.10.8/Makefile b/linux/atlassian/fisheye-crucible/2/2.10.8/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.8/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.10.8/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.10.8/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.8/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.10.8/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.10.8/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.10.8/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.2.0/.env b/linux/atlassian/fisheye-crucible/2/2.2.0/.env new file mode 100644 index 000000000..55110048f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.2.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.2.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.2.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.2.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.2.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.2.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.2.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.2.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.2.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.2.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.2.1/.env b/linux/atlassian/fisheye-crucible/2/2.2.1/.env new file mode 100644 index 000000000..1cdb59923 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.2.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.2.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.2.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.2.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.2.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.2.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.2.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.2.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.2.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.2.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.2.3/.env b/linux/atlassian/fisheye-crucible/2/2.2.3/.env new file mode 100644 index 000000000..5706f96dc --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.2.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.2.3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.2.3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.2.3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.2.3/Makefile b/linux/atlassian/fisheye-crucible/2/2.2.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.2.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.2.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.2.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.2.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.2.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.3.0/.env b/linux/atlassian/fisheye-crucible/2/2.3.0/.env new file mode 100644 index 000000000..83ade4f92 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.3.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.3.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.3.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.3.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.3.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.3.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.3.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.3.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.3.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.3.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.3.1/.env b/linux/atlassian/fisheye-crucible/2/2.3.1/.env new file mode 100644 index 000000000..39664602a --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.3.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.3.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.3.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.3.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.3.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.3.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.3.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.3.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.3.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.3.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.3.2/.env b/linux/atlassian/fisheye-crucible/2/2.3.2/.env new file mode 100644 index 000000000..e63628c7f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.3.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.3.2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.3.2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.3.2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.3.2/Makefile b/linux/atlassian/fisheye-crucible/2/2.3.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.3.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.3.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.3.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.3.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.3.3/.env b/linux/atlassian/fisheye-crucible/2/2.3.3/.env new file mode 100644 index 000000000..76199a669 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.3.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.3.3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.3.3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.3.3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.3.3/Makefile b/linux/atlassian/fisheye-crucible/2/2.3.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.3.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.3.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.3.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.3.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.3.4/.env b/linux/atlassian/fisheye-crucible/2/2.3.4/.env new file mode 100644 index 000000000..014d19107 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.4/.env @@ -0,0 +1,3 @@ + +RELEASE=2.3.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.3.4.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.3.4/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.3.4/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.4/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.3.4/Makefile b/linux/atlassian/fisheye-crucible/2/2.3.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.3.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.3.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.3.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.3.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.3.5/.env b/linux/atlassian/fisheye-crucible/2/2.3.5/.env new file mode 100644 index 000000000..eb650ebd3 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.5/.env @@ -0,0 +1,3 @@ + +RELEASE=2.3.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.3.5.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.3.5/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.3.5/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.5/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.3.5/Makefile b/linux/atlassian/fisheye-crucible/2/2.3.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.3.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.3.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.3.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.3.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.3.6/.env b/linux/atlassian/fisheye-crucible/2/2.3.6/.env new file mode 100644 index 000000000..a983392bb --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.6/.env @@ -0,0 +1,3 @@ + +RELEASE=2.3.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.3.6.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.3.6/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.3.6/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.6/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.3.6/Makefile b/linux/atlassian/fisheye-crucible/2/2.3.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.3.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.3.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.3.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.3.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.3.7/.env b/linux/atlassian/fisheye-crucible/2/2.3.7/.env new file mode 100644 index 000000000..bf39d8cdf --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.7/.env @@ -0,0 +1,3 @@ + +RELEASE=2.3.7 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.3.7.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.3.7/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.3.7/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.7/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.3.7/Makefile b/linux/atlassian/fisheye-crucible/2/2.3.7/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.7/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.3.7/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.3.7/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.7/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.3.7/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.3.7/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.7/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.3.8/.env b/linux/atlassian/fisheye-crucible/2/2.3.8/.env new file mode 100644 index 000000000..3e14eab93 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.8/.env @@ -0,0 +1,3 @@ + +RELEASE=2.3.8 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.3.8.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.3.8/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.3.8/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.8/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.3.8/Makefile b/linux/atlassian/fisheye-crucible/2/2.3.8/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.8/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.3.8/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.3.8/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.8/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.3.8/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.3.8/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.3.8/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.4.0/.env b/linux/atlassian/fisheye-crucible/2/2.4.0/.env new file mode 100644 index 000000000..a4548f80a --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.4.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.4.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.4.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.4.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.4.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.4.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.4.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.4.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.4.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.4.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.4.1/.env b/linux/atlassian/fisheye-crucible/2/2.4.1/.env new file mode 100644 index 000000000..a0dc8192e --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.4.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.4.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.4.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.4.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.4.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.4.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.4.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.4.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.4.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.4.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.4.2/.env b/linux/atlassian/fisheye-crucible/2/2.4.2/.env new file mode 100644 index 000000000..e49445818 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.4.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.4.2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.4.2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.4.2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.4.2/Makefile b/linux/atlassian/fisheye-crucible/2/2.4.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.4.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.4.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.4.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.4.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.4.3/.env b/linux/atlassian/fisheye-crucible/2/2.4.3/.env new file mode 100644 index 000000000..a5bd4ffe7 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.4.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.4.3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.4.3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.4.3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.4.3/Makefile b/linux/atlassian/fisheye-crucible/2/2.4.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.4.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.4.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.4.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.4.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.4.4/.env b/linux/atlassian/fisheye-crucible/2/2.4.4/.env new file mode 100644 index 000000000..4298309ba --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.4/.env @@ -0,0 +1,3 @@ + +RELEASE=2.4.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.4.4.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.4.4/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.4.4/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.4/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.4.4/Makefile b/linux/atlassian/fisheye-crucible/2/2.4.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.4.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.4.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.4.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.4.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.4.5/.env b/linux/atlassian/fisheye-crucible/2/2.4.5/.env new file mode 100644 index 000000000..3557d0440 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.5/.env @@ -0,0 +1,3 @@ + +RELEASE=2.4.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.4.5.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.4.5/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.4.5/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.5/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.4.5/Makefile b/linux/atlassian/fisheye-crucible/2/2.4.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.4.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.4.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.4.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.4.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.4.6/.env b/linux/atlassian/fisheye-crucible/2/2.4.6/.env new file mode 100644 index 000000000..a72fcb1d1 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.6/.env @@ -0,0 +1,3 @@ + +RELEASE=2.4.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.4.6.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.4.6/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.4.6/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.6/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.4.6/Makefile b/linux/atlassian/fisheye-crucible/2/2.4.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.4.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.4.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.4.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.4.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.4.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.5.0/.env b/linux/atlassian/fisheye-crucible/2/2.5.0/.env new file mode 100644 index 000000000..1ee4a3b79 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.5.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.5.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.5.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.5.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.5.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.5.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.5.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.5.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.5.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.5.1/.env b/linux/atlassian/fisheye-crucible/2/2.5.1/.env new file mode 100644 index 000000000..075bce268 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.5.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.5.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.5.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.5.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.5.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.5.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.5.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.5.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.5.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.5.2/.env b/linux/atlassian/fisheye-crucible/2/2.5.2/.env new file mode 100644 index 000000000..2c36fc568 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.5.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.5.2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.5.2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.5.2/Makefile b/linux/atlassian/fisheye-crucible/2/2.5.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.5.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.5.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.5.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.5.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.5.3/.env b/linux/atlassian/fisheye-crucible/2/2.5.3/.env new file mode 100644 index 000000000..58730891c --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.5.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.5.3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.5.3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.5.3/Makefile b/linux/atlassian/fisheye-crucible/2/2.5.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.5.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.5.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.5.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.5.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.5.4/.env b/linux/atlassian/fisheye-crucible/2/2.5.4/.env new file mode 100644 index 000000000..53c77473d --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.4/.env @@ -0,0 +1,3 @@ + +RELEASE=2.5.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.4.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.5.4/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.5.4/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.4/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.5.4/Makefile b/linux/atlassian/fisheye-crucible/2/2.5.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.5.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.5.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.5.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.5.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.5.5/.env b/linux/atlassian/fisheye-crucible/2/2.5.5/.env new file mode 100644 index 000000000..c727ad8ea --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.5/.env @@ -0,0 +1,3 @@ + +RELEASE=2.5.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.5.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.5.5/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.5.5/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.5/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.5.5/Makefile b/linux/atlassian/fisheye-crucible/2/2.5.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.5.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.5.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.5.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.5.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.5.6/.env b/linux/atlassian/fisheye-crucible/2/2.5.6/.env new file mode 100644 index 000000000..15ade1f14 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.6/.env @@ -0,0 +1,3 @@ + +RELEASE=2.5.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.6.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.5.6/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.5.6/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.6/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.5.6/Makefile b/linux/atlassian/fisheye-crucible/2/2.5.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.5.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.5.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.5.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.5.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.5.7/.env b/linux/atlassian/fisheye-crucible/2/2.5.7/.env new file mode 100644 index 000000000..e894f3fe2 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.7/.env @@ -0,0 +1,3 @@ + +RELEASE=2.5.7 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.7.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.5.7/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.5.7/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.7/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.5.7/Makefile b/linux/atlassian/fisheye-crucible/2/2.5.7/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.7/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.5.7/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.5.7/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.7/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.5.7/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.5.7/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.7/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.5.8/.env b/linux/atlassian/fisheye-crucible/2/2.5.8/.env new file mode 100644 index 000000000..d088cc0b7 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.8/.env @@ -0,0 +1,3 @@ + +RELEASE=2.5.8 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.8.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.5.8/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.5.8/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.8/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.5.8/Makefile b/linux/atlassian/fisheye-crucible/2/2.5.8/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.8/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.5.8/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.5.8/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.8/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.5.8/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.5.8/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.8/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.5.9/.env b/linux/atlassian/fisheye-crucible/2/2.5.9/.env new file mode 100644 index 000000000..1175a188b --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.9/.env @@ -0,0 +1,3 @@ + +RELEASE=2.5.9 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.9.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.5.9/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.5.9/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.9/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.5.9/Makefile b/linux/atlassian/fisheye-crucible/2/2.5.9/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.9/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.5.9/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.5.9/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.9/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.5.9/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.5.9/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.5.9/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.6.0/.env b/linux/atlassian/fisheye-crucible/2/2.6.0/.env new file mode 100644 index 000000000..3864b6548 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.6.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.6.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.6.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.6.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.6.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.6.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.6.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.6.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.6.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.6.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.6.1/.env b/linux/atlassian/fisheye-crucible/2/2.6.1/.env new file mode 100644 index 000000000..86671ae1b --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.6.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.6.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.6.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.6.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.6.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.6.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.6.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.6.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.6.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.6.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.6.2/.env b/linux/atlassian/fisheye-crucible/2/2.6.2/.env new file mode 100644 index 000000000..91d622b11 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.6.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.6.2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.6.2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.6.2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.6.2/Makefile b/linux/atlassian/fisheye-crucible/2/2.6.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.6.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.6.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.6.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.6.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.6.3/.env b/linux/atlassian/fisheye-crucible/2/2.6.3/.env new file mode 100644 index 000000000..2352b88cb --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.6.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.6.3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.6.3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.6.3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.6.3/Makefile b/linux/atlassian/fisheye-crucible/2/2.6.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.6.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.6.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.6.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.6.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.6.4/.env b/linux/atlassian/fisheye-crucible/2/2.6.4/.env new file mode 100644 index 000000000..fe333de81 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.4/.env @@ -0,0 +1,3 @@ + +RELEASE=2.6.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.6.4.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.6.4/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.6.4/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.4/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.6.4/Makefile b/linux/atlassian/fisheye-crucible/2/2.6.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.6.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.6.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.6.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.6.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.6.5/.env b/linux/atlassian/fisheye-crucible/2/2.6.5/.env new file mode 100644 index 000000000..4ea40b688 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.5/.env @@ -0,0 +1,3 @@ + +RELEASE=2.6.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.6.5.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.6.5/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.6.5/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.5/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.6.5/Makefile b/linux/atlassian/fisheye-crucible/2/2.6.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.6.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.6.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.6.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.6.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.6.6/.env b/linux/atlassian/fisheye-crucible/2/2.6.6/.env new file mode 100644 index 000000000..92afb3313 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.6/.env @@ -0,0 +1,3 @@ + +RELEASE=2.6.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.6.6.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.6.6/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.6.6/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.6/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.6.6/Makefile b/linux/atlassian/fisheye-crucible/2/2.6.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.6.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.6.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.6.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.6.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.6.7/.env b/linux/atlassian/fisheye-crucible/2/2.6.7/.env new file mode 100644 index 000000000..0fbd56caa --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.7/.env @@ -0,0 +1,3 @@ + +RELEASE=2.6.7 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.6.7.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.6.7/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.6.7/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.7/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.6.7/Makefile b/linux/atlassian/fisheye-crucible/2/2.6.7/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.7/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.6.7/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.6.7/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.7/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.6.7/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.6.7/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.7/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.6.8/.env b/linux/atlassian/fisheye-crucible/2/2.6.8/.env new file mode 100644 index 000000000..3a6d2e4ef --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.8/.env @@ -0,0 +1,3 @@ + +RELEASE=2.6.8 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.6.8.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.6.8/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.6.8/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.8/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.6.8/Makefile b/linux/atlassian/fisheye-crucible/2/2.6.8/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.8/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.6.8/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.6.8/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.8/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.6.8/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.6.8/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.8/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.6.9/.env b/linux/atlassian/fisheye-crucible/2/2.6.9/.env new file mode 100644 index 000000000..70ffb90b0 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.9/.env @@ -0,0 +1,3 @@ + +RELEASE=2.6.9 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.6.9.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.6.9/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.6.9/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.9/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.6.9/Makefile b/linux/atlassian/fisheye-crucible/2/2.6.9/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.9/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.6.9/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.6.9/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.9/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.6.9/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.6.9/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.6.9/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/.env b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/.env new file mode 100644 index 000000000..cd9e13cbd --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.0-EAP-1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.0-EAP-1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/.env b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/.env new file mode 100644 index 000000000..a41cfffba --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.0-EAP-2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.0-EAP-2.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0-EAP-2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0/.env b/linux/atlassian/fisheye-crucible/2/2.7.0/.env new file mode 100644 index 000000000..d471d3a50 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.1/.env b/linux/atlassian/fisheye-crucible/2/2.7.1/.env new file mode 100644 index 000000000..e3c1a0e15 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.10/.env b/linux/atlassian/fisheye-crucible/2/2.7.10/.env new file mode 100644 index 000000000..3af564275 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.10/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.10 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.10.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.10/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.10/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.10/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.10/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.10/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.10/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.10/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.10/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.10/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.10/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.10/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.10/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.11/.env b/linux/atlassian/fisheye-crucible/2/2.7.11/.env new file mode 100644 index 000000000..9299bc0cf --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.11/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.11 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.11.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.11/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.11/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.11/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.11/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.11/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.11/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.11/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.11/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.11/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.11/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.11/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.11/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.12/.env b/linux/atlassian/fisheye-crucible/2/2.7.12/.env new file mode 100644 index 000000000..d0dc63400 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.12/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.12 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.12.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.12/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.12/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.12/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.12/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.12/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.12/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.12/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.12/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.12/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.12/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.12/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.12/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.13/.env b/linux/atlassian/fisheye-crucible/2/2.7.13/.env new file mode 100644 index 000000000..e39e5e5e4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.13/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.13 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.13.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.13/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.13/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.13/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.13/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.13/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.13/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.13/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.13/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.13/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.13/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.13/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.13/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.14/.env b/linux/atlassian/fisheye-crucible/2/2.7.14/.env new file mode 100644 index 000000000..7e5b79810 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.14/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.14 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.14.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.14/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.14/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.14/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.14/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.14/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.14/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.14/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.14/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.14/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.14/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.14/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.14/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.15/.env b/linux/atlassian/fisheye-crucible/2/2.7.15/.env new file mode 100644 index 000000000..c97544c9e --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.15/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.15 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.15.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.15/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.15/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.15/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.15/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.15/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.15/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.15/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.15/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.15/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.15/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.15/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.15/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.2/.env b/linux/atlassian/fisheye-crucible/2/2.7.2/.env new file mode 100644 index 000000000..6b210a2c8 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.2/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.3/.env b/linux/atlassian/fisheye-crucible/2/2.7.3/.env new file mode 100644 index 000000000..068228e13 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.3/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.3.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.3/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.3/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.3/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.3/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.4/.env b/linux/atlassian/fisheye-crucible/2/2.7.4/.env new file mode 100644 index 000000000..20db3d5f7 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.4/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.4.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.4/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.4/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.4/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.4/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.5/.env b/linux/atlassian/fisheye-crucible/2/2.7.5/.env new file mode 100644 index 000000000..d8690f40f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.5/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.5.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.5/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.5/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.5/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.5/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.6/.env b/linux/atlassian/fisheye-crucible/2/2.7.6/.env new file mode 100644 index 000000000..6f8f85b36 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.6/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.6.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.6/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.6/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.6/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.6/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.7/.env b/linux/atlassian/fisheye-crucible/2/2.7.7/.env new file mode 100644 index 000000000..6c0b304a3 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.7/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.7 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.7.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.7/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.7/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.7/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.7/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.7/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.7/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.7/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.7/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.7/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.7/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.7/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.7/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.8/.env b/linux/atlassian/fisheye-crucible/2/2.7.8/.env new file mode 100644 index 000000000..8fdb84817 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.8/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.8 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.8.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.8/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.8/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.8/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.8/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.8/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.8/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.8/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.8/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.8/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.8/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.8/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.8/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.7.9/.env b/linux/atlassian/fisheye-crucible/2/2.7.9/.env new file mode 100644 index 000000000..7888cf497 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.9/.env @@ -0,0 +1,3 @@ + +RELEASE=2.7.9 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.7.9.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.7.9/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.7.9/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.9/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.7.9/Makefile b/linux/atlassian/fisheye-crucible/2/2.7.9/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.9/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.7.9/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.7.9/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.9/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.7.9/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.7.9/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.7.9/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.8.0-m1/.env b/linux/atlassian/fisheye-crucible/2/2.8.0-m1/.env new file mode 100644 index 000000000..c40c75472 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.0-m1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.8.0-m1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.8.0-m1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.8.0-m1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.8.0-m1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.0-m1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.8.0-m1/Makefile b/linux/atlassian/fisheye-crucible/2/2.8.0-m1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.0-m1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.8.0-m1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.8.0-m1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.0-m1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.8.0-m1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.8.0-m1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.0-m1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.8.0/.env b/linux/atlassian/fisheye-crucible/2/2.8.0/.env new file mode 100644 index 000000000..2932de805 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.8.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.8.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.8.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.8.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.8.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.8.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.8.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.8.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.8.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.8.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.8.1/.env b/linux/atlassian/fisheye-crucible/2/2.8.1/.env new file mode 100644 index 000000000..7a4ffa6b8 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.8.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.8.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.8.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.8.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.8.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.8.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.8.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.8.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.8.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.8.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.8.2/.env b/linux/atlassian/fisheye-crucible/2/2.8.2/.env new file mode 100644 index 000000000..a15a063c4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.8.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.8.2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.8.2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.8.2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.8.2/Makefile b/linux/atlassian/fisheye-crucible/2/2.8.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.8.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.8.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.8.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.8.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.8.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.9.0/.env b/linux/atlassian/fisheye-crucible/2/2.9.0/.env new file mode 100644 index 000000000..b1a55c31a --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.0/.env @@ -0,0 +1,3 @@ + +RELEASE=2.9.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.9.0.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.9.0/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.9.0/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.0/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.9.0/Makefile b/linux/atlassian/fisheye-crucible/2/2.9.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.9.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.9.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.9.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.9.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.9.1/.env b/linux/atlassian/fisheye-crucible/2/2.9.1/.env new file mode 100644 index 000000000..af27c534a --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.1/.env @@ -0,0 +1,3 @@ + +RELEASE=2.9.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.9.1.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.9.1/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.9.1/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.1/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.9.1/Makefile b/linux/atlassian/fisheye-crucible/2/2.9.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.9.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.9.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.9.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.9.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/2/2.9.2/.env b/linux/atlassian/fisheye-crucible/2/2.9.2/.env new file mode 100644 index 000000000..f2b745c9d --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.2/.env @@ -0,0 +1,3 @@ + +RELEASE=2.9.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.9.2.zip diff --git a/linux/atlassian/fisheye-crucible/2/2.9.2/Dockerfile b/linux/atlassian/fisheye-crucible/2/2.9.2/Dockerfile new file mode 100644 index 000000000..4eec725a4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.2/Dockerfile @@ -0,0 +1,49 @@ +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/2/2.9.2/Makefile b/linux/atlassian/fisheye-crucible/2/2.9.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/2/2.9.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/2/2.9.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/2/2.9.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/2/2.9.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/2/2.9.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.0.0/.env b/linux/atlassian/fisheye-crucible/3/3.0.0/.env new file mode 100644 index 000000000..0e54202ca --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.0/.env @@ -0,0 +1,3 @@ + +RELEASE=3.0.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.0.0.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.0.0/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.0.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.0.0/Makefile b/linux/atlassian/fisheye-crucible/3/3.0.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.0.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.0.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.0.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.0.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.0.1/.env b/linux/atlassian/fisheye-crucible/3/3.0.1/.env new file mode 100644 index 000000000..7ea35acda --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.1/.env @@ -0,0 +1,3 @@ + +RELEASE=3.0.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.0.1.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.0.1/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.0.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.0.1/Makefile b/linux/atlassian/fisheye-crucible/3/3.0.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.0.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.0.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.0.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.0.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.0.2/.env b/linux/atlassian/fisheye-crucible/3/3.0.2/.env new file mode 100644 index 000000000..5a9435537 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.2/.env @@ -0,0 +1,3 @@ + +RELEASE=3.0.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.0.2.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.0.2/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.0.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.0.2/Makefile b/linux/atlassian/fisheye-crucible/3/3.0.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.0.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.0.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.0.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.0.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.0.3/.env b/linux/atlassian/fisheye-crucible/3/3.0.3/.env new file mode 100644 index 000000000..ffb8637b7 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.3/.env @@ -0,0 +1,3 @@ + +RELEASE=3.0.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.0.3.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.0.3/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.0.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.0.3/Makefile b/linux/atlassian/fisheye-crucible/3/3.0.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.0.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.0.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.0.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.0.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.0.4/.env b/linux/atlassian/fisheye-crucible/3/3.0.4/.env new file mode 100644 index 000000000..7148f15f3 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.4/.env @@ -0,0 +1,3 @@ + +RELEASE=3.0.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.0.4.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.0.4/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.0.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.0.4/Makefile b/linux/atlassian/fisheye-crucible/3/3.0.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.0.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.0.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.0.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.0.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.0.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.1.0/.env b/linux/atlassian/fisheye-crucible/3/3.1.0/.env new file mode 100644 index 000000000..7464d5e69 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.0/.env @@ -0,0 +1,3 @@ + +RELEASE=3.1.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.1.0.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.1.0/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.1.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.1.0/Makefile b/linux/atlassian/fisheye-crucible/3/3.1.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.1.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.1.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.1.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.1.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.1.1/.env b/linux/atlassian/fisheye-crucible/3/3.1.1/.env new file mode 100644 index 000000000..111df2c12 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.1/.env @@ -0,0 +1,3 @@ + +RELEASE=3.1.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.1.1.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.1.1/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.1.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.1.1/Makefile b/linux/atlassian/fisheye-crucible/3/3.1.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.1.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.1.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.1.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.1.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.1.2/.env b/linux/atlassian/fisheye-crucible/3/3.1.2/.env new file mode 100644 index 000000000..bfaf35ed8 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.2/.env @@ -0,0 +1,3 @@ + +RELEASE=3.1.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.1.2.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.1.2/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.1.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.1.2/Makefile b/linux/atlassian/fisheye-crucible/3/3.1.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.1.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.1.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.1.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.1.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.1.3/.env b/linux/atlassian/fisheye-crucible/3/3.1.3/.env new file mode 100644 index 000000000..af211e4ac --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.3/.env @@ -0,0 +1,3 @@ + +RELEASE=3.1.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.1.3.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.1.3/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.1.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.1.3/Makefile b/linux/atlassian/fisheye-crucible/3/3.1.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.1.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.1.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.1.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.1.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.1.4/.env b/linux/atlassian/fisheye-crucible/3/3.1.4/.env new file mode 100644 index 000000000..1a7df2bb3 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.4/.env @@ -0,0 +1,3 @@ + +RELEASE=3.1.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.1.4.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.1.4/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.1.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.1.4/Makefile b/linux/atlassian/fisheye-crucible/3/3.1.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.1.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.1.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.1.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.1.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.1.5/.env b/linux/atlassian/fisheye-crucible/3/3.1.5/.env new file mode 100644 index 000000000..bc45e4d9a --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.5/.env @@ -0,0 +1,3 @@ + +RELEASE=3.1.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.1.5.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.1.5/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.1.5/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.5/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.1.5/Makefile b/linux/atlassian/fisheye-crucible/3/3.1.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.1.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.1.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.1.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.1.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.1.6/.env b/linux/atlassian/fisheye-crucible/3/3.1.6/.env new file mode 100644 index 000000000..37dd08966 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.6/.env @@ -0,0 +1,3 @@ + +RELEASE=3.1.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.1.6.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.1.6/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.1.6/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.6/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.1.6/Makefile b/linux/atlassian/fisheye-crucible/3/3.1.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.1.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.1.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.1.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.1.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.1.7/.env b/linux/atlassian/fisheye-crucible/3/3.1.7/.env new file mode 100644 index 000000000..72b5062fe --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.7/.env @@ -0,0 +1,3 @@ + +RELEASE=3.1.7 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.1.7.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.1.7/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.1.7/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.7/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.1.7/Makefile b/linux/atlassian/fisheye-crucible/3/3.1.7/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.7/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.1.7/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.1.7/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.7/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.1.7/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.1.7/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.1.7/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.10.1/.env b/linux/atlassian/fisheye-crucible/3/3.10.1/.env new file mode 100644 index 000000000..f0804c230 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.1/.env @@ -0,0 +1,3 @@ + +RELEASE=3.10.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.10.1.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.10.1/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.10.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.10.1/Makefile b/linux/atlassian/fisheye-crucible/3/3.10.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.10.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.10.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.10.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.10.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.10.2/.env b/linux/atlassian/fisheye-crucible/3/3.10.2/.env new file mode 100644 index 000000000..ab8e2638b --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.2/.env @@ -0,0 +1,3 @@ + +RELEASE=3.10.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.10.2.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.10.2/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.10.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.10.2/Makefile b/linux/atlassian/fisheye-crucible/3/3.10.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.10.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.10.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.10.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.10.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.10.3/.env b/linux/atlassian/fisheye-crucible/3/3.10.3/.env new file mode 100644 index 000000000..ce1837b5b --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.3/.env @@ -0,0 +1,3 @@ + +RELEASE=3.10.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.10.3.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.10.3/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.10.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.10.3/Makefile b/linux/atlassian/fisheye-crucible/3/3.10.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.10.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.10.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.10.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.10.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.10.4/.env b/linux/atlassian/fisheye-crucible/3/3.10.4/.env new file mode 100644 index 000000000..4da70fe3b --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.4/.env @@ -0,0 +1,3 @@ + +RELEASE=3.10.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.10.4.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.10.4/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.10.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.10.4/Makefile b/linux/atlassian/fisheye-crucible/3/3.10.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.10.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.10.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.10.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.10.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.10.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.2.0/.env b/linux/atlassian/fisheye-crucible/3/3.2.0/.env new file mode 100644 index 000000000..9fc230804 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.0/.env @@ -0,0 +1,3 @@ + +RELEASE=3.2.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.2.0.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.2.0/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.2.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.2.0/Makefile b/linux/atlassian/fisheye-crucible/3/3.2.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.2.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.2.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.2.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.2.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.2.1/.env b/linux/atlassian/fisheye-crucible/3/3.2.1/.env new file mode 100644 index 000000000..0907424e3 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.1/.env @@ -0,0 +1,3 @@ + +RELEASE=3.2.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.2.1.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.2.1/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.2.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.2.1/Makefile b/linux/atlassian/fisheye-crucible/3/3.2.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.2.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.2.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.2.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.2.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.2.2/.env b/linux/atlassian/fisheye-crucible/3/3.2.2/.env new file mode 100644 index 000000000..fc31c5e1e --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.2/.env @@ -0,0 +1,3 @@ + +RELEASE=3.2.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.2.2.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.2.2/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.2.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.2.2/Makefile b/linux/atlassian/fisheye-crucible/3/3.2.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.2.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.2.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.2.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.2.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.2.3/.env b/linux/atlassian/fisheye-crucible/3/3.2.3/.env new file mode 100644 index 000000000..8fbf74253 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.3/.env @@ -0,0 +1,3 @@ + +RELEASE=3.2.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.2.3.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.2.3/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.2.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.2.3/Makefile b/linux/atlassian/fisheye-crucible/3/3.2.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.2.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.2.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.2.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.2.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.2.4/.env b/linux/atlassian/fisheye-crucible/3/3.2.4/.env new file mode 100644 index 000000000..a39b1c14c --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.4/.env @@ -0,0 +1,3 @@ + +RELEASE=3.2.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.2.4.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.2.4/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.2.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.2.4/Makefile b/linux/atlassian/fisheye-crucible/3/3.2.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.2.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.2.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.2.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.2.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.2.5/.env b/linux/atlassian/fisheye-crucible/3/3.2.5/.env new file mode 100644 index 000000000..35ef1a788 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.5/.env @@ -0,0 +1,3 @@ + +RELEASE=3.2.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.2.5.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.2.5/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.2.5/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.5/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.2.5/Makefile b/linux/atlassian/fisheye-crucible/3/3.2.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.2.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.2.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.2.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.2.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.2.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.3.0/.env b/linux/atlassian/fisheye-crucible/3/3.3.0/.env new file mode 100644 index 000000000..351453d62 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.0/.env @@ -0,0 +1,3 @@ + +RELEASE=3.3.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.3.0.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.3.0/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.3.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.3.0/Makefile b/linux/atlassian/fisheye-crucible/3/3.3.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.3.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.3.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.3.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.3.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.3.1/.env b/linux/atlassian/fisheye-crucible/3/3.3.1/.env new file mode 100644 index 000000000..deffdb2f8 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.1/.env @@ -0,0 +1,3 @@ + +RELEASE=3.3.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.3.1.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.3.1/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.3.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.3.1/Makefile b/linux/atlassian/fisheye-crucible/3/3.3.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.3.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.3.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.3.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.3.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.3.2/.env b/linux/atlassian/fisheye-crucible/3/3.3.2/.env new file mode 100644 index 000000000..26fe5340f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.2/.env @@ -0,0 +1,3 @@ + +RELEASE=3.3.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.3.2.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.3.2/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.3.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.3.2/Makefile b/linux/atlassian/fisheye-crucible/3/3.3.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.3.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.3.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.3.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.3.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.3.3/.env b/linux/atlassian/fisheye-crucible/3/3.3.3/.env new file mode 100644 index 000000000..46009a92c --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.3/.env @@ -0,0 +1,3 @@ + +RELEASE=3.3.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.3.3.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.3.3/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.3.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.3.3/Makefile b/linux/atlassian/fisheye-crucible/3/3.3.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.3.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.3.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.3.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.3.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.3.4/.env b/linux/atlassian/fisheye-crucible/3/3.3.4/.env new file mode 100644 index 000000000..94a1c1d47 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.4/.env @@ -0,0 +1,3 @@ + +RELEASE=3.3.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.3.4.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.3.4/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.3.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.3.4/Makefile b/linux/atlassian/fisheye-crucible/3/3.3.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.3.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.3.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.3.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.3.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.3.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.4.0/.env b/linux/atlassian/fisheye-crucible/3/3.4.0/.env new file mode 100644 index 000000000..c60c561dd --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.0/.env @@ -0,0 +1,3 @@ + +RELEASE=3.4.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.4.0.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.4.0/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.4.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.4.0/Makefile b/linux/atlassian/fisheye-crucible/3/3.4.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.4.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.4.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.4.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.4.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.4.3/.env b/linux/atlassian/fisheye-crucible/3/3.4.3/.env new file mode 100644 index 000000000..9565a266b --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.3/.env @@ -0,0 +1,3 @@ + +RELEASE=3.4.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.4.3.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.4.3/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.4.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.4.3/Makefile b/linux/atlassian/fisheye-crucible/3/3.4.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.4.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.4.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.4.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.4.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.4.4/.env b/linux/atlassian/fisheye-crucible/3/3.4.4/.env new file mode 100644 index 000000000..e44650c82 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.4/.env @@ -0,0 +1,3 @@ + +RELEASE=3.4.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.4.4.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.4.4/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.4.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.4.4/Makefile b/linux/atlassian/fisheye-crucible/3/3.4.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.4.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.4.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.4.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.4.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.4.5/.env b/linux/atlassian/fisheye-crucible/3/3.4.5/.env new file mode 100644 index 000000000..f48da9e6e --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.5/.env @@ -0,0 +1,3 @@ + +RELEASE=3.4.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.4.5.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.4.5/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.4.5/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.5/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.4.5/Makefile b/linux/atlassian/fisheye-crucible/3/3.4.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.4.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.4.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.4.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.4.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.4.6/.env b/linux/atlassian/fisheye-crucible/3/3.4.6/.env new file mode 100644 index 000000000..d5a442720 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.6/.env @@ -0,0 +1,3 @@ + +RELEASE=3.4.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.4.6.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.4.6/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.4.6/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.6/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.4.6/Makefile b/linux/atlassian/fisheye-crucible/3/3.4.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.4.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.4.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.4.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.4.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.4.7/.env b/linux/atlassian/fisheye-crucible/3/3.4.7/.env new file mode 100644 index 000000000..f4b84beac --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.7/.env @@ -0,0 +1,3 @@ + +RELEASE=3.4.7 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.4.7.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.4.7/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.4.7/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.7/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.4.7/Makefile b/linux/atlassian/fisheye-crucible/3/3.4.7/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.7/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.4.7/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.4.7/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.7/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.4.7/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.4.7/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.4.7/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.5.0/.env b/linux/atlassian/fisheye-crucible/3/3.5.0/.env new file mode 100644 index 000000000..d0b4b7613 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.0/.env @@ -0,0 +1,3 @@ + +RELEASE=3.5.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.5.0.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.5.0/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.5.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.5.0/Makefile b/linux/atlassian/fisheye-crucible/3/3.5.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.5.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.5.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.5.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.5.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.5.1/.env b/linux/atlassian/fisheye-crucible/3/3.5.1/.env new file mode 100644 index 000000000..f402ad46d --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.1/.env @@ -0,0 +1,3 @@ + +RELEASE=3.5.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.5.1.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.5.1/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.5.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.5.1/Makefile b/linux/atlassian/fisheye-crucible/3/3.5.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.5.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.5.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.5.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.5.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.5.2/.env b/linux/atlassian/fisheye-crucible/3/3.5.2/.env new file mode 100644 index 000000000..f3fa76061 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.2/.env @@ -0,0 +1,3 @@ + +RELEASE=3.5.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.5.2.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.5.2/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.5.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.5.2/Makefile b/linux/atlassian/fisheye-crucible/3/3.5.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.5.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.5.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.5.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.5.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.5.3/.env b/linux/atlassian/fisheye-crucible/3/3.5.3/.env new file mode 100644 index 000000000..ab8be3503 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.3/.env @@ -0,0 +1,3 @@ + +RELEASE=3.5.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.5.3.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.5.3/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.5.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.5.3/Makefile b/linux/atlassian/fisheye-crucible/3/3.5.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.5.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.5.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.5.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.5.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.5.4/.env b/linux/atlassian/fisheye-crucible/3/3.5.4/.env new file mode 100644 index 000000000..f0659f2a8 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.4/.env @@ -0,0 +1,3 @@ + +RELEASE=3.5.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.5.4.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.5.4/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.5.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.5.4/Makefile b/linux/atlassian/fisheye-crucible/3/3.5.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.5.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.5.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.5.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.5.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.5.5/.env b/linux/atlassian/fisheye-crucible/3/3.5.5/.env new file mode 100644 index 000000000..6620d8890 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.5/.env @@ -0,0 +1,3 @@ + +RELEASE=3.5.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.5.5.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.5.5/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.5.5/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.5/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.5.5/Makefile b/linux/atlassian/fisheye-crucible/3/3.5.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.5.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.5.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.5.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.5.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.5.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.6.0/.env b/linux/atlassian/fisheye-crucible/3/3.6.0/.env new file mode 100644 index 000000000..c16ec55f9 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.0/.env @@ -0,0 +1,3 @@ + +RELEASE=3.6.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.6.0.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.6.0/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.6.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.6.0/Makefile b/linux/atlassian/fisheye-crucible/3/3.6.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.6.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.6.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.6.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.6.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.6.1/.env b/linux/atlassian/fisheye-crucible/3/3.6.1/.env new file mode 100644 index 000000000..ce7a5816b --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.1/.env @@ -0,0 +1,3 @@ + +RELEASE=3.6.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.6.1.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.6.1/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.6.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.6.1/Makefile b/linux/atlassian/fisheye-crucible/3/3.6.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.6.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.6.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.6.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.6.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.6.2/.env b/linux/atlassian/fisheye-crucible/3/3.6.2/.env new file mode 100644 index 000000000..1b87324db --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.2/.env @@ -0,0 +1,3 @@ + +RELEASE=3.6.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.6.2.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.6.2/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.6.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.6.2/Makefile b/linux/atlassian/fisheye-crucible/3/3.6.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.6.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.6.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.6.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.6.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.6.3/.env b/linux/atlassian/fisheye-crucible/3/3.6.3/.env new file mode 100644 index 000000000..237b876ea --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.3/.env @@ -0,0 +1,3 @@ + +RELEASE=3.6.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.6.3.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.6.3/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.6.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.6.3/Makefile b/linux/atlassian/fisheye-crucible/3/3.6.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.6.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.6.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.6.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.6.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.6.4/.env b/linux/atlassian/fisheye-crucible/3/3.6.4/.env new file mode 100644 index 000000000..7d627b28f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.4/.env @@ -0,0 +1,3 @@ + +RELEASE=3.6.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.6.4.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.6.4/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.6.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.6.4/Makefile b/linux/atlassian/fisheye-crucible/3/3.6.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.6.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.6.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.6.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.6.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.6.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.7.0/.env b/linux/atlassian/fisheye-crucible/3/3.7.0/.env new file mode 100644 index 000000000..8b1834064 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.7.0/.env @@ -0,0 +1,3 @@ + +RELEASE=3.7.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.7.0.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.7.0/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.7.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.7.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.7.0/Makefile b/linux/atlassian/fisheye-crucible/3/3.7.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.7.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.7.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.7.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.7.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.7.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.7.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.7.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.7.1/.env b/linux/atlassian/fisheye-crucible/3/3.7.1/.env new file mode 100644 index 000000000..7af1999e4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.7.1/.env @@ -0,0 +1,3 @@ + +RELEASE=3.7.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.7.1.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.7.1/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.7.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.7.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.7.1/Makefile b/linux/atlassian/fisheye-crucible/3/3.7.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.7.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.7.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.7.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.7.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.7.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.7.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.7.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.8.0/.env b/linux/atlassian/fisheye-crucible/3/3.8.0/.env new file mode 100644 index 000000000..b9ff2a8f4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.8.0/.env @@ -0,0 +1,3 @@ + +RELEASE=3.8.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.8.0.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.8.0/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.8.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.8.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.8.0/Makefile b/linux/atlassian/fisheye-crucible/3/3.8.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.8.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.8.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.8.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.8.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.8.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.8.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.8.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.8.1/.env b/linux/atlassian/fisheye-crucible/3/3.8.1/.env new file mode 100644 index 000000000..1317ea9f3 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.8.1/.env @@ -0,0 +1,3 @@ + +RELEASE=3.8.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.8.1.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.8.1/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.8.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.8.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.8.1/Makefile b/linux/atlassian/fisheye-crucible/3/3.8.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.8.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.8.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.8.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.8.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.8.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.8.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.8.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.9.0/.env b/linux/atlassian/fisheye-crucible/3/3.9.0/.env new file mode 100644 index 000000000..b67b72ee4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.0/.env @@ -0,0 +1,3 @@ + +RELEASE=3.9.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.9.0.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.9.0/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.9.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.9.0/Makefile b/linux/atlassian/fisheye-crucible/3/3.9.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.9.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.9.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.9.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.9.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.9.1/.env b/linux/atlassian/fisheye-crucible/3/3.9.1/.env new file mode 100644 index 000000000..c97bfd2b5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.1/.env @@ -0,0 +1,3 @@ + +RELEASE=3.9.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.9.1.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.9.1/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.9.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.9.1/Makefile b/linux/atlassian/fisheye-crucible/3/3.9.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.9.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.9.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.9.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.9.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/3/3.9.2/.env b/linux/atlassian/fisheye-crucible/3/3.9.2/.env new file mode 100644 index 000000000..abb8b54b4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.2/.env @@ -0,0 +1,3 @@ + +RELEASE=3.9.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-3.9.2.zip diff --git a/linux/atlassian/fisheye-crucible/3/3.9.2/Dockerfile b/linux/atlassian/fisheye-crucible/3/3.9.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/3/3.9.2/Makefile b/linux/atlassian/fisheye-crucible/3/3.9.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/3/3.9.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/3/3.9.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/3/3.9.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/3/3.9.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/3/3.9.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.0.2/.env b/linux/atlassian/fisheye-crucible/4/4.0.2/.env new file mode 100644 index 000000000..c8444aaed --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.2/.env @@ -0,0 +1,3 @@ + +RELEASE=4.0.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.0.2.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.0.2/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.0.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.0.2/Makefile b/linux/atlassian/fisheye-crucible/4/4.0.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.0.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.0.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.0.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.0.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.0.3/.env b/linux/atlassian/fisheye-crucible/4/4.0.3/.env new file mode 100644 index 000000000..8ff330983 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.3/.env @@ -0,0 +1,3 @@ + +RELEASE=4.0.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.0.3.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.0.3/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.0.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.0.3/Makefile b/linux/atlassian/fisheye-crucible/4/4.0.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.0.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.0.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.0.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.0.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.0.4/.env b/linux/atlassian/fisheye-crucible/4/4.0.4/.env new file mode 100644 index 000000000..8726434dc --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.4/.env @@ -0,0 +1,3 @@ + +RELEASE=4.0.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.0.4.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.0.4/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.0.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.0.4/Makefile b/linux/atlassian/fisheye-crucible/4/4.0.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.0.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.0.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.0.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.0.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.0.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.1.0/.env b/linux/atlassian/fisheye-crucible/4/4.1.0/.env new file mode 100644 index 000000000..d7ceda074 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.0/.env @@ -0,0 +1,3 @@ + +RELEASE=4.1.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.1.0.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.1.0/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.1.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.1.0/Makefile b/linux/atlassian/fisheye-crucible/4/4.1.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.1.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.1.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.1.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.1.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.1.1/.env b/linux/atlassian/fisheye-crucible/4/4.1.1/.env new file mode 100644 index 000000000..dd9118d58 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.1/.env @@ -0,0 +1,3 @@ + +RELEASE=4.1.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.1.1.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.1.1/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.1.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.1.1/Makefile b/linux/atlassian/fisheye-crucible/4/4.1.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.1.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.1.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.1.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.1.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.1.2/.env b/linux/atlassian/fisheye-crucible/4/4.1.2/.env new file mode 100644 index 000000000..23d06111e --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.2/.env @@ -0,0 +1,3 @@ + +RELEASE=4.1.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.1.2.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.1.2/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.1.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.1.2/Makefile b/linux/atlassian/fisheye-crucible/4/4.1.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.1.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.1.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.1.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.1.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.1.3/.env b/linux/atlassian/fisheye-crucible/4/4.1.3/.env new file mode 100644 index 000000000..382f74c0a --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.3/.env @@ -0,0 +1,3 @@ + +RELEASE=4.1.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.1.3.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.1.3/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.1.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.1.3/Makefile b/linux/atlassian/fisheye-crucible/4/4.1.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.1.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.1.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.1.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.1.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.1.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.2.0/.env b/linux/atlassian/fisheye-crucible/4/4.2.0/.env new file mode 100644 index 000000000..78116647a --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.0/.env @@ -0,0 +1,3 @@ + +RELEASE=4.2.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.2.0.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.2.0/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.2.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.2.0/Makefile b/linux/atlassian/fisheye-crucible/4/4.2.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.2.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.2.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.2.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.2.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.2.1/.env b/linux/atlassian/fisheye-crucible/4/4.2.1/.env new file mode 100644 index 000000000..769cc6f64 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.1/.env @@ -0,0 +1,3 @@ + +RELEASE=4.2.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.2.1.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.2.1/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.2.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.2.1/Makefile b/linux/atlassian/fisheye-crucible/4/4.2.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.2.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.2.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.2.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.2.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.2.2/.env b/linux/atlassian/fisheye-crucible/4/4.2.2/.env new file mode 100644 index 000000000..360c3089a --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.2/.env @@ -0,0 +1,3 @@ + +RELEASE=4.2.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.2.2.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.2.2/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.2.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.2.2/Makefile b/linux/atlassian/fisheye-crucible/4/4.2.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.2.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.2.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.2.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.2.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.2.3/.env b/linux/atlassian/fisheye-crucible/4/4.2.3/.env new file mode 100644 index 000000000..84db9d4c1 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.3/.env @@ -0,0 +1,3 @@ + +RELEASE=4.2.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.2.3.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.2.3/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.2.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.2.3/Makefile b/linux/atlassian/fisheye-crucible/4/4.2.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.2.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.2.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.2.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.2.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.2.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.3.0/.env b/linux/atlassian/fisheye-crucible/4/4.3.0/.env new file mode 100644 index 000000000..b2a6ec7a3 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.0/.env @@ -0,0 +1,3 @@ + +RELEASE=4.3.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.3.0.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.3.0/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.3.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.3.0/Makefile b/linux/atlassian/fisheye-crucible/4/4.3.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.3.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.3.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.3.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.3.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.3.1/.env b/linux/atlassian/fisheye-crucible/4/4.3.1/.env new file mode 100644 index 000000000..3f20ff446 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.1/.env @@ -0,0 +1,3 @@ + +RELEASE=4.3.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.3.1.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.3.1/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.3.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.3.1/Makefile b/linux/atlassian/fisheye-crucible/4/4.3.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.3.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.3.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.3.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.3.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.3.2/.env b/linux/atlassian/fisheye-crucible/4/4.3.2/.env new file mode 100644 index 000000000..18d001fae --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.2/.env @@ -0,0 +1,3 @@ + +RELEASE=4.3.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.3.2.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.3.2/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.3.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.3.2/Makefile b/linux/atlassian/fisheye-crucible/4/4.3.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.3.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.3.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.3.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.3.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.3.3/.env b/linux/atlassian/fisheye-crucible/4/4.3.3/.env new file mode 100644 index 000000000..9cb64d3e0 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.3/.env @@ -0,0 +1,3 @@ + +RELEASE=4.3.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.3.3.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.3.3/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.3.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.3.3/Makefile b/linux/atlassian/fisheye-crucible/4/4.3.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.3.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.3.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.3.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.3.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.3.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.4.0/.env b/linux/atlassian/fisheye-crucible/4/4.4.0/.env new file mode 100644 index 000000000..65585361e --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.0/.env @@ -0,0 +1,3 @@ + +RELEASE=4.4.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.4.0.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.4.0/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.4.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.4.0/Makefile b/linux/atlassian/fisheye-crucible/4/4.4.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.4.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.4.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.4.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.4.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.4.1/.env b/linux/atlassian/fisheye-crucible/4/4.4.1/.env new file mode 100644 index 000000000..47a462c99 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.1/.env @@ -0,0 +1,3 @@ + +RELEASE=4.4.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.4.1.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.4.1/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.4.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.4.1/Makefile b/linux/atlassian/fisheye-crucible/4/4.4.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.4.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.4.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.4.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.4.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.4.2/.env b/linux/atlassian/fisheye-crucible/4/4.4.2/.env new file mode 100644 index 000000000..3697f5cd2 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.2/.env @@ -0,0 +1,3 @@ + +RELEASE=4.4.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.4.2.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.4.2/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.4.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.4.2/Makefile b/linux/atlassian/fisheye-crucible/4/4.4.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.4.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.4.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.4.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.4.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.4.3/.env b/linux/atlassian/fisheye-crucible/4/4.4.3/.env new file mode 100644 index 000000000..a94115d5d --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.3/.env @@ -0,0 +1,3 @@ + +RELEASE=4.4.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.4.3.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.4.3/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.4.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.4.3/Makefile b/linux/atlassian/fisheye-crucible/4/4.4.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.4.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.4.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.4.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.4.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.4.5/.env b/linux/atlassian/fisheye-crucible/4/4.4.5/.env new file mode 100644 index 000000000..22bd3119d --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.5/.env @@ -0,0 +1,3 @@ + +RELEASE=4.4.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.4.5.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.4.5/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.4.5/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.5/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.4.5/Makefile b/linux/atlassian/fisheye-crucible/4/4.4.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.4.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.4.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.4.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.4.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.4.6/.env b/linux/atlassian/fisheye-crucible/4/4.4.6/.env new file mode 100644 index 000000000..929e52514 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.6/.env @@ -0,0 +1,3 @@ + +RELEASE=4.4.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.4.6.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.4.6/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.4.6/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.6/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.4.6/Makefile b/linux/atlassian/fisheye-crucible/4/4.4.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.4.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.4.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.4.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.4.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.4.7/.env b/linux/atlassian/fisheye-crucible/4/4.4.7/.env new file mode 100644 index 000000000..b86d4eccc --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.7/.env @@ -0,0 +1,3 @@ + +RELEASE=4.4.7 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.4.7.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.4.7/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.4.7/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.7/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.4.7/Makefile b/linux/atlassian/fisheye-crucible/4/4.4.7/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.7/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.4.7/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.4.7/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.7/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.4.7/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.4.7/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.4.7/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.5.0/.env b/linux/atlassian/fisheye-crucible/4/4.5.0/.env new file mode 100644 index 000000000..99b0f6ac4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.0/.env @@ -0,0 +1,3 @@ + +RELEASE=4.5.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.5.0.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.5.0/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.5.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.5.0/Makefile b/linux/atlassian/fisheye-crucible/4/4.5.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.5.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.5.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.5.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.5.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.5.1/.env b/linux/atlassian/fisheye-crucible/4/4.5.1/.env new file mode 100644 index 000000000..ac456f740 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.1/.env @@ -0,0 +1,3 @@ + +RELEASE=4.5.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.5.1.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.5.1/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.5.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.5.1/Makefile b/linux/atlassian/fisheye-crucible/4/4.5.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.5.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.5.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.5.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.5.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.5.2/.env b/linux/atlassian/fisheye-crucible/4/4.5.2/.env new file mode 100644 index 000000000..add195b68 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.2/.env @@ -0,0 +1,3 @@ + +RELEASE=4.5.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.5.2.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.5.2/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.5.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.5.2/Makefile b/linux/atlassian/fisheye-crucible/4/4.5.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.5.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.5.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.5.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.5.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.5.3/.env b/linux/atlassian/fisheye-crucible/4/4.5.3/.env new file mode 100644 index 000000000..d300002c8 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.3/.env @@ -0,0 +1,3 @@ + +RELEASE=4.5.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.5.3.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.5.3/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.5.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.5.3/Makefile b/linux/atlassian/fisheye-crucible/4/4.5.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.5.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.5.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.5.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.5.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.5.4/.env b/linux/atlassian/fisheye-crucible/4/4.5.4/.env new file mode 100644 index 000000000..26463d78e --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.4/.env @@ -0,0 +1,3 @@ + +RELEASE=4.5.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.5.4.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.5.4/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.5.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.5.4/Makefile b/linux/atlassian/fisheye-crucible/4/4.5.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.5.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.5.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.5.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.5.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.5.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.6.0/.env b/linux/atlassian/fisheye-crucible/4/4.6.0/.env new file mode 100644 index 000000000..1838c04b6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.6.0/.env @@ -0,0 +1,3 @@ + +RELEASE=4.6.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.6.0.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.6.0/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.6.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.6.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.6.0/Makefile b/linux/atlassian/fisheye-crucible/4/4.6.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.6.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.6.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.6.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.6.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.6.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.6.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.6.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.6.1/.env b/linux/atlassian/fisheye-crucible/4/4.6.1/.env new file mode 100644 index 000000000..2a94287ed --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.6.1/.env @@ -0,0 +1,3 @@ + +RELEASE=4.6.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.6.1.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.6.1/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.6.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.6.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.6.1/Makefile b/linux/atlassian/fisheye-crucible/4/4.6.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.6.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.6.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.6.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.6.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.6.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.6.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.6.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.7.0/.env b/linux/atlassian/fisheye-crucible/4/4.7.0/.env new file mode 100644 index 000000000..0e1fcf2a6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.0/.env @@ -0,0 +1,3 @@ + +RELEASE=4.7.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.7.0.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.7.0/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.7.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.7.0/Makefile b/linux/atlassian/fisheye-crucible/4/4.7.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.7.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.7.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.7.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.7.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.7.1/.env b/linux/atlassian/fisheye-crucible/4/4.7.1/.env new file mode 100644 index 000000000..cb7af87cb --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.1/.env @@ -0,0 +1,3 @@ + +RELEASE=4.7.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.7.1.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.7.1/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.7.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.7.1/Makefile b/linux/atlassian/fisheye-crucible/4/4.7.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.7.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.7.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.7.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.7.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.7.2/.env b/linux/atlassian/fisheye-crucible/4/4.7.2/.env new file mode 100644 index 000000000..c760b7de3 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.2/.env @@ -0,0 +1,3 @@ + +RELEASE=4.7.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.7.2.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.7.2/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.7.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.7.2/Makefile b/linux/atlassian/fisheye-crucible/4/4.7.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.7.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.7.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.7.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.7.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.7.3/.env b/linux/atlassian/fisheye-crucible/4/4.7.3/.env new file mode 100644 index 000000000..4073ee327 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.3/.env @@ -0,0 +1,3 @@ + +RELEASE=4.7.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.7.3.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.7.3/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.7.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.7.3/Makefile b/linux/atlassian/fisheye-crucible/4/4.7.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.7.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.7.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.7.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.7.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.7.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.8.0/.env b/linux/atlassian/fisheye-crucible/4/4.8.0/.env new file mode 100644 index 000000000..fe4acccd8 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.0/.env @@ -0,0 +1,3 @@ + +RELEASE=4.8.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.8.0.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.8.0/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.8.0/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.0/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.8.0/Makefile b/linux/atlassian/fisheye-crucible/4/4.8.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.8.0/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.8.0/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.8.0/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.8.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.0/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.8.1/.env b/linux/atlassian/fisheye-crucible/4/4.8.1/.env new file mode 100644 index 000000000..3c55bf46e --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.1/.env @@ -0,0 +1,3 @@ + +RELEASE=4.8.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.8.1.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.8.1/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.8.1/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.1/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.8.1/Makefile b/linux/atlassian/fisheye-crucible/4/4.8.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.8.1/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.8.1/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.8.1/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.8.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.1/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.8.2/.env b/linux/atlassian/fisheye-crucible/4/4.8.2/.env new file mode 100644 index 000000000..1f020413d --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.2/.env @@ -0,0 +1,3 @@ + +RELEASE=4.8.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.8.2.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.8.2/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.8.2/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.2/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.8.2/Makefile b/linux/atlassian/fisheye-crucible/4/4.8.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.8.2/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.8.2/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.8.2/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.8.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.2/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.8.3/.env b/linux/atlassian/fisheye-crucible/4/4.8.3/.env new file mode 100644 index 000000000..d1e9bb0fd --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.3/.env @@ -0,0 +1,3 @@ + +RELEASE=4.8.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.8.3.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.8.3/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.8.3/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.3/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.8.3/Makefile b/linux/atlassian/fisheye-crucible/4/4.8.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.8.3/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.8.3/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.8.3/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.8.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.3/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.8.4/.env b/linux/atlassian/fisheye-crucible/4/4.8.4/.env new file mode 100644 index 000000000..b089fcc01 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.4/.env @@ -0,0 +1,3 @@ + +RELEASE=4.8.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.8.4.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.8.4/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.8.4/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.4/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.8.4/Makefile b/linux/atlassian/fisheye-crucible/4/4.8.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.8.4/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.8.4/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.8.4/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.8.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.4/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.8.5/.env b/linux/atlassian/fisheye-crucible/4/4.8.5/.env new file mode 100644 index 000000000..c5b045f1b --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.5/.env @@ -0,0 +1,3 @@ + +RELEASE=4.8.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.8.5.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.8.5/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.8.5/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.5/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.8.5/Makefile b/linux/atlassian/fisheye-crucible/4/4.8.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.8.5/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.8.5/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.8.5/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.8.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.5/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/4/4.8.6/.env b/linux/atlassian/fisheye-crucible/4/4.8.6/.env new file mode 100644 index 000000000..cc3d229c4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.6/.env @@ -0,0 +1,3 @@ + +RELEASE=4.8.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.8.6.zip diff --git a/linux/atlassian/fisheye-crucible/4/4.8.6/Dockerfile b/linux/atlassian/fisheye-crucible/4/4.8.6/Dockerfile new file mode 100644 index 000000000..4426bcb90 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.6/Dockerfile @@ -0,0 +1,49 @@ +FROM epicmorg/prod:jdk8 +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", "--"] diff --git a/linux/atlassian/fisheye-crucible/4/4.8.6/Makefile b/linux/atlassian/fisheye-crucible/4/4.8.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/4/4.8.6/docker-compose.yml b/linux/atlassian/fisheye-crucible/4/4.8.6/docker-compose.yml new file mode 100644 index 000000000..fba8ce85f --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye-crucible/4/4.8.6/entrypoint.sh b/linux/atlassian/fisheye-crucible/4/4.8.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/4/4.8.6/entrypoint.sh @@ -0,0 +1,33 @@ +#!/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 diff --git a/linux/atlassian/fisheye-crucible/README.md b/linux/atlassian/fisheye-crucible/README.md index 246a05c39..9cddc1146 100644 --- a/linux/atlassian/fisheye-crucible/README.md +++ b/linux/atlassian/fisheye-crucible/README.md @@ -10,4 +10,117 @@ All presented images avalible on our repo in docker hub. ------- -*Some old versions of Bitbucket may fail health check with [AdoptOpenJDK](https://github.com/AdoptOpenJDK) (open source, prebuilt OpenJDK binaries). But it will be works.* \ No newline at end of file +*Some old versions of Bitbucket may fail health check with [AdoptOpenJDK](https://github.com/AdoptOpenJDK) (open source, prebuilt OpenJDK binaries). But it will be works.* + +------- + +![Atlassian Fisheye](https://wac-cdn.atlassian.com/dam/jcr:0785bca2-a166-47ef-aeec-c657e7627af0/Fisheye@2x-blue.png?cdnVersion=363) +![Atlassian Crucible](https://wac-cdn.atlassian.com/dam/jcr:b601a46c-ece6-4cda-94ae-d95b1d94cbfd/Crucible@2x-blue.png?cdnVersion=363) + +With FishEye you can search code, visualize and report on activity and find for commits, files, revisions, or teammates across SVN, Git, Mercurial, CVS and Perforce. + +Atlassian Crucible takes the pain out of code review. Find bugs and improve code quality through peer code review from JIRA or your workflow. + +Learn more about Fisheye: [https://www.atlassian.com/software/fisheye](https://www.atlassian.com/software/fisheye) + +Learn more about Crucible: [https://www.atlassian.com/software/crucible](https://www.atlassian.com/software/crucible) + +# Overview + +This Docker container makes it easy to get an instance of Fisheye/Crucible up and running. + +# Quick Start + +For the `FISHEYE_INST` directory that is used to store the application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9. + +To get started you can use a data volume, or named volumes. In this example we'll use named volumes. + + $> docker volume create --name fecruVolume + $> docker run -v fecruVolume:/var/atlassian/application-data/fecru --name="fecru" -d -p 8060:8060 epicmorg/fisheye-crucible + + +**Success**. Fisheye/Crucible is now available on [http://localhost:8060](http://localhost:8060)* + +Please ensure your container has the necessary resources allocated to it. We recommend 1GiB of memory allocated to accommodate the application server. See [Supported Platforms](https://confluence.atlassian.com/fisheye/supported-platforms-298976955.html) for further information. + + +_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8060` instead._ + +## Memory / Heap Size + +If you need to override Fisheye/Crucible's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables. + +* `JVM_MINIMUM_MEMORY` (default: NONE) + + The minimum heap size of the JVM + +* `JVM_MAXIMUM_MEMORY` (default: 1024m) + + The maximum heap size of the JVM + + +## JVM configuration + +If you need to pass additional JVM arguments to Fisheye/Crucible, such as specifying a custom trust store, you can add them via the below environment variable + +* `FISHEYE_OPTS` + + Additional JVM arguments for Fisheye/Crucible + +* `JVM_SUPPORT_RECOMMENDED_ARGS` + + Additional JVM arguments for Fisheye/Crucible. These are appended to `FISHEYE_OPTS`; this option exists only for consistency with other Atlassian Docker images. + + +## Other configuration + +Additional configuration options are available to Fisheye/Crucible: + +* `FISHEYE_ARGS` + + The arguments which will be passed to Fisheye when it is started. You can set this to --debug, for example, or --debug-perf if you always want to have Fisheye debugging put into the Fisheye log files. See also [Command line options](https://confluence.atlassian.com/fisheye/command-line-options-298976950.html) + +* `FISHEYE_LIBRARY_PATH` + + Used to tell Fisheye where it should look to load any additional native libraries + + +Example: + + $> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/fecru/cacerts -v fecruVolume:/var/atlassian/application-data/fecru --name="fecru" -d -p 8060:8060 epicmorg/fisheye-crucible + +# Upgrade + +To upgrade to a more recent version of Fisheye/Crucible you can simply stop the `fecru` container and start a new one based on a more recent image: + + $> docker stop fecru + $> docker rm fecru + $> docker run ... (See above) + +As your data is stored in the data volume directory on the host it will still be available after the upgrade. + +_Note: Please make sure that you **don't** accidentally remove the `fecru` container and its volumes using the `-v` option._ + +# Backup + +For evaluations you can use the built-in database that will store its files in the Fisheye/Crucible home directory. In that case it is sufficient to create a backup archive of the docker volume. + +If you're using an external database, you can configure Fisheye/Crucible to make a backup automatically each night. This will back up the current state, including the database to the `fecruVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the `FISHEYE_INST` directory. + +Read more about data recovery and backups: [https://confluence.atlassian.com/fisheye/backing-up-and-restoring-fisheye-data-298976928.html](https://confluence.atlassian.com/fisheye/backing-up-and-restoring-fisheye-data-298976928.html) + +# Versioning + +The `latest` tag matches the most recent release of Atlassian Fisheye/Crucible. Thus `epicmorg/fisheye-crucible:latest` will use the newest version of Fisheye/Crucible available. + +Alternatively you can use a specific major, major.minor, or major.minor.patch version of Fisheye/Crucible by using a version number tag: + +* `epicmorg/fisheye-crucible:4` +* `epicmorg/fisheye-crucible:4.6` +* `epicmorg/fisheye-crucible:4.6.1` + +All versions from 3.0+ are available + +# Support + +This Docker container is unsupported and is intended for illustration purposes only. diff --git a/linux/atlassian/fisheye-crucible/latest/.env b/linux/atlassian/fisheye-crucible/latest/.env new file mode 100644 index 000000000..cc3d229c4 --- /dev/null +++ b/linux/atlassian/fisheye-crucible/latest/.env @@ -0,0 +1,3 @@ + +RELEASE=4.8.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.8.6.zip diff --git a/linux/atlassian/fisheye-crucible/latest/Dockerfile b/linux/atlassian/fisheye-crucible/latest/Dockerfile index 8ef319b91..4426bcb90 100644 --- a/linux/atlassian/fisheye-crucible/latest/Dockerfile +++ b/linux/atlassian/fisheye-crucible/latest/Dockerfile @@ -5,8 +5,9 @@ ARG DEBIAN_FRONTEND=noninteractive ################################################################## # ARGuments ################################################################## -ARG FECRU_VERSION=4.8.6 -ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/fisheye/downloads/fisheye-${FECRU_VERSION}.zip +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL ################################################################## # Setup @@ -28,16 +29,16 @@ 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} \ + && 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-${FECRU_VERSION}.zip \ - && rm -rfv /tmp/fecru-${FECRU_VERSION} \ + && rm -rfv /tmp/fisheye-${RELEASE}.zip \ + && rm -rfv /tmp/fecru-${RELEASE} \ && rm -rfv /var/lib/apt/lists/* \ && rm -rfv /var/cache/apt/archives/*.deb diff --git a/linux/atlassian/fisheye-crucible/latest/Makefile b/linux/atlassian/fisheye-crucible/latest/Makefile index 973415421..82c5a2de6 100644 --- a/linux/atlassian/fisheye-crucible/latest/Makefile +++ b/linux/atlassian/fisheye-crucible/latest/Makefile @@ -1,5 +1,5 @@ -all: fisheye-crucible +all: app -fisheye-crucible: - docker build --compress -t epicmorg/fisheye-crucible:latest . - docker push epicmorg/fisheye-crucible:latest \ No newline at end of file +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye-crucible/latest/README.md b/linux/atlassian/fisheye-crucible/latest/README.md deleted file mode 100644 index e06bb6d22..000000000 --- a/linux/atlassian/fisheye-crucible/latest/README.md +++ /dev/null @@ -1,110 +0,0 @@ -![Atlassian Fisheye](https://wac-cdn.atlassian.com/dam/jcr:0785bca2-a166-47ef-aeec-c657e7627af0/Fisheye@2x-blue.png?cdnVersion=363) -![Atlassian Crucible](https://wac-cdn.atlassian.com/dam/jcr:b601a46c-ece6-4cda-94ae-d95b1d94cbfd/Crucible@2x-blue.png?cdnVersion=363) - -With FishEye you can search code, visualize and report on activity and find for commits, files, revisions, or teammates across SVN, Git, Mercurial, CVS and Perforce. - -Atlassian Crucible takes the pain out of code review. Find bugs and improve code quality through peer code review from JIRA or your workflow. - -Learn more about Fisheye: [https://www.atlassian.com/software/fisheye](https://www.atlassian.com/software/fisheye) - -Learn more about Crucible: [https://www.atlassian.com/software/crucible](https://www.atlassian.com/software/crucible) - -# Overview - -This Docker container makes it easy to get an instance of Fisheye/Crucible up and running. - -# Quick Start - -For the `FISHEYE_INST` directory that is used to store the application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9. - -To get started you can use a data volume, or named volumes. In this example we'll use named volumes. - - $> docker volume create --name fecruVolume - $> docker run -v fecruVolume:/var/atlassian/application-data/fecru --name="fecru" -d -p 8060:8060 epicmorg/fisheye-crucible - - -**Success**. Fisheye/Crucible is now available on [http://localhost:8060](http://localhost:8060)* - -Please ensure your container has the necessary resources allocated to it. We recommend 1GiB of memory allocated to accommodate the application server. See [Supported Platforms](https://confluence.atlassian.com/fisheye/supported-platforms-298976955.html) for further information. - - -_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8060` instead._ - -## Memory / Heap Size - -If you need to override Fisheye/Crucible's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables. - -* `JVM_MINIMUM_MEMORY` (default: NONE) - - The minimum heap size of the JVM - -* `JVM_MAXIMUM_MEMORY` (default: 1024m) - - The maximum heap size of the JVM - - -## JVM configuration - -If you need to pass additional JVM arguments to Fisheye/Crucible, such as specifying a custom trust store, you can add them via the below environment variable - -* `FISHEYE_OPTS` - - Additional JVM arguments for Fisheye/Crucible - -* `JVM_SUPPORT_RECOMMENDED_ARGS` - - Additional JVM arguments for Fisheye/Crucible. These are appended to `FISHEYE_OPTS`; this option exists only for consistency with other Atlassian Docker images. - - -## Other configuration - -Additional configuration options are available to Fisheye/Crucible: - -* `FISHEYE_ARGS` - - The arguments which will be passed to Fisheye when it is started. You can set this to --debug, for example, or --debug-perf if you always want to have Fisheye debugging put into the Fisheye log files. See also [Command line options](https://confluence.atlassian.com/fisheye/command-line-options-298976950.html) - -* `FISHEYE_LIBRARY_PATH` - - Used to tell Fisheye where it should look to load any additional native libraries - - -Example: - - $> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/fecru/cacerts -v fecruVolume:/var/atlassian/application-data/fecru --name="fecru" -d -p 8060:8060 epicmorg/fisheye-crucible - -# Upgrade - -To upgrade to a more recent version of Fisheye/Crucible you can simply stop the `fecru` container and start a new one based on a more recent image: - - $> docker stop fecru - $> docker rm fecru - $> docker run ... (See above) - -As your data is stored in the data volume directory on the host it will still be available after the upgrade. - -_Note: Please make sure that you **don't** accidentally remove the `fecru` container and its volumes using the `-v` option._ - -# Backup - -For evaluations you can use the built-in database that will store its files in the Fisheye/Crucible home directory. In that case it is sufficient to create a backup archive of the docker volume. - -If you're using an external database, you can configure Fisheye/Crucible to make a backup automatically each night. This will back up the current state, including the database to the `fecruVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the `FISHEYE_INST` directory. - -Read more about data recovery and backups: [https://confluence.atlassian.com/fisheye/backing-up-and-restoring-fisheye-data-298976928.html](https://confluence.atlassian.com/fisheye/backing-up-and-restoring-fisheye-data-298976928.html) - -# Versioning - -The `latest` tag matches the most recent release of Atlassian Fisheye/Crucible. Thus `epicmorg/fisheye-crucible:latest` will use the newest version of Fisheye/Crucible available. - -Alternatively you can use a specific major, major.minor, or major.minor.patch version of Fisheye/Crucible by using a version number tag: - -* `epicmorg/fisheye-crucible:4` -* `epicmorg/fisheye-crucible:4.6` -* `epicmorg/fisheye-crucible:4.6.1` - -All versions from 4.0+ are available - -# Support - -This Docker container is unsupported and is intended for illustration purposes only. diff --git a/linux/atlassian/fisheye-crucible/latest/docker-compose.yml b/linux/atlassian/fisheye-crucible/latest/docker-compose.yml new file mode 100644 index 000000000..ab81bd97c --- /dev/null +++ b/linux/atlassian/fisheye-crucible/latest/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye-crucible:latest" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file