fisheye-crucible release

This commit is contained in:
stam 2021-05-19 03:11:06 +03:00
parent fd524c76a8
commit 03195d06b5
934 changed files with 18544 additions and 122 deletions

View File

@ -3,6 +3,7 @@
* `may`
* @kasthack was wrote docker-template generator for atlassian products
* was regenerated and updated *all* `jira` images with `5`, `6`, `7` and `8` versions.
* was regenerated and updated *all* `fisheye-crucible` images with `2`, `3` and `4` versions.
* all actual download links was get from [EpicMorg/atlassian-json](https://github.com/EpicMorg/atlassian-json) repo.
* asap will be updated and added all additional `atlassian` images.
* `april`

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk8
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk8
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.0.B3
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.0.B3.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.0.RC1
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.0.RC1.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.0.RC2
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.0.RC2.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.0.RC3
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.0.RC3.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.0
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.0.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.1
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.1.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.2
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.2.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.3
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.3.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.4
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.4.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.5
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.5.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.0.6
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.0.6.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.1.0.M2cc
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.0.M2cc.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.1.0.RC1
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.0.RC1.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.1.0
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.0.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.1.1
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.1.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.1.2
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.2.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.1.3
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.3.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,5 @@
all: app
app:
docker-compose build --compress
docker-compose push

View File

@ -0,0 +1,9 @@
version: '3.9'
services:
app:
image: "epicmorg/fisheye-crucible:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -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

View File

@ -0,0 +1,3 @@
RELEASE=2.1.4
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.1.4.zip

View File

@ -0,0 +1,49 @@
FROM epicmorg/prod:jdk7
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
#configured by dockerfile / .ENV
ARG RELEASE
ARG DOWNLOAD_URL
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
ENV FISHEYE_HOME /opt/atlassian/fecru
ENV FISHEYE_INST /var/atlassian/application-data/fecru
VOLUME ["${FISHEYE_INST}"]
WORKDIR $FISHEYE_INST
# Expose HTTP port
EXPOSE 8060
##################################################################
# Installing
##################################################################
RUN mkdir -p ${FISHEYE_HOME} \
&& wget -nv --random-wait -c ${DOWNLOAD_URL} -O /tmp/fisheye-${RELEASE}.zip \
&& unzip -q /tmp/fisheye-${RELEASE}.zip -d /tmp \
&& mv /tmp/fecru-${RELEASE}/* ${FISHEYE_HOME} \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME} \
&& chmod +x /usr/bin/p4 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rfv /tmp/fisheye-${RELEASE}.zip \
&& rm -rfv /tmp/fecru-${RELEASE} \
&& rm -rfv /var/lib/apt/lists/* \
&& rm -rfv /var/cache/apt/archives/*.deb
COPY entrypoint.sh /entrypoint.sh
COPY . /tmp
CMD ["/entrypoint.sh", "run"]
ENTRYPOINT ["/usr/bin/tini", "--"]

Some files were not shown because too many files have changed in this diff Show More