mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-24 05:35:33 +03:00
fe + cr with separated v1
This commit is contained in:
parent
5b2eaa8d50
commit
9848cea1da
3
linux/atlassian/crucible/1/1.0.3/.env
Normal file
3
linux/atlassian/crucible/1/1.0.3/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.0.3
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.0.3.zip
|
49
linux/atlassian/crucible/1/1.0.3/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.0.3/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.0.3/Makefile
Normal file
5
linux/atlassian/crucible/1/1.0.3/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.0.3/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.0.3/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.0.3/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.0.3/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.0.4/.env
Normal file
3
linux/atlassian/crucible/1/1.0.4/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.0.4
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.0.4.zip
|
49
linux/atlassian/crucible/1/1.0.4/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.0.4/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.0.4/Makefile
Normal file
5
linux/atlassian/crucible/1/1.0.4/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.0.4/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.0.4/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.0.4/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.0.4/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.0/.env
Normal file
3
linux/atlassian/crucible/1/1.0/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.0
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.0-build-223.zip
|
49
linux/atlassian/crucible/1/1.0/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.0/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.0/Makefile
Normal file
5
linux/atlassian/crucible/1/1.0/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.0/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.0/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.0/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.0/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.1.1/.env
Normal file
3
linux/atlassian/crucible/1/1.1.1/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.1.1
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.1.zip
|
49
linux/atlassian/crucible/1/1.1.1/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.1.1/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.1.1/Makefile
Normal file
5
linux/atlassian/crucible/1/1.1.1/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.1.1/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.1.1/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.1.1/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.1.1/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.1.2/.env
Normal file
3
linux/atlassian/crucible/1/1.1.2/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.1.2
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.2.zip
|
49
linux/atlassian/crucible/1/1.1.2/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.1.2/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.1.2/Makefile
Normal file
5
linux/atlassian/crucible/1/1.1.2/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.1.2/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.1.2/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.1.2/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.1.2/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.1.3/.env
Normal file
3
linux/atlassian/crucible/1/1.1.3/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.1.3
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.3.zip
|
49
linux/atlassian/crucible/1/1.1.3/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.1.3/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.1.3/Makefile
Normal file
5
linux/atlassian/crucible/1/1.1.3/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.1.3/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.1.3/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.1.3/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.1.3/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.1.4/.env
Normal file
3
linux/atlassian/crucible/1/1.1.4/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.1.4
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.4.zip
|
49
linux/atlassian/crucible/1/1.1.4/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.1.4/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.1.4/Makefile
Normal file
5
linux/atlassian/crucible/1/1.1.4/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.1.4/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.1.4/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.1.4/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.1.4/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.1/.env
Normal file
3
linux/atlassian/crucible/1/1.1/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.1
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.zip
|
49
linux/atlassian/crucible/1/1.1/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.1/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.1/Makefile
Normal file
5
linux/atlassian/crucible/1/1.1/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.1/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.1/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.1/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.1/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.2.1/.env
Normal file
3
linux/atlassian/crucible/1/1.2.1/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.2.1
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.1.zip
|
49
linux/atlassian/crucible/1/1.2.1/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.2.1/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.2.1/Makefile
Normal file
5
linux/atlassian/crucible/1/1.2.1/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.2.1/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.2.1/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.2.1/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.2.1/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.2.2/.env
Normal file
3
linux/atlassian/crucible/1/1.2.2/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.2.2
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.2.zip
|
49
linux/atlassian/crucible/1/1.2.2/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.2.2/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.2.2/Makefile
Normal file
5
linux/atlassian/crucible/1/1.2.2/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.2.2/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.2.2/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.2.2/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.2.2/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.2.3/.env
Normal file
3
linux/atlassian/crucible/1/1.2.3/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.2.3
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.3.zip
|
49
linux/atlassian/crucible/1/1.2.3/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.2.3/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.2.3/Makefile
Normal file
5
linux/atlassian/crucible/1/1.2.3/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.2.3/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.2.3/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.2.3/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.2.3/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.2/.env
Normal file
3
linux/atlassian/crucible/1/1.2/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.2
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.zip
|
49
linux/atlassian/crucible/1/1.2/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.2/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.2/Makefile
Normal file
5
linux/atlassian/crucible/1/1.2/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.2/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.2/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.2/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.2/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.5.1/.env
Normal file
3
linux/atlassian/crucible/1/1.5.1/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.5.1
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.1.zip
|
49
linux/atlassian/crucible/1/1.5.1/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.5.1/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.5.1/Makefile
Normal file
5
linux/atlassian/crucible/1/1.5.1/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.5.1/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.5.1/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.5.1/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.5.1/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.5.2/.env
Normal file
3
linux/atlassian/crucible/1/1.5.2/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.5.2
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.2.zip
|
49
linux/atlassian/crucible/1/1.5.2/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.5.2/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.5.2/Makefile
Normal file
5
linux/atlassian/crucible/1/1.5.2/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.5.2/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.5.2/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.5.2/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.5.2/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.5.3/.env
Normal file
3
linux/atlassian/crucible/1/1.5.3/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.5.3
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.3.zip
|
49
linux/atlassian/crucible/1/1.5.3/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.5.3/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.5.3/Makefile
Normal file
5
linux/atlassian/crucible/1/1.5.3/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.5.3/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.5.3/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.5.3/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.5.3/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.5.4/.env
Normal file
3
linux/atlassian/crucible/1/1.5.4/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.5.4
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.4.zip
|
49
linux/atlassian/crucible/1/1.5.4/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.5.4/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.5.4/Makefile
Normal file
5
linux/atlassian/crucible/1/1.5.4/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.5.4/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.5.4/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.5.4/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.5.4/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.5/.env
Normal file
3
linux/atlassian/crucible/1/1.5/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.5
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.zip
|
49
linux/atlassian/crucible/1/1.5/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.5/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.5/Makefile
Normal file
5
linux/atlassian/crucible/1/1.5/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.5/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.5/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.5/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.5/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.6.0/.env
Normal file
3
linux/atlassian/crucible/1/1.6.0/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.6.0
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.0.zip
|
49
linux/atlassian/crucible/1/1.6.0/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.6.0/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.6.0/Makefile
Normal file
5
linux/atlassian/crucible/1/1.6.0/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.6.0/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.6.0/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.6.0/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.6.0/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.6.0Beta1/.env
Normal file
3
linux/atlassian/crucible/1/1.6.0Beta1/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.6.0Beta1
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.0.beta1.zip
|
49
linux/atlassian/crucible/1/1.6.0Beta1/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.6.0Beta1/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.6.0Beta1/Makefile
Normal file
5
linux/atlassian/crucible/1/1.6.0Beta1/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.6.0Beta1/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.6.0Beta1/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.6.0Beta1/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.6.0Beta1/entrypoint.sh
Normal 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
|
3
linux/atlassian/crucible/1/1.6.0Beta2/.env
Normal file
3
linux/atlassian/crucible/1/1.6.0Beta2/.env
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
RELEASE=1.6.0Beta2
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.6.0.beta2.zip
|
49
linux/atlassian/crucible/1/1.6.0Beta2/Dockerfile
Normal file
49
linux/atlassian/crucible/1/1.6.0Beta2/Dockerfile
Normal 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/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", "--"]
|
5
linux/atlassian/crucible/1/1.6.0Beta2/Makefile
Normal file
5
linux/atlassian/crucible/1/1.6.0Beta2/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/atlassian/crucible/1/1.6.0Beta2/docker-compose.yml
Normal file
9
linux/atlassian/crucible/1/1.6.0Beta2/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
33
linux/atlassian/crucible/1/1.6.0Beta2/entrypoint.sh
Normal file
33
linux/atlassian/crucible/1/1.6.0Beta2/entrypoint.sh
Normal 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
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user