diff --git a/linux/atlassian/crucible/1/1.0.3/.env b/linux/atlassian/crucible/1/1.0.3/.env new file mode 100644 index 000000000..b4fcad0b7 --- /dev/null +++ b/linux/atlassian/crucible/1/1.0.3/.env @@ -0,0 +1,3 @@ + +RELEASE=1.0.3 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.0.3.zip diff --git a/linux/atlassian/crucible/1/1.0.3/Dockerfile b/linux/atlassian/crucible/1/1.0.3/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.0.3/Makefile b/linux/atlassian/crucible/1/1.0.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.0.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.0.3/docker-compose.yml b/linux/atlassian/crucible/1/1.0.3/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.0.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.0.3/entrypoint.sh b/linux/atlassian/crucible/1/1.0.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.0.4/.env b/linux/atlassian/crucible/1/1.0.4/.env new file mode 100644 index 000000000..886036292 --- /dev/null +++ b/linux/atlassian/crucible/1/1.0.4/.env @@ -0,0 +1,3 @@ + +RELEASE=1.0.4 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.0.4.zip diff --git a/linux/atlassian/crucible/1/1.0.4/Dockerfile b/linux/atlassian/crucible/1/1.0.4/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.0.4/Makefile b/linux/atlassian/crucible/1/1.0.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.0.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.0.4/docker-compose.yml b/linux/atlassian/crucible/1/1.0.4/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.0.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.0.4/entrypoint.sh b/linux/atlassian/crucible/1/1.0.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.0/.env b/linux/atlassian/crucible/1/1.0/.env new file mode 100644 index 000000000..555a888db --- /dev/null +++ b/linux/atlassian/crucible/1/1.0/.env @@ -0,0 +1,3 @@ + +RELEASE=1.0 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.0-build-223.zip diff --git a/linux/atlassian/crucible/1/1.0/Dockerfile b/linux/atlassian/crucible/1/1.0/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.0/Makefile b/linux/atlassian/crucible/1/1.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.0/docker-compose.yml b/linux/atlassian/crucible/1/1.0/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.0/entrypoint.sh b/linux/atlassian/crucible/1/1.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/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/crucible/1/1.1.1/.env b/linux/atlassian/crucible/1/1.1.1/.env new file mode 100644 index 000000000..4696e7ad0 --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.1.1 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.1.zip diff --git a/linux/atlassian/crucible/1/1.1.1/Dockerfile b/linux/atlassian/crucible/1/1.1.1/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.1.1/Makefile b/linux/atlassian/crucible/1/1.1.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.1.1/docker-compose.yml b/linux/atlassian/crucible/1/1.1.1/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.1.1/entrypoint.sh b/linux/atlassian/crucible/1/1.1.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.1.2/.env b/linux/atlassian/crucible/1/1.1.2/.env new file mode 100644 index 000000000..c7d19a235 --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.2/.env @@ -0,0 +1,3 @@ + +RELEASE=1.1.2 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.2.zip diff --git a/linux/atlassian/crucible/1/1.1.2/Dockerfile b/linux/atlassian/crucible/1/1.1.2/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.1.2/Makefile b/linux/atlassian/crucible/1/1.1.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.1.2/docker-compose.yml b/linux/atlassian/crucible/1/1.1.2/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.1.2/entrypoint.sh b/linux/atlassian/crucible/1/1.1.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.1.3/.env b/linux/atlassian/crucible/1/1.1.3/.env new file mode 100644 index 000000000..7a24531fb --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.3/.env @@ -0,0 +1,3 @@ + +RELEASE=1.1.3 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.3.zip diff --git a/linux/atlassian/crucible/1/1.1.3/Dockerfile b/linux/atlassian/crucible/1/1.1.3/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.1.3/Makefile b/linux/atlassian/crucible/1/1.1.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.1.3/docker-compose.yml b/linux/atlassian/crucible/1/1.1.3/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.1.3/entrypoint.sh b/linux/atlassian/crucible/1/1.1.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.1.4/.env b/linux/atlassian/crucible/1/1.1.4/.env new file mode 100644 index 000000000..46b605d14 --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.4/.env @@ -0,0 +1,3 @@ + +RELEASE=1.1.4 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.4.zip diff --git a/linux/atlassian/crucible/1/1.1.4/Dockerfile b/linux/atlassian/crucible/1/1.1.4/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.1.4/Makefile b/linux/atlassian/crucible/1/1.1.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.1.4/docker-compose.yml b/linux/atlassian/crucible/1/1.1.4/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.1.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.1.4/entrypoint.sh b/linux/atlassian/crucible/1/1.1.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.1/.env b/linux/atlassian/crucible/1/1.1/.env new file mode 100644 index 000000000..d42a2c90e --- /dev/null +++ b/linux/atlassian/crucible/1/1.1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.1 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.zip diff --git a/linux/atlassian/crucible/1/1.1/Dockerfile b/linux/atlassian/crucible/1/1.1/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.1/Makefile b/linux/atlassian/crucible/1/1.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.1/docker-compose.yml b/linux/atlassian/crucible/1/1.1/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.1/entrypoint.sh b/linux/atlassian/crucible/1/1.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/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/crucible/1/1.2.1/.env b/linux/atlassian/crucible/1/1.2.1/.env new file mode 100644 index 000000000..e73a23819 --- /dev/null +++ b/linux/atlassian/crucible/1/1.2.1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.2.1 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.1.zip diff --git a/linux/atlassian/crucible/1/1.2.1/Dockerfile b/linux/atlassian/crucible/1/1.2.1/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.2.1/Makefile b/linux/atlassian/crucible/1/1.2.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.2.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.2.1/docker-compose.yml b/linux/atlassian/crucible/1/1.2.1/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.2.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.2.1/entrypoint.sh b/linux/atlassian/crucible/1/1.2.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.2.2/.env b/linux/atlassian/crucible/1/1.2.2/.env new file mode 100644 index 000000000..f4ca6a51c --- /dev/null +++ b/linux/atlassian/crucible/1/1.2.2/.env @@ -0,0 +1,3 @@ + +RELEASE=1.2.2 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.2.zip diff --git a/linux/atlassian/crucible/1/1.2.2/Dockerfile b/linux/atlassian/crucible/1/1.2.2/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.2.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.2.2/Makefile b/linux/atlassian/crucible/1/1.2.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.2.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.2.2/docker-compose.yml b/linux/atlassian/crucible/1/1.2.2/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.2.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.2.2/entrypoint.sh b/linux/atlassian/crucible/1/1.2.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.2.3/.env b/linux/atlassian/crucible/1/1.2.3/.env new file mode 100644 index 000000000..f8da3d8cb --- /dev/null +++ b/linux/atlassian/crucible/1/1.2.3/.env @@ -0,0 +1,3 @@ + +RELEASE=1.2.3 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.3.zip diff --git a/linux/atlassian/crucible/1/1.2.3/Dockerfile b/linux/atlassian/crucible/1/1.2.3/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.2.3/Makefile b/linux/atlassian/crucible/1/1.2.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.2.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.2.3/docker-compose.yml b/linux/atlassian/crucible/1/1.2.3/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.2.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.2.3/entrypoint.sh b/linux/atlassian/crucible/1/1.2.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.2/.env b/linux/atlassian/crucible/1/1.2/.env new file mode 100644 index 000000000..aaba1d4a2 --- /dev/null +++ b/linux/atlassian/crucible/1/1.2/.env @@ -0,0 +1,3 @@ + +RELEASE=1.2 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.zip diff --git a/linux/atlassian/crucible/1/1.2/Dockerfile b/linux/atlassian/crucible/1/1.2/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.2/Makefile b/linux/atlassian/crucible/1/1.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.2/docker-compose.yml b/linux/atlassian/crucible/1/1.2/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.2/entrypoint.sh b/linux/atlassian/crucible/1/1.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/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/crucible/1/1.5.1/.env b/linux/atlassian/crucible/1/1.5.1/.env new file mode 100644 index 000000000..e8a6ca3e4 --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.5.1 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.1.zip diff --git a/linux/atlassian/crucible/1/1.5.1/Dockerfile b/linux/atlassian/crucible/1/1.5.1/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.5.1/Makefile b/linux/atlassian/crucible/1/1.5.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.5.1/docker-compose.yml b/linux/atlassian/crucible/1/1.5.1/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.5.1/entrypoint.sh b/linux/atlassian/crucible/1/1.5.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.5.2/.env b/linux/atlassian/crucible/1/1.5.2/.env new file mode 100644 index 000000000..6190ac222 --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.2/.env @@ -0,0 +1,3 @@ + +RELEASE=1.5.2 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.2.zip diff --git a/linux/atlassian/crucible/1/1.5.2/Dockerfile b/linux/atlassian/crucible/1/1.5.2/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.5.2/Makefile b/linux/atlassian/crucible/1/1.5.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.5.2/docker-compose.yml b/linux/atlassian/crucible/1/1.5.2/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.5.2/entrypoint.sh b/linux/atlassian/crucible/1/1.5.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.5.3/.env b/linux/atlassian/crucible/1/1.5.3/.env new file mode 100644 index 000000000..952eaa7e2 --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.3/.env @@ -0,0 +1,3 @@ + +RELEASE=1.5.3 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.3.zip diff --git a/linux/atlassian/crucible/1/1.5.3/Dockerfile b/linux/atlassian/crucible/1/1.5.3/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.5.3/Makefile b/linux/atlassian/crucible/1/1.5.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.5.3/docker-compose.yml b/linux/atlassian/crucible/1/1.5.3/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.5.3/entrypoint.sh b/linux/atlassian/crucible/1/1.5.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.5.4/.env b/linux/atlassian/crucible/1/1.5.4/.env new file mode 100644 index 000000000..c184e0b01 --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.4/.env @@ -0,0 +1,3 @@ + +RELEASE=1.5.4 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.4.zip diff --git a/linux/atlassian/crucible/1/1.5.4/Dockerfile b/linux/atlassian/crucible/1/1.5.4/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.5.4/Makefile b/linux/atlassian/crucible/1/1.5.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.5.4/docker-compose.yml b/linux/atlassian/crucible/1/1.5.4/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.5.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.5.4/entrypoint.sh b/linux/atlassian/crucible/1/1.5.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.5/.env b/linux/atlassian/crucible/1/1.5/.env new file mode 100644 index 000000000..0f80a554e --- /dev/null +++ b/linux/atlassian/crucible/1/1.5/.env @@ -0,0 +1,3 @@ + +RELEASE=1.5 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.zip diff --git a/linux/atlassian/crucible/1/1.5/Dockerfile b/linux/atlassian/crucible/1/1.5/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.5/Makefile b/linux/atlassian/crucible/1/1.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.5/docker-compose.yml b/linux/atlassian/crucible/1/1.5/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.5/entrypoint.sh b/linux/atlassian/crucible/1/1.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/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/crucible/1/1.6.0/.env b/linux/atlassian/crucible/1/1.6.0/.env new file mode 100644 index 000000000..da149cae5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.0 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.0.zip diff --git a/linux/atlassian/crucible/1/1.6.0/Dockerfile b/linux/atlassian/crucible/1/1.6.0/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.0/Makefile b/linux/atlassian/crucible/1/1.6.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.0/docker-compose.yml b/linux/atlassian/crucible/1/1.6.0/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.0/entrypoint.sh b/linux/atlassian/crucible/1/1.6.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.6.0Beta1/.env b/linux/atlassian/crucible/1/1.6.0Beta1/.env new file mode 100644 index 000000000..07ec71ef9 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0Beta1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.0Beta1 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.0.beta1.zip diff --git a/linux/atlassian/crucible/1/1.6.0Beta1/Dockerfile b/linux/atlassian/crucible/1/1.6.0Beta1/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0Beta1/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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.0Beta1/Makefile b/linux/atlassian/crucible/1/1.6.0Beta1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0Beta1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.0Beta1/docker-compose.yml b/linux/atlassian/crucible/1/1.6.0Beta1/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0Beta1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.0Beta1/entrypoint.sh b/linux/atlassian/crucible/1/1.6.0Beta1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0Beta1/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/crucible/1/1.6.0Beta2/.env b/linux/atlassian/crucible/1/1.6.0Beta2/.env new file mode 100644 index 000000000..5e27753f8 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0Beta2/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.0Beta2 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.0.beta2.zip diff --git a/linux/atlassian/crucible/1/1.6.0Beta2/Dockerfile b/linux/atlassian/crucible/1/1.6.0Beta2/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0Beta2/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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.0Beta2/Makefile b/linux/atlassian/crucible/1/1.6.0Beta2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0Beta2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.0Beta2/docker-compose.yml b/linux/atlassian/crucible/1/1.6.0Beta2/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0Beta2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.0Beta2/entrypoint.sh b/linux/atlassian/crucible/1/1.6.0Beta2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.0Beta2/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/crucible/1/1.6.1/.env b/linux/atlassian/crucible/1/1.6.1/.env new file mode 100644 index 000000000..c2bff741b --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.1 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.1.zip diff --git a/linux/atlassian/crucible/1/1.6.1/Dockerfile b/linux/atlassian/crucible/1/1.6.1/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.1/Makefile b/linux/atlassian/crucible/1/1.6.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.1/docker-compose.yml b/linux/atlassian/crucible/1/1.6.1/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.1/entrypoint.sh b/linux/atlassian/crucible/1/1.6.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.6.2.1/.env b/linux/atlassian/crucible/1/1.6.2.1/.env new file mode 100644 index 000000000..cad3b7d01 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.2.1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.2.1 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.2.1.zip diff --git a/linux/atlassian/crucible/1/1.6.2.1/Dockerfile b/linux/atlassian/crucible/1/1.6.2.1/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.2.1/Makefile b/linux/atlassian/crucible/1/1.6.2.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.2.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.2.1/docker-compose.yml b/linux/atlassian/crucible/1/1.6.2.1/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.2.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.2.1/entrypoint.sh b/linux/atlassian/crucible/1/1.6.2.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.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/crucible/1/1.6.2/.env b/linux/atlassian/crucible/1/1.6.2/.env new file mode 100644 index 000000000..8f98dad06 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.2/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.2 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.2.zip diff --git a/linux/atlassian/crucible/1/1.6.2/Dockerfile b/linux/atlassian/crucible/1/1.6.2/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.2/Makefile b/linux/atlassian/crucible/1/1.6.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.2/docker-compose.yml b/linux/atlassian/crucible/1/1.6.2/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.2/entrypoint.sh b/linux/atlassian/crucible/1/1.6.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.6.3/.env b/linux/atlassian/crucible/1/1.6.3/.env new file mode 100644 index 000000000..fad673518 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.3/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.3 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.3.zip diff --git a/linux/atlassian/crucible/1/1.6.3/Dockerfile b/linux/atlassian/crucible/1/1.6.3/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.3/Makefile b/linux/atlassian/crucible/1/1.6.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.3/docker-compose.yml b/linux/atlassian/crucible/1/1.6.3/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.3/entrypoint.sh b/linux/atlassian/crucible/1/1.6.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.6.4/.env b/linux/atlassian/crucible/1/1.6.4/.env new file mode 100644 index 000000000..ad8e970fa --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.4/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.4 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.4.zip diff --git a/linux/atlassian/crucible/1/1.6.4/Dockerfile b/linux/atlassian/crucible/1/1.6.4/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.4/Makefile b/linux/atlassian/crucible/1/1.6.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.4/docker-compose.yml b/linux/atlassian/crucible/1/1.6.4/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.4/entrypoint.sh b/linux/atlassian/crucible/1/1.6.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.6.5.a/.env b/linux/atlassian/crucible/1/1.6.5.a/.env new file mode 100644 index 000000000..c628ed5de --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5.a/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.5.a +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.5.a.zip diff --git a/linux/atlassian/crucible/1/1.6.5.a/Dockerfile b/linux/atlassian/crucible/1/1.6.5.a/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5.a/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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.5.a/Makefile b/linux/atlassian/crucible/1/1.6.5.a/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5.a/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.5.a/docker-compose.yml b/linux/atlassian/crucible/1/1.6.5.a/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5.a/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.5.a/entrypoint.sh b/linux/atlassian/crucible/1/1.6.5.a/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5.a/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/crucible/1/1.6.5/.env b/linux/atlassian/crucible/1/1.6.5/.env new file mode 100644 index 000000000..43a8e7576 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.5 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.5.zip diff --git a/linux/atlassian/crucible/1/1.6.5/Dockerfile b/linux/atlassian/crucible/1/1.6.5/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.5/Makefile b/linux/atlassian/crucible/1/1.6.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.5/docker-compose.yml b/linux/atlassian/crucible/1/1.6.5/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.5/entrypoint.sh b/linux/atlassian/crucible/1/1.6.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible/1/1.6.5a/.env b/linux/atlassian/crucible/1/1.6.5a/.env new file mode 100644 index 000000000..6070c5b66 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5a/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.5a +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.5a.zip diff --git a/linux/atlassian/crucible/1/1.6.5a/Dockerfile b/linux/atlassian/crucible/1/1.6.5a/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5a/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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.5a/Makefile b/linux/atlassian/crucible/1/1.6.5a/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5a/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.5a/docker-compose.yml b/linux/atlassian/crucible/1/1.6.5a/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5a/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.5a/entrypoint.sh b/linux/atlassian/crucible/1/1.6.5a/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.5a/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/crucible/1/1.6.6/.env b/linux/atlassian/crucible/1/1.6.6/.env new file mode 100644 index 000000000..dd85e3c14 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.6/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.6 +DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.6.zip diff --git a/linux/atlassian/crucible/1/1.6.6/Dockerfile b/linux/atlassian/crucible/1/1.6.6/Dockerfile new file mode 100644 index 000000000..3efd74f1a --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/crucible +ENV FISHEYE_INST /var/atlassian/application-data/crucible + +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/crucible-${RELEASE}.zip \ + && unzip -q /tmp/crucible-${RELEASE}.zip -d /tmp \ + && mv /tmp/crucible-${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/crucible-${RELEASE}.zip \ + && rm -rfv /tmp/crucible-${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/crucible/1/1.6.6/Makefile b/linux/atlassian/crucible/1/1.6.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/crucible/1/1.6.6/docker-compose.yml b/linux/atlassian/crucible/1/1.6.6/docker-compose.yml new file mode 100644 index 000000000..127b0dd9a --- /dev/null +++ b/linux/atlassian/crucible/1/1.6.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/crucible:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/crucible/1/1.6.6/entrypoint.sh b/linux/atlassian/crucible/1/1.6.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/crucible/1/1.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/1/1.0.1a/.env b/linux/atlassian/fisheye/1/1.0.1a/.env new file mode 100644 index 000000000..09774c7f1 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.0.1a/.env @@ -0,0 +1,3 @@ + +RELEASE=1.0.1a +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.0.1a-build-br78-94.zip diff --git a/linux/atlassian/fisheye/1/1.0.1a/Dockerfile b/linux/atlassian/fisheye/1/1.0.1a/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.0.1a/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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.0.1a/Makefile b/linux/atlassian/fisheye/1/1.0.1a/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.0.1a/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.0.1a/docker-compose.yml b/linux/atlassian/fisheye/1/1.0.1a/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.0.1a/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.0.1a/entrypoint.sh b/linux/atlassian/fisheye/1/1.0.1a/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.0.1a/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/1/1.1.3/.env b/linux/atlassian/fisheye/1/1.1.3/.env new file mode 100644 index 000000000..d77c95411 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.1.3/.env @@ -0,0 +1,3 @@ + +RELEASE=1.1.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.1.3-build-1.1-119c.zip diff --git a/linux/atlassian/fisheye/1/1.1.3/Dockerfile b/linux/atlassian/fisheye/1/1.1.3/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.1.3/Makefile b/linux/atlassian/fisheye/1/1.1.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.1.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.1.3/docker-compose.yml b/linux/atlassian/fisheye/1/1.1.3/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.1.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.1.3/entrypoint.sh b/linux/atlassian/fisheye/1/1.1.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.2.5/.env b/linux/atlassian/fisheye/1/1.2.5/.env new file mode 100644 index 000000000..fc6a9304c --- /dev/null +++ b/linux/atlassian/fisheye/1/1.2.5/.env @@ -0,0 +1,3 @@ + +RELEASE=1.2.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.2.5-build-201.zip diff --git a/linux/atlassian/fisheye/1/1.2.5/Dockerfile b/linux/atlassian/fisheye/1/1.2.5/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.2.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.2.5/Makefile b/linux/atlassian/fisheye/1/1.2.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.2.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.2.5/docker-compose.yml b/linux/atlassian/fisheye/1/1.2.5/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.2.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.2.5/entrypoint.sh b/linux/atlassian/fisheye/1/1.2.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.3.3/.env b/linux/atlassian/fisheye/1/1.3.3/.env new file mode 100644 index 000000000..c207ee032 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.3/.env @@ -0,0 +1,3 @@ + +RELEASE=1.3.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.3.zip diff --git a/linux/atlassian/fisheye/1/1.3.3/Dockerfile b/linux/atlassian/fisheye/1/1.3.3/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.3.3/Makefile b/linux/atlassian/fisheye/1/1.3.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.3.3/docker-compose.yml b/linux/atlassian/fisheye/1/1.3.3/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.3.3/entrypoint.sh b/linux/atlassian/fisheye/1/1.3.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.3.4/.env b/linux/atlassian/fisheye/1/1.3.4/.env new file mode 100644 index 000000000..ad0a606c4 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.4/.env @@ -0,0 +1,3 @@ + +RELEASE=1.3.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.4.zip diff --git a/linux/atlassian/fisheye/1/1.3.4/Dockerfile b/linux/atlassian/fisheye/1/1.3.4/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.3.4/Makefile b/linux/atlassian/fisheye/1/1.3.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.3.4/docker-compose.yml b/linux/atlassian/fisheye/1/1.3.4/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.3.4/entrypoint.sh b/linux/atlassian/fisheye/1/1.3.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.3.5/.env b/linux/atlassian/fisheye/1/1.3.5/.env new file mode 100644 index 000000000..0331f045c --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.5/.env @@ -0,0 +1,3 @@ + +RELEASE=1.3.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.5.zip diff --git a/linux/atlassian/fisheye/1/1.3.5/Dockerfile b/linux/atlassian/fisheye/1/1.3.5/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.3.5/Makefile b/linux/atlassian/fisheye/1/1.3.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.3.5/docker-compose.yml b/linux/atlassian/fisheye/1/1.3.5/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.3.5/entrypoint.sh b/linux/atlassian/fisheye/1/1.3.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.3.6/.env b/linux/atlassian/fisheye/1/1.3.6/.env new file mode 100644 index 000000000..a3ecceee1 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.6/.env @@ -0,0 +1,3 @@ + +RELEASE=1.3.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.6.zip diff --git a/linux/atlassian/fisheye/1/1.3.6/Dockerfile b/linux/atlassian/fisheye/1/1.3.6/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.3.6/Makefile b/linux/atlassian/fisheye/1/1.3.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.3.6/docker-compose.yml b/linux/atlassian/fisheye/1/1.3.6/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.3.6/entrypoint.sh b/linux/atlassian/fisheye/1/1.3.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.3.7/.env b/linux/atlassian/fisheye/1/1.3.7/.env new file mode 100644 index 000000000..a78be37ed --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.7/.env @@ -0,0 +1,3 @@ + +RELEASE=1.3.7 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.7.zip diff --git a/linux/atlassian/fisheye/1/1.3.7/Dockerfile b/linux/atlassian/fisheye/1/1.3.7/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.3.7/Makefile b/linux/atlassian/fisheye/1/1.3.7/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.7/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.3.7/docker-compose.yml b/linux/atlassian/fisheye/1/1.3.7/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.7/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.3.7/entrypoint.sh b/linux/atlassian/fisheye/1/1.3.7/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.3.8/.env b/linux/atlassian/fisheye/1/1.3.8/.env new file mode 100644 index 000000000..9070c45a9 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.8/.env @@ -0,0 +1,3 @@ + +RELEASE=1.3.8 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.3.8.zip diff --git a/linux/atlassian/fisheye/1/1.3.8/Dockerfile b/linux/atlassian/fisheye/1/1.3.8/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.3.8/Makefile b/linux/atlassian/fisheye/1/1.3.8/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.8/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.3.8/docker-compose.yml b/linux/atlassian/fisheye/1/1.3.8/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.3.8/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.3.8/entrypoint.sh b/linux/atlassian/fisheye/1/1.3.8/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.4.1/.env b/linux/atlassian/fisheye/1/1.4.1/.env new file mode 100644 index 000000000..59788e4b0 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4.1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.4.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.4.1.zip diff --git a/linux/atlassian/fisheye/1/1.4.1/Dockerfile b/linux/atlassian/fisheye/1/1.4.1/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.4.1/Makefile b/linux/atlassian/fisheye/1/1.4.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.4.1/docker-compose.yml b/linux/atlassian/fisheye/1/1.4.1/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.4.1/entrypoint.sh b/linux/atlassian/fisheye/1/1.4.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.4.2/.env b/linux/atlassian/fisheye/1/1.4.2/.env new file mode 100644 index 000000000..b23287179 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4.2/.env @@ -0,0 +1,3 @@ + +RELEASE=1.4.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.4.2.zip diff --git a/linux/atlassian/fisheye/1/1.4.2/Dockerfile b/linux/atlassian/fisheye/1/1.4.2/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.4.2/Makefile b/linux/atlassian/fisheye/1/1.4.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.4.2/docker-compose.yml b/linux/atlassian/fisheye/1/1.4.2/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.4.2/entrypoint.sh b/linux/atlassian/fisheye/1/1.4.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.4.3/.env b/linux/atlassian/fisheye/1/1.4.3/.env new file mode 100644 index 000000000..66a7ab561 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4.3/.env @@ -0,0 +1,3 @@ + +RELEASE=1.4.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.4.3.zip diff --git a/linux/atlassian/fisheye/1/1.4.3/Dockerfile b/linux/atlassian/fisheye/1/1.4.3/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.4.3/Makefile b/linux/atlassian/fisheye/1/1.4.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.4.3/docker-compose.yml b/linux/atlassian/fisheye/1/1.4.3/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.4.3/entrypoint.sh b/linux/atlassian/fisheye/1/1.4.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.4/.env b/linux/atlassian/fisheye/1/1.4/.env new file mode 100644 index 000000000..faf2bd26a --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4/.env @@ -0,0 +1,3 @@ + +RELEASE=1.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.4.zip diff --git a/linux/atlassian/fisheye/1/1.4/Dockerfile b/linux/atlassian/fisheye/1/1.4/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.4/Makefile b/linux/atlassian/fisheye/1/1.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.4/docker-compose.yml b/linux/atlassian/fisheye/1/1.4/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.4/entrypoint.sh b/linux/atlassian/fisheye/1/1.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/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/1/1.5.1/.env b/linux/atlassian/fisheye/1/1.5.1/.env new file mode 100644 index 000000000..67893f9f5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.5.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.5.1.zip diff --git a/linux/atlassian/fisheye/1/1.5.1/Dockerfile b/linux/atlassian/fisheye/1/1.5.1/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.5.1/Makefile b/linux/atlassian/fisheye/1/1.5.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.5.1/docker-compose.yml b/linux/atlassian/fisheye/1/1.5.1/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.5.1/entrypoint.sh b/linux/atlassian/fisheye/1/1.5.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.5.2/.env b/linux/atlassian/fisheye/1/1.5.2/.env new file mode 100644 index 000000000..be267994e --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.2/.env @@ -0,0 +1,3 @@ + +RELEASE=1.5.2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.5.2.zip diff --git a/linux/atlassian/fisheye/1/1.5.2/Dockerfile b/linux/atlassian/fisheye/1/1.5.2/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.5.2/Makefile b/linux/atlassian/fisheye/1/1.5.2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.5.2/docker-compose.yml b/linux/atlassian/fisheye/1/1.5.2/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.5.2/entrypoint.sh b/linux/atlassian/fisheye/1/1.5.2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.5.3/.env b/linux/atlassian/fisheye/1/1.5.3/.env new file mode 100644 index 000000000..15528b579 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.3/.env @@ -0,0 +1,3 @@ + +RELEASE=1.5.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.5.3.zip diff --git a/linux/atlassian/fisheye/1/1.5.3/Dockerfile b/linux/atlassian/fisheye/1/1.5.3/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.5.3/Makefile b/linux/atlassian/fisheye/1/1.5.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.5.3/docker-compose.yml b/linux/atlassian/fisheye/1/1.5.3/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.5.3/entrypoint.sh b/linux/atlassian/fisheye/1/1.5.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.5.4/.env b/linux/atlassian/fisheye/1/1.5.4/.env new file mode 100644 index 000000000..8e56c6a61 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.4/.env @@ -0,0 +1,3 @@ + +RELEASE=1.5.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.5.4.zip diff --git a/linux/atlassian/fisheye/1/1.5.4/Dockerfile b/linux/atlassian/fisheye/1/1.5.4/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.5.4/Makefile b/linux/atlassian/fisheye/1/1.5.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.5.4/docker-compose.yml b/linux/atlassian/fisheye/1/1.5.4/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.5.4/entrypoint.sh b/linux/atlassian/fisheye/1/1.5.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.5/.env b/linux/atlassian/fisheye/1/1.5/.env new file mode 100644 index 000000000..89f754df3 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5/.env @@ -0,0 +1,3 @@ + +RELEASE=1.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.5.zip diff --git a/linux/atlassian/fisheye/1/1.5/Dockerfile b/linux/atlassian/fisheye/1/1.5/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.5/Makefile b/linux/atlassian/fisheye/1/1.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.5/docker-compose.yml b/linux/atlassian/fisheye/1/1.5/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.5/entrypoint.sh b/linux/atlassian/fisheye/1/1.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/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/1/1.6.0/.env b/linux/atlassian/fisheye/1/1.6.0/.env new file mode 100644 index 000000000..ed3a4ed14 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.0 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.0.zip diff --git a/linux/atlassian/fisheye/1/1.6.0/Dockerfile b/linux/atlassian/fisheye/1/1.6.0/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.6.0/Makefile b/linux/atlassian/fisheye/1/1.6.0/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.6.0/docker-compose.yml b/linux/atlassian/fisheye/1/1.6.0/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.6.0/entrypoint.sh b/linux/atlassian/fisheye/1/1.6.0/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.6.0Beta1/.env b/linux/atlassian/fisheye/1/1.6.0Beta1/.env new file mode 100644 index 000000000..1ba71cecd --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0Beta1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.0Beta1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.0.beta1.zip diff --git a/linux/atlassian/fisheye/1/1.6.0Beta1/Dockerfile b/linux/atlassian/fisheye/1/1.6.0Beta1/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0Beta1/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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.6.0Beta1/Makefile b/linux/atlassian/fisheye/1/1.6.0Beta1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0Beta1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.6.0Beta1/docker-compose.yml b/linux/atlassian/fisheye/1/1.6.0Beta1/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0Beta1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.6.0Beta1/entrypoint.sh b/linux/atlassian/fisheye/1/1.6.0Beta1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0Beta1/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/1/1.6.0Beta2/.env b/linux/atlassian/fisheye/1/1.6.0Beta2/.env new file mode 100644 index 000000000..3823a8340 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0Beta2/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.0Beta2 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.0.beta2.zip diff --git a/linux/atlassian/fisheye/1/1.6.0Beta2/Dockerfile b/linux/atlassian/fisheye/1/1.6.0Beta2/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0Beta2/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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.6.0Beta2/Makefile b/linux/atlassian/fisheye/1/1.6.0Beta2/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0Beta2/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.6.0Beta2/docker-compose.yml b/linux/atlassian/fisheye/1/1.6.0Beta2/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0Beta2/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.6.0Beta2/entrypoint.sh b/linux/atlassian/fisheye/1/1.6.0Beta2/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.0Beta2/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/1/1.6.1/.env b/linux/atlassian/fisheye/1/1.6.1/.env new file mode 100644 index 000000000..fda976f9b --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.1/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.1 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.1.zip diff --git a/linux/atlassian/fisheye/1/1.6.1/Dockerfile b/linux/atlassian/fisheye/1/1.6.1/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.6.1/Makefile b/linux/atlassian/fisheye/1/1.6.1/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.1/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.6.1/docker-compose.yml b/linux/atlassian/fisheye/1/1.6.1/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.1/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.6.1/entrypoint.sh b/linux/atlassian/fisheye/1/1.6.1/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.6.3/.env b/linux/atlassian/fisheye/1/1.6.3/.env new file mode 100644 index 000000000..5af72704f --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.3/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.3 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.3.zip diff --git a/linux/atlassian/fisheye/1/1.6.3/Dockerfile b/linux/atlassian/fisheye/1/1.6.3/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.6.3/Makefile b/linux/atlassian/fisheye/1/1.6.3/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.3/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.6.3/docker-compose.yml b/linux/atlassian/fisheye/1/1.6.3/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.3/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.6.3/entrypoint.sh b/linux/atlassian/fisheye/1/1.6.3/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.6.4/.env b/linux/atlassian/fisheye/1/1.6.4/.env new file mode 100644 index 000000000..fcb63d5f1 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.4/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.4 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.4.zip diff --git a/linux/atlassian/fisheye/1/1.6.4/Dockerfile b/linux/atlassian/fisheye/1/1.6.4/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.6.4/Makefile b/linux/atlassian/fisheye/1/1.6.4/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.4/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.6.4/docker-compose.yml b/linux/atlassian/fisheye/1/1.6.4/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.4/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.6.4/entrypoint.sh b/linux/atlassian/fisheye/1/1.6.4/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.6.5.a/.env b/linux/atlassian/fisheye/1/1.6.5.a/.env new file mode 100644 index 000000000..8f5135811 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5.a/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.5.a +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.5.a.zip diff --git a/linux/atlassian/fisheye/1/1.6.5.a/Dockerfile b/linux/atlassian/fisheye/1/1.6.5.a/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5.a/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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.6.5.a/Makefile b/linux/atlassian/fisheye/1/1.6.5.a/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5.a/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.6.5.a/docker-compose.yml b/linux/atlassian/fisheye/1/1.6.5.a/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5.a/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.6.5.a/entrypoint.sh b/linux/atlassian/fisheye/1/1.6.5.a/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5.a/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/1/1.6.5/.env b/linux/atlassian/fisheye/1/1.6.5/.env new file mode 100644 index 000000000..1adbea3a2 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.5 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.5.zip diff --git a/linux/atlassian/fisheye/1/1.6.5/Dockerfile b/linux/atlassian/fisheye/1/1.6.5/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.6.5/Makefile b/linux/atlassian/fisheye/1/1.6.5/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.6.5/docker-compose.yml b/linux/atlassian/fisheye/1/1.6.5/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.6.5/entrypoint.sh b/linux/atlassian/fisheye/1/1.6.5/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/1/1.6.5a/.env b/linux/atlassian/fisheye/1/1.6.5a/.env new file mode 100644 index 000000000..d857ee4cb --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5a/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.5a +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.5a.zip diff --git a/linux/atlassian/fisheye/1/1.6.5a/Dockerfile b/linux/atlassian/fisheye/1/1.6.5a/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5a/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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.6.5a/Makefile b/linux/atlassian/fisheye/1/1.6.5a/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5a/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.6.5a/docker-compose.yml b/linux/atlassian/fisheye/1/1.6.5a/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5a/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.6.5a/entrypoint.sh b/linux/atlassian/fisheye/1/1.6.5a/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.5a/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/1/1.6.6/.env b/linux/atlassian/fisheye/1/1.6.6/.env new file mode 100644 index 000000000..f68a90347 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.6/.env @@ -0,0 +1,3 @@ + +RELEASE=1.6.6 +DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-1.6.6.zip diff --git a/linux/atlassian/fisheye/1/1.6.6/Dockerfile b/linux/atlassian/fisheye/1/1.6.6/Dockerfile new file mode 100644 index 000000000..426636d79 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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/fisheye +ENV FISHEYE_INST /var/atlassian/application-data/fisheye + +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/fisheye-${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/fisheye-${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/1/1.6.6/Makefile b/linux/atlassian/fisheye/1/1.6.6/Makefile new file mode 100644 index 000000000..82c5a2de6 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.6/Makefile @@ -0,0 +1,5 @@ +all: app + +app: + docker-compose build --compress + docker-compose push diff --git a/linux/atlassian/fisheye/1/1.6.6/docker-compose.yml b/linux/atlassian/fisheye/1/1.6.6/docker-compose.yml new file mode 100644 index 000000000..a49525ebf --- /dev/null +++ b/linux/atlassian/fisheye/1/1.6.6/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.9' +services: + app: + image: "epicmorg/fisheye:${RELEASE}" + build: + context: . + args: + RELEASE: ${RELEASE} + DOWNLOAD_URL: ${DOWNLOAD_URL} \ No newline at end of file diff --git a/linux/atlassian/fisheye/1/1.6.6/entrypoint.sh b/linux/atlassian/fisheye/1/1.6.6/entrypoint.sh new file mode 100644 index 000000000..5559ebcb5 --- /dev/null +++ b/linux/atlassian/fisheye/1/1.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