mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2025-04-29 16:39:26 +03:00
april update pack 14
This commit is contained in:
commit
794673b8b5
@ -11,15 +11,10 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
version: [
|
||||
'1.3',
|
||||
'1.3.2',
|
||||
'1.3.3',
|
||||
'1.4',
|
||||
'1.4.2',
|
||||
'1.4.3',
|
||||
'1.4.4',
|
||||
'1.4.7',
|
||||
'1.4.8',
|
||||
'1.5',
|
||||
'1.5.1',
|
||||
'1.5.2',
|
||||
|
108
.github/workflows/epicmorg.ecosystem.images.atlassian.crucible.01.yml
vendored
Normal file
108
.github/workflows/epicmorg.ecosystem.images.atlassian.crucible.01.yml
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
name: EpicMorg Atlassian Crucible 01 Images
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
build-images:
|
||||
name: Atlassian Crucible ${{ matrix.version }} Image
|
||||
runs-on: [ ubuntu-24.04 ]
|
||||
strategy:
|
||||
matrix:
|
||||
version: [
|
||||
'1.0-build-223',
|
||||
'1.1',
|
||||
'1.0.3',
|
||||
'1.0.4',
|
||||
'1.1.1',
|
||||
'1.1.2',
|
||||
'1.1.3',
|
||||
'1.1.4',
|
||||
'1.2',
|
||||
'1.2.1',
|
||||
'1.2.2',
|
||||
'1.2.3',
|
||||
'1.5',
|
||||
'1.5.1',
|
||||
'1.5.2',
|
||||
'1.5.3',
|
||||
'1.5.4',
|
||||
'1.6.0',
|
||||
'1.6.0Beta1',
|
||||
'1.6.0Beta2',
|
||||
'1.6.1',
|
||||
'1.6.2',
|
||||
'1.6.2.1',
|
||||
'1.6.3',
|
||||
'1.6.4',
|
||||
'1.6.5',
|
||||
'1.6.5.a',
|
||||
'1.6.5a',
|
||||
'1.6.6',
|
||||
]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
clean: true
|
||||
show-progress: true
|
||||
submodules: true
|
||||
|
||||
- name: Log into docker registry
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
retry_wait_seconds: 45
|
||||
timeout_minutes: 600
|
||||
max_attempts: 15
|
||||
command: echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin
|
||||
|
||||
- name: Log into Quay.IO registry
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
retry_wait_seconds: 45
|
||||
timeout_minutes: 600
|
||||
max_attempts: 15
|
||||
command: echo "${{ secrets.QUAY_SERVER_KEY }}" | docker login -u "${{ secrets.QUAY_SERVER_LOGIN }}" --password-stdin "${{ secrets.QUAY_SERVER_URL }}"
|
||||
|
||||
- name: Check buildah
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
retry_wait_seconds: 45
|
||||
timeout_minutes: 600
|
||||
max_attempts: 15
|
||||
command: buildah --version
|
||||
|
||||
- name: Test Make
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
retry_wait_seconds: 45
|
||||
timeout_minutes: 600
|
||||
max_attempts: 15
|
||||
command: make
|
||||
|
||||
- name: Install requirements.txt
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
retry_wait_seconds: 45
|
||||
timeout_minutes: 600
|
||||
max_attempts: 15
|
||||
command: make pip
|
||||
|
||||
- name: "Build and Deploy Atlassian crucible ${{ matrix.version }} Image:"
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
retry_wait_seconds: 45
|
||||
timeout_minutes: 600
|
||||
max_attempts: 15
|
||||
command: cd linux/ecosystem/atlassian/crucible/1/${{ matrix.version }} && pwd && make build && make deploy
|
||||
|
||||
##################################################################################
|
||||
|
||||
- name: Cleanup
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
retry_wait_seconds: 45
|
||||
timeout_minutes: 600
|
||||
max_attempts: 15
|
||||
command: make clean
|
@ -3,6 +3,7 @@
|
||||
## 2025
|
||||
|
||||
* `apr`
|
||||
* added `crucible` images to `gha`.
|
||||
* added `GitHub Actions` to `Bitbucket` images.
|
||||
* added new `telegram` `bot` with `quotes`.
|
||||
* updated `cassandra`
|
||||
|
3
Makefile
3
Makefile
@ -38,6 +38,9 @@ ansible.gen.confluence:
|
||||
ansible.gen.crowd:
|
||||
cd `pwd`/bin/ansible && ansible-playbook ./generate.crowd.yml
|
||||
|
||||
ansible.gen.crucible:
|
||||
cd `pwd`/bin/ansible && ansible-playbook ./generate.crucible.yml
|
||||
|
||||
ansible.gen.bitbucket:
|
||||
cd `pwd`/bin/ansible && ansible-playbook ./generate.bitbucket.yml
|
||||
|
||||
|
21
bin/ansible/generate.crucible.yml
Normal file
21
bin/ansible/generate.crucible.yml
Normal file
@ -0,0 +1,21 @@
|
||||
- name: Clear log file before write new stdout to it at this session
|
||||
hosts: localhost
|
||||
connection: local
|
||||
tasks:
|
||||
- name: echo -n > output.log
|
||||
shell: echo -n > output.log
|
||||
|
||||
- name: Lets Go!
|
||||
hosts: localhost
|
||||
connection: local
|
||||
tasks:
|
||||
- name: Create directory for ansible custom facts
|
||||
debug:
|
||||
msg: "[ Python: {{ ansible_facts['python_version'] }}, OS: {{ ansible_facts['distribution'] }} {{ ansible_facts['distribution_version'] }} ({{ansible_architecture }}), Ansible: {{ ansible_version.full }}]"
|
||||
|
||||
- name: Generate Crucible images
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: false
|
||||
roles:
|
||||
- atlassian.crucible
|
2
linux/ecosystem/atlassian/crucible/templates/1/entrypoint.sh → bin/ansible/roles/atlassian.crucible/files/entrypoint.sh
Executable file → Normal file
2
linux/ecosystem/atlassian/crucible/templates/1/entrypoint.sh → bin/ansible/roles/atlassian.crucible/files/entrypoint.sh
Executable file → Normal file
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
@ -0,0 +1,52 @@
|
||||
- name: Read versions from file
|
||||
slurp:
|
||||
src: "roles/common/files/versions/crucible/1.jdk6.txt"
|
||||
register: version_output
|
||||
|
||||
- name: Set version variable
|
||||
set_fact:
|
||||
crucible_versions: "{{ version_output['content'] | b64decode | trim | split('\n') }}"
|
||||
|
||||
- name: Create directories for Crowd versions
|
||||
file:
|
||||
path: "{{ target_directory_crucible_1 }}/{{ item }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
force: true
|
||||
with_items: "{{ crucible_versions }}"
|
||||
|
||||
- name: Copy .env with link from template to each version directory
|
||||
template:
|
||||
src: "env/template.env.j2"
|
||||
dest: "{{ target_directory_crucible_1 }}/{{ item }}/.env"
|
||||
force: true
|
||||
with_items: "{{ crucible_versions }}"
|
||||
|
||||
- name: Copy docker-compose.yml from template to each version directory
|
||||
template:
|
||||
src: "docker-compose/template.docker-compose.jdk6.yml.j2"
|
||||
dest: "{{ target_directory_crucible_1 }}/{{ item }}/docker-compose.yml"
|
||||
force: true
|
||||
with_items: "{{ crucible_versions }}"
|
||||
|
||||
- name: Copy Dockerfile from template to each version directory
|
||||
template:
|
||||
src: "dockerfile/template.Dockerfile.jdk6.j2"
|
||||
dest: "{{ target_directory_crucible_1 }}/{{ item }}/Dockerfile"
|
||||
force: true
|
||||
with_items: "{{ crucible_versions }}"
|
||||
|
||||
- name: Copy entrypoint.sh from 'files' directory to each version directory
|
||||
copy:
|
||||
src: "entrypoint.sh"
|
||||
dest: "{{ target_directory_crucible_1 }}/{{ item }}/entrypoint.sh"
|
||||
mode: "0777"
|
||||
force: true
|
||||
with_items: "{{ crucible_versions }}"
|
||||
|
||||
- name: Copy Makefile from 'files' directory to each version directory
|
||||
copy:
|
||||
src: "Makefile"
|
||||
dest: "{{ target_directory_crucible_1 }}/{{ item }}/Makefile"
|
||||
force: true
|
||||
with_items: "{{ crucible_versions }}"
|
2
bin/ansible/roles/atlassian.crucible/tasks/main.yml
Normal file
2
bin/ansible/roles/atlassian.crucible/tasks/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
- name: "Generate images for Crucible 1 (jdk16)"
|
||||
import_tasks: atlassian.crucible.1.jdk6.yml
|
@ -0,0 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:{{ item }}"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:{{ item }}-jdk6"
|
||||
build:
|
||||
context: .
|
@ -0,0 +1,65 @@
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE={{ item }}
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
##################################################################
|
||||
ENV RUN_USER daemon
|
||||
ENV RUN_GROUP daemon
|
||||
|
||||
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
|
||||
# Expose HTTP port
|
||||
EXPOSE 8060
|
||||
|
||||
##################################################################
|
||||
# Installing
|
||||
##################################################################
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
CMD ["/entrypoint.sh", "run"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
3
bin/ansible/roles/atlassian.crucible/templates/env/template.env.j2
vendored
Normal file
3
bin/ansible/roles/atlassian.crucible/templates/env/template.env.j2
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
RELEASE={{ item }}
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
2
bin/ansible/roles/atlassian.crucible/vars/main.yml
Normal file
2
bin/ansible/roles/atlassian.crucible/vars/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
# Defaults
|
||||
target_directory_crucible_1: "/opt/tmp/crucible/1"
|
@ -1,4 +1,4 @@
|
||||
1.0
|
||||
1.0-build-223
|
||||
1.1
|
||||
1.0.3
|
||||
1.0.4
|
@ -1,90 +0,0 @@
|
||||
2.0.0
|
||||
2.0.0.B3
|
||||
2.0.0.RC1
|
||||
2.0.0.RC2
|
||||
2.0.0.RC3
|
||||
2.0.1
|
||||
2.0.2
|
||||
2.0.3
|
||||
2.0.4
|
||||
2.0.5
|
||||
2.0.6
|
||||
2.1.0
|
||||
2.1.0.M2cc
|
||||
2.1.0.RC1
|
||||
2.1.1
|
||||
2.1.2
|
||||
2.1.3
|
||||
2.1.4
|
||||
2.2.0
|
||||
2.2.1
|
||||
2.2.3
|
||||
2.3.0
|
||||
2.3.1
|
||||
2.3.2
|
||||
2.3.3
|
||||
2.3.4
|
||||
2.3.5
|
||||
2.3.6
|
||||
2.3.7
|
||||
2.3.8
|
||||
2.4.0
|
||||
2.4.1
|
||||
2.4.2
|
||||
2.4.3
|
||||
2.4.4
|
||||
2.4.5
|
||||
2.4.6
|
||||
2.5.0
|
||||
2.5.1
|
||||
2.5.2
|
||||
2.5.3
|
||||
2.5.4
|
||||
2.5.5
|
||||
2.5.6
|
||||
2.5.7
|
||||
2.5.8
|
||||
2.5.9
|
||||
2.6.0
|
||||
2.6.1
|
||||
2.6.2
|
||||
2.6.3
|
||||
2.6.4
|
||||
2.6.5
|
||||
2.6.6
|
||||
2.6.7
|
||||
2.6.8
|
||||
2.6.9
|
||||
2.7.0
|
||||
2.7.0-EAP-2
|
||||
2.7.1
|
||||
2.7.2
|
||||
2.7.3
|
||||
2.7.4
|
||||
2.7.5
|
||||
2.7.6
|
||||
2.7.7
|
||||
2.7.8
|
||||
2.7.9
|
||||
2.7.10
|
||||
2.7.11
|
||||
2.7.12
|
||||
2.7.13
|
||||
2.7.14
|
||||
2.7.15
|
||||
2.8.0
|
||||
2.8.0-m1
|
||||
2.8.1
|
||||
2.8.2
|
||||
2.9.0
|
||||
2.9.1
|
||||
2.9.2
|
||||
2.10.0
|
||||
2.10.1
|
||||
2.10.2
|
||||
2.10.3
|
||||
2.10.4
|
||||
2.10.5
|
||||
2.10.6
|
||||
2.10.7
|
||||
2.10.8
|
@ -1,52 +0,0 @@
|
||||
3.0.0
|
||||
3.0.1
|
||||
3.0.2
|
||||
3.0.3
|
||||
3.0.4
|
||||
3.1.0
|
||||
3.1.1
|
||||
3.1.2
|
||||
3.1.3
|
||||
3.1.4
|
||||
3.1.5
|
||||
3.1.6
|
||||
3.1.7
|
||||
3.2.0
|
||||
3.2.1
|
||||
3.2.2
|
||||
3.2.3
|
||||
3.2.4
|
||||
3.2.5
|
||||
3.3.0
|
||||
3.3.1
|
||||
3.3.2
|
||||
3.3.3
|
||||
3.3.4
|
||||
3.4.0
|
||||
3.4.3
|
||||
3.4.4
|
||||
3.4.5
|
||||
3.4.6
|
||||
3.4.7
|
||||
3.5.0
|
||||
3.5.1
|
||||
3.5.2
|
||||
3.5.3
|
||||
3.5.4
|
||||
3.5.5
|
||||
3.6.0
|
||||
3.6.1
|
||||
3.6.2
|
||||
3.6.3
|
||||
3.6.4
|
||||
3.7.0
|
||||
3.7.1
|
||||
3.8.0
|
||||
3.8.1
|
||||
3.9.0
|
||||
3.9.1
|
||||
3.9.2
|
||||
3.10.1
|
||||
3.10.2
|
||||
3.10.3
|
||||
3.10.4
|
@ -1,51 +0,0 @@
|
||||
4.0.2
|
||||
4.0.3
|
||||
4.0.4
|
||||
4.1.0
|
||||
4.1.1
|
||||
4.1.2
|
||||
4.1.3
|
||||
4.2.0
|
||||
4.2.1
|
||||
4.2.2
|
||||
4.2.3
|
||||
4.3.0
|
||||
4.3.1
|
||||
4.3.2
|
||||
4.3.3
|
||||
4.4.0
|
||||
4.4.1
|
||||
4.4.2
|
||||
4.4.3
|
||||
4.4.5
|
||||
4.4.6
|
||||
4.4.7
|
||||
4.5.0
|
||||
4.5.1
|
||||
4.5.2
|
||||
4.5.3
|
||||
4.5.4
|
||||
4.6.0
|
||||
4.6.1
|
||||
4.7.0
|
||||
4.7.1
|
||||
4.7.2
|
||||
4.7.3
|
||||
4.8.0
|
||||
4.8.1
|
||||
4.8.2
|
||||
4.8.3
|
||||
4.8.4
|
||||
4.8.5
|
||||
4.8.6
|
||||
4.8.7
|
||||
4.8.8
|
||||
4.8.9
|
||||
4.8.10
|
||||
4.8.11
|
||||
4.8.12
|
||||
4.8.13
|
||||
4.8.14
|
||||
4.8.15
|
||||
4.8.16
|
||||
4.9.0
|
@ -36,11 +36,10 @@ RUN apt-get update && \
|
||||
apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${CROWD_INSTALL_DIR} ${CROWD_DB} /opt/atlassian/support /opt/atlassian/etc && \
|
||||
tar -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
tar --ignore-zeros -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
sed -i -e '2s/^exec/cd "`dirname "$0"`" \&\& exec/' ${CROWD_INSTALL_DIR}/start_crowd.sh && \
|
||||
sed -i -e 's#exec "$PRGDIR"/"$EXECUTABLE" start "$@"#exec "$PRGDIR"/"$EXECUTABLE" run "$@"#g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/startup.sh && \
|
||||
sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
# sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
# sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
|
@ -36,11 +36,10 @@ RUN apt-get update && \
|
||||
apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${CROWD_INSTALL_DIR} ${CROWD_DB} /opt/atlassian/support /opt/atlassian/etc && \
|
||||
tar -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
tar --ignore-zeros -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
sed -i -e '2s/^exec/cd "`dirname "$0"`" \&\& exec/' ${CROWD_INSTALL_DIR}/start_crowd.sh && \
|
||||
sed -i -e 's#exec "$PRGDIR"/"$EXECUTABLE" start "$@"#exec "$PRGDIR"/"$EXECUTABLE" run "$@"#g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/startup.sh && \
|
||||
sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
# sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
# sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
|
@ -36,11 +36,10 @@ RUN apt-get update && \
|
||||
apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${CROWD_INSTALL_DIR} ${CROWD_DB} /opt/atlassian/support /opt/atlassian/etc && \
|
||||
tar -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
tar --ignore-zeros -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
sed -i -e '2s/^exec/cd "`dirname "$0"`" \&\& exec/' ${CROWD_INSTALL_DIR}/start_crowd.sh && \
|
||||
sed -i -e 's#exec "$PRGDIR"/"$EXECUTABLE" start "$@"#exec "$PRGDIR"/"$EXECUTABLE" run "$@"#g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/startup.sh && \
|
||||
sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
# sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
# sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
|
@ -36,11 +36,10 @@ RUN apt-get update && \
|
||||
apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${CROWD_INSTALL_DIR} ${CROWD_DB} /opt/atlassian/support /opt/atlassian/etc && \
|
||||
tar -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
tar --ignore-zeros -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
sed -i -e '2s/^exec/cd "`dirname "$0"`" \&\& exec/' ${CROWD_INSTALL_DIR}/start_crowd.sh && \
|
||||
sed -i -e 's#exec "$PRGDIR"/"$EXECUTABLE" start "$@"#exec "$PRGDIR"/"$EXECUTABLE" run "$@"#g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/startup.sh && \
|
||||
sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
# sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
# sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
|
@ -36,11 +36,10 @@ RUN apt-get update && \
|
||||
apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${CROWD_INSTALL_DIR} ${CROWD_DB} /opt/atlassian/support /opt/atlassian/etc && \
|
||||
tar -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
tar --ignore-zeros -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
sed -i -e '2s/^exec/cd "`dirname "$0"`" \&\& exec/' ${CROWD_INSTALL_DIR}/start_crowd.sh && \
|
||||
sed -i -e 's#exec "$PRGDIR"/"$EXECUTABLE" start "$@"#exec "$PRGDIR"/"$EXECUTABLE" run "$@"#g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/startup.sh && \
|
||||
sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
# sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
# sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
|
@ -36,11 +36,10 @@ RUN apt-get update && \
|
||||
apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${CROWD_INSTALL_DIR} ${CROWD_DB} /opt/atlassian/support /opt/atlassian/etc && \
|
||||
tar -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
tar --ignore-zeros -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
sed -i -e '2s/^exec/cd "`dirname "$0"`" \&\& exec/' ${CROWD_INSTALL_DIR}/start_crowd.sh && \
|
||||
sed -i -e 's#exec "$PRGDIR"/"$EXECUTABLE" start "$@"#exec "$PRGDIR"/"$EXECUTABLE" run "$@"#g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/startup.sh && \
|
||||
sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
# sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
# sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
|
@ -1,3 +0,0 @@
|
||||
RELEASE=1.4.8
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crowd/downloads/binary/atlassian-crowd-${RELEASE}.tar.gz
|
||||
TEMP_ARCHIVE=/tmp/atlassian-crowd-${RELEASE}.tar.gz
|
@ -1,87 +0,0 @@
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crowd Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE=1.4.8
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crowd/downloads/binary/atlassian-crowd-${RELEASE}.tar.gz
|
||||
ARG TEMP_ARCHIVE=/tmp/atlassian-crowd-${RELEASE}.tar.gz
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
##################################################################
|
||||
ENV RUN_USER daemon
|
||||
ENV RUN_GROUP daemon
|
||||
ENV APP_NAME crowd
|
||||
|
||||
#2004
|
||||
#ENV RUN_UID 0
|
||||
#ENV RUN_GID 0
|
||||
|
||||
# https://confluence.atlassian.com/crowd/important-directories-and-files-78676537.html
|
||||
ENV CROWD_HOME /var/atlassian/application-data/crowd
|
||||
ENV CROWD_INSTALL_DIR /opt/atlassian/crowd
|
||||
ENV CROWD_DB ${CROWD_INSTALL_DIR}/database
|
||||
|
||||
##################################################################
|
||||
# Installing
|
||||
##################################################################
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y --no-install-recommends fontconfig python3 python3-jinja2 tini && \
|
||||
apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${CROWD_INSTALL_DIR} ${CROWD_DB} /opt/atlassian/support /opt/atlassian/etc && \
|
||||
tar -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
sed -i -e '2s/^exec/cd "`dirname "$0"`" \&\& exec/' ${CROWD_INSTALL_DIR}/start_crowd.sh && \
|
||||
sed -i -e 's#exec "$PRGDIR"/"$EXECUTABLE" start "$@"#exec "$PRGDIR"/"$EXECUTABLE" run "$@"#g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/startup.sh && \
|
||||
sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
#COPY shutdown-wait.sh /
|
||||
#COPY shared-components/image/entrypoint_helpers.py /
|
||||
#COPY shared-components/support /opt/atlassian/support
|
||||
#COPY config/* /opt/atlassian/etc/
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
# chmod +x /entrypoint.py && \
|
||||
# chmod +x /shutdown-wait.sh && \
|
||||
# chmod +x /entrypoint_helpers.py && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${CROWD_INSTALL_DIR}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
# Expose HTTP port
|
||||
EXPOSE 8095
|
||||
|
||||
VOLUME ["${CROWD_HOME}"] # Must be declared after setting perms
|
||||
VOLUME ["${CROWD_DB}"] # Must be declared after setting perms
|
||||
WORKDIR ${CROWD_HOME}
|
||||
|
||||
CMD ["/entrypoint.sh", "-fg"]
|
||||
#CMD ["/entrypoint.py"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||
|
||||
RUN updatedb
|
@ -1,87 +0,0 @@
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk7
|
||||
LABEL maintainer="Atlassian Crowd Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE=1.4.8
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crowd/downloads/binary/atlassian-crowd-${RELEASE}.tar.gz
|
||||
ARG TEMP_ARCHIVE=/tmp/atlassian-crowd-${RELEASE}.tar.gz
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
##################################################################
|
||||
ENV RUN_USER daemon
|
||||
ENV RUN_GROUP daemon
|
||||
ENV APP_NAME crowd
|
||||
|
||||
#2004
|
||||
#ENV RUN_UID 0
|
||||
#ENV RUN_GID 0
|
||||
|
||||
# https://confluence.atlassian.com/crowd/important-directories-and-files-78676537.html
|
||||
ENV CROWD_HOME /var/atlassian/application-data/crowd
|
||||
ENV CROWD_INSTALL_DIR /opt/atlassian/crowd
|
||||
ENV CROWD_DB ${CROWD_INSTALL_DIR}/database
|
||||
|
||||
##################################################################
|
||||
# Installing
|
||||
##################################################################
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y --no-install-recommends fontconfig python3 python3-jinja2 tini && \
|
||||
apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${CROWD_INSTALL_DIR} ${CROWD_DB} /opt/atlassian/support /opt/atlassian/etc && \
|
||||
tar -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
sed -i -e '2s/^exec/cd "`dirname "$0"`" \&\& exec/' ${CROWD_INSTALL_DIR}/start_crowd.sh && \
|
||||
sed -i -e 's#exec "$PRGDIR"/"$EXECUTABLE" start "$@"#exec "$PRGDIR"/"$EXECUTABLE" run "$@"#g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/startup.sh && \
|
||||
sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
#COPY shutdown-wait.sh /
|
||||
#COPY shared-components/image/entrypoint_helpers.py /
|
||||
#COPY shared-components/support /opt/atlassian/support
|
||||
#COPY config/* /opt/atlassian/etc/
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
# chmod +x /entrypoint.py && \
|
||||
# chmod +x /shutdown-wait.sh && \
|
||||
# chmod +x /entrypoint_helpers.py && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${CROWD_INSTALL_DIR}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
# Expose HTTP port
|
||||
EXPOSE 8095
|
||||
|
||||
VOLUME ["${CROWD_HOME}"] # Must be declared after setting perms
|
||||
VOLUME ["${CROWD_DB}"] # Must be declared after setting perms
|
||||
WORKDIR ${CROWD_HOME}
|
||||
|
||||
CMD ["/entrypoint.sh", "-fg"]
|
||||
#CMD ["/entrypoint.py"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||
|
||||
RUN updatedb
|
@ -1,311 +0,0 @@
|
||||

|
||||
|
||||
Crowd provides single sign-on and user identity that's easy to use.
|
||||
|
||||
Learn more about Crowd: [https://www.atlassian.com/software/crowd][1]
|
||||
|
||||
# Contents
|
||||
|
||||
[TOC]
|
||||
|
||||
# Overview
|
||||
|
||||
This Docker container makes it easy to get an instance of Crowd up and running.
|
||||
|
||||
Note: ** Use docker version >= 20.10.10 **
|
||||
|
||||
# Quick Start
|
||||
|
||||
For the `CROWD_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume.
|
||||
|
||||
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||
|
||||
docker volume create --name crowdVolume
|
||||
docker run -v crowdVolume:/var/atlassian/application-data/crowd --name="crowd" -d -p 8095:8095 atlassian/crowd
|
||||
|
||||
|
||||
**Success**. Crowd is now available on [http://localhost:8095](http://localhost:8095)*
|
||||
|
||||
Please ensure your container has the necessary resources allocated to it. See [Supported Platforms][2] for further information.
|
||||
|
||||
|
||||
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8095` instead._
|
||||
|
||||
## Memory / Heap Size
|
||||
|
||||
If you need to override Crowd's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||
|
||||
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||
|
||||
The minimum heap size of the JVM
|
||||
|
||||
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||
|
||||
The maximum heap size of the JVM
|
||||
|
||||
## Reverse Proxy Settings
|
||||
|
||||
If Crowd is run behind a reverse proxy server as [described here][3], then you need to specify extra options to make Crowd aware of the setup. They can be controlled via the below environment variables.
|
||||
|
||||
* `ATL_PROXY_NAME` (default: NONE)
|
||||
|
||||
The reverse proxy's fully qualified hostname. `CATALINA_CONNECTOR_PROXYNAME`
|
||||
is also supported for backwards compatability.
|
||||
|
||||
* `ATL_PROXY_PORT` (default: NONE)
|
||||
|
||||
The reverse proxy's port number via which Crowd is
|
||||
accessed. `CATALINA_CONNECTOR_PROXYPORT` is also supported for backwards
|
||||
compatability.
|
||||
|
||||
* `ATL_TOMCAT_PORT` (default: 8095)
|
||||
|
||||
The port for Tomcat/Crowd to listen on. Depending on your container
|
||||
deployment method this port may need to be
|
||||
[exposed and published][docker-expose].
|
||||
|
||||
* `ATL_TOMCAT_SCHEME` (default: http)
|
||||
|
||||
The protocol via which Crowd is accessed. `CATALINA_CONNECTOR_SCHEME` is also
|
||||
supported for backwards compatability.
|
||||
|
||||
* `ATL_TOMCAT_SECURE` (default: false)
|
||||
|
||||
Set 'true' if `ATL_TOMCAT_SCHEME` is 'https'. `CATALINA_CONNECTOR_SECURE` is
|
||||
also supported for backwards compatability.
|
||||
|
||||
The following Tomcat/Catalina options are also supported. For more information,
|
||||
see https://tomcat.apache.org/tomcat-8.5-doc/config/index.html.
|
||||
|
||||
* `ATL_TOMCAT_MGMT_PORT` (default: 8000)
|
||||
* `ATL_TOMCAT_MAXTHREADS` (default: 100)
|
||||
* `ATL_TOMCAT_MINSPARETHREADS` (default: 10)
|
||||
* `ATL_TOMCAT_CONNECTIONTIMEOUT` (default: 20000)
|
||||
* `ATL_TOMCAT_ENABLELOOKUPS` (default: false)
|
||||
* `ATL_TOMCAT_PROTOCOL` (default: HTTP/1.1)
|
||||
* `ATL_TOMCAT_ACCEPTCOUNT` (default: 10)
|
||||
* `ATL_TOMCAT_MAXHTTPHEADERSIZE` (default: 8192)
|
||||
|
||||
## JVM Configuration
|
||||
|
||||
If you need to pass additional JVM arguments to Crowd, such as specifying a custom trust store, you can add them via the below environment variable
|
||||
|
||||
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||
|
||||
Additional JVM arguments for Crowd
|
||||
|
||||
Example:
|
||||
|
||||
docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/crowd/cacerts -v crowdVolume:/var/atlassian/application-data/crowd --name="crowd" -d -p 8095:8095 atlassian/crowd
|
||||
|
||||
## Data Center configuration
|
||||
|
||||
This docker image can be run as part of a [Data Center][4] cluster. You can
|
||||
specify the following properties to start Crowd as a Data Center node,
|
||||
instead of manually configuring a cluster. See [Installing Crowd Data
|
||||
Center][5] for more information.
|
||||
|
||||
## Container Configuration
|
||||
|
||||
* `SET_PERMISSIONS` (default: true)
|
||||
|
||||
Define whether to set home directory permissions on startup. Set to `false` to disable
|
||||
this behaviour.
|
||||
|
||||
## Advanced Configuration
|
||||
|
||||
As mentioned at the top of this section, the settings from the environment are
|
||||
used to populate the application configuration on the container startup. However
|
||||
in some cases you may wish to customise the settings in ways that are not
|
||||
supported by the environment variables above. In this case, it is possible to
|
||||
modify the base templates to add your own configuration. There are three main
|
||||
ways of doing this; modify our repository to your own image, build a new image
|
||||
from the existing one, or provide new templates at startup. We will briefly
|
||||
outline this methods here, but in practice how you do this will depend on your
|
||||
needs.
|
||||
|
||||
#### Building your own image
|
||||
|
||||
* Clone the Atlassian repository at https://bitbucket.org/atlassian-docker/docker-atlassian-crowd/
|
||||
* Modify or replace the [Jinja](https://jinja.palletsprojects.com/) templates
|
||||
under `config`; _NOTE_: The files must have the `.j2` extensions. However you
|
||||
don't have to use template variables if you don't wish.
|
||||
* Build the new image with e.g: `docker build --tag my-crowd-image --build-arg CROWD_VERSION=3.x.x .`
|
||||
* Optionally push to a registry, and deploy.
|
||||
|
||||
#### Build a new image from the existing one
|
||||
|
||||
* Create a new `Dockerfile`, which starts with the Atlassian Crowd base image e.g: `FROM atlassian/crowd:latest`.
|
||||
* Use a `COPY` line to overwrite the provided templates.
|
||||
* Build, push and deploy the new image as above.
|
||||
|
||||
#### Overwrite the templates at runtime
|
||||
|
||||
There are two main ways of doing this:
|
||||
|
||||
* If your container is going to be long-lived, you can create it, modify the
|
||||
installed templates under `/opt/atlassian/etc/`, and then run it.
|
||||
* Alternatively, you can create a volume containing your alternative templates,
|
||||
and mount it over the provided templates at runtime
|
||||
with `--volume my-config:/opt/atlassian/etc/`.
|
||||
|
||||
# Shared directory and user IDs
|
||||
|
||||
By default the Crowd application runs as the user `crowd`, with a UID
|
||||
and GID of 2004. Consequently this UID must have write access to the shared
|
||||
filesystem. If for some reason a different UID must be used, there are a number
|
||||
of options available:
|
||||
|
||||
* The Docker image can be rebuilt with a different UID.
|
||||
* Under Linux, the UID can be remapped using
|
||||
[user namespace remapping][7].
|
||||
|
||||
To preserve strict permissions for certain configuration files, this container starts as
|
||||
`root` to perform bootstrapping before running Crowd under a non-privileged user
|
||||
account. If you wish to start the container as a non-root user, please note that Tomcat
|
||||
configuration will be skipped and a warning will be logged. You may still apply custom
|
||||
configuration in this situation by mounting configuration files directly, e.g.
|
||||
by mounting your own server.xml file directly to
|
||||
`/opt/atlassian/crowd/apache-tomcat/conf/server.xml`
|
||||
|
||||
# Upgrade
|
||||
|
||||
To upgrade to a more recent version of Crowd you can simply stop the `crowd` container and start a new one based on a more recent image:
|
||||
|
||||
docker stop crowd
|
||||
docker rm crowd
|
||||
docker run ... (See above)
|
||||
|
||||
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||
|
||||
_Note: Please make sure that you **don't** accidentally remove the `crowd` container and its volumes using the `-v` option._
|
||||
|
||||
# Backup
|
||||
|
||||
For evaluations you can use the built-in database that will store its files in the Crowd home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||
|
||||
If you're using an external database, you can configure Crowd to make a backup automatically each night. This will back up the current state, including the database to the `crowdVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the Crowd Home directory.
|
||||
|
||||
Read more about data recovery and backups: [Backing Up and Restoring Data][6]
|
||||
|
||||
# Versioning
|
||||
|
||||
The `latest` tag matches the most recent release of Atlassian Crowd. Thus `atlassian/crowd:latest` will use the newest version of Crowd available.
|
||||
|
||||
Alternatively you can use a specific major, major.minor, or major.minor.patch version of Crowd by using a version number tag:
|
||||
|
||||
* `atlassian/crowd:3`
|
||||
* `atlassian/crowd:3.2`
|
||||
* `atlassian/crowd:3.2.3`
|
||||
|
||||
All versions from 3.0+ are available
|
||||
|
||||
# Supported JDK versions
|
||||
|
||||
All the Atlassian Docker images are now JDK11 only, and generated from the
|
||||
[official Eclipse Temurin OpenJDK Docker images](https://hub.docker.com/_/eclipse-temurin).
|
||||
|
||||
The Docker images follow the [Atlassian Support end-of-life
|
||||
policy](https://confluence.atlassian.com/support/atlassian-support-end-of-life-policy-201851003.html);
|
||||
images for unsupported versions of the products remain available but will no longer
|
||||
receive updates or fixes.
|
||||
|
||||
Historically, we have also generated other versions of the images, including
|
||||
JDK8, Alpine, and 'slim' versions of the JDK. These legacy images still exist in
|
||||
Docker Hub, however they should be considered deprecated, and do not receive
|
||||
updates or fixes.
|
||||
|
||||
If for some reason you need a different version, see "Building your own image"
|
||||
above.
|
||||
|
||||
# Supported architectures
|
||||
|
||||
Currently the Atlassian Docker images are built for the `linux/amd64` target
|
||||
platform; we do not have other architectures on our roadmap at this
|
||||
point. However the Dockerfiles and support tooling have now had all
|
||||
architecture-specific components removed, so if necessary it is possible to
|
||||
build images for any platform supported by Docker.
|
||||
|
||||
## Building on the target architecture
|
||||
|
||||
Note: This method is known to work on Mac M1 and AWS ARM64 machines, but has not
|
||||
be extensively tested.
|
||||
|
||||
The simplest method of getting a platform image is to build it on a target
|
||||
machine. The following assumes you have git and Docker installed. You will also
|
||||
need to know which version of Crowd you want to build; substitute
|
||||
`CROWD_VERSION=x.x.x` with your required version:
|
||||
|
||||
```
|
||||
git clone --recurse-submodule https://bitbucket.org/atlassian-docker/docker-atlassian-crowd.git
|
||||
cd docker-atlassian-crowd
|
||||
docker build --tag my-image --build-arg CROWD_VERSION=x.x.x .
|
||||
```
|
||||
This image can be pushed up to your own Docker Hub or private repository.
|
||||
|
||||
# Troubleshooting
|
||||
|
||||
These images include built-in scripts to assist in performing common JVM diagnostic tasks.
|
||||
|
||||
## Thread dumps
|
||||
|
||||
`/opt/atlassian/support/thread-dumps.sh` can be run via `docker exec` to easily trigger the collection of thread
|
||||
dumps from the containerized application. For example:
|
||||
|
||||
docker exec my_crowd /opt/atlassian/support/thread-dumps.sh
|
||||
|
||||
By default this script will collect 10 thread dumps at 5 second intervals. This can
|
||||
be overridden by passing a custom value for the count and interval, by using `-c` / `--count`
|
||||
and `-i` / `--interval` respectively. For example, to collect 20 thread dumps at 3 second intervals:
|
||||
|
||||
docker exec my_container /opt/atlassian/support/thread-dumps.sh --count 20 --interval 3
|
||||
|
||||
Thread dumps will be written to `$APP_HOME/thread_dumps/<date>`.
|
||||
|
||||
Note: By default this script will also capture output from top run in 'Thread-mode'. This can
|
||||
be disabled by passing `-n` / `--no-top`
|
||||
|
||||
## Heap dump
|
||||
|
||||
`/opt/atlassian/support/heap-dump.sh` can be run via `docker exec` to easily trigger the collection of a heap
|
||||
dump from the containerized application. For example:
|
||||
|
||||
docker exec my_container /opt/atlassian/support/heap-dump.sh
|
||||
|
||||
A heap dump will be written to `$APP_HOME/heap.bin`. If a file already exists at this
|
||||
location, use `-f` / `--force` to overwrite the existing heap dump file.
|
||||
|
||||
## Manual diagnostics
|
||||
|
||||
The `jcmd` utility is also included in these images and can be used by starting a `bash` shell
|
||||
in the running container:
|
||||
|
||||
docker exec -it my_container /bin/bash
|
||||
|
||||
# Support
|
||||
|
||||
For product support, go to:
|
||||
|
||||
* https://support.atlassian.com/crowd/
|
||||
|
||||
You can also visit the [Atlassian Data Center on
|
||||
Kubernetes](https://community.atlassian.com/t5/Atlassian-Data-Center-on/gh-p/DC_Kubernetes)
|
||||
forum for discussion on running Atlassian Data Center products in containers.
|
||||
|
||||
# Changelog
|
||||
|
||||
For a detailed list of changes to the Docker image configuration see [the Git
|
||||
commit history](https://bitbucket.org/atlassian-docker/docker-atlassian-crowd/commits/).
|
||||
|
||||
# License
|
||||
|
||||
Copyright © 2019 Atlassian Corporation Pty Ltd.
|
||||
Licensed under the Apache License, Version 2.0.
|
||||
|
||||
[1]: https://www.atlassian.com/software/crowd
|
||||
[2]: https://confluence.atlassian.com/crowd/supported-platforms-191851.html
|
||||
[3]: https://confluence.atlassian.com/crowd031/integrating-crowd-with-apache-949753124.html
|
||||
[4]: https://confluence.atlassian.com/crowd/crowd-data-center-935372453.html
|
||||
[5]: https://confluence.atlassian.com/crowd/installing-crowd-data-center-935369773.html
|
||||
[6]: https://confluence.atlassian.com/crowd/backing-up-and-restoring-data-36470797.html
|
||||
[7]: https://docs.docker.com/engine/security/userns-remap/
|
@ -1,14 +0,0 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crowd:1.4.8"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crowd:1.4.8-jdk6"
|
||||
build:
|
||||
context: .
|
||||
app-jdk7:
|
||||
image: "quay.io/epicmorg/crowd:1.4.8-jdk7"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.jdk7
|
@ -1,37 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# Setup Catalina Opts
|
||||
: ${CATALINA_CONNECTOR_PROXYNAME:=}
|
||||
: ${CATALINA_CONNECTOR_PROXYPORT:=}
|
||||
: ${CATALINA_CONNECTOR_SCHEME:=http}
|
||||
: ${CATALINA_CONNECTOR_SECURE:=false}
|
||||
|
||||
: ${CATALINA_OPTS:=}
|
||||
|
||||
: ${JAVA_OPTS:=}
|
||||
|
||||
CATALINA_OPTS="${CATALINA_OPTS} -DcatalinaConnectorProxyName=${CATALINA_CONNECTOR_PROXYNAME}"
|
||||
CATALINA_OPTS="${CATALINA_OPTS} -DcatalinaConnectorProxyPort=${CATALINA_CONNECTOR_PROXYPORT}"
|
||||
CATALINA_OPTS="${CATALINA_OPTS} -DcatalinaConnectorScheme=${CATALINA_CONNECTOR_SCHEME}"
|
||||
CATALINA_OPTS="${CATALINA_OPTS} -DcatalinaConnectorSecure=${CATALINA_CONNECTOR_SECURE}"
|
||||
|
||||
export JAVA_OPTS="${JAVA_OPTS} ${CATALINA_OPTS}"
|
||||
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${CROWD_HOME}")
|
||||
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
|
||||
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
|
||||
chmod -R 700 "${CROWD_HOME}" &&
|
||||
chown -R "${RUN_USER}:${RUN_GROUP}" "${CROWD_HOME}"
|
||||
fi
|
||||
# Now drop privileges
|
||||
cd /opt/atlassian/crowd
|
||||
exec su -s /bin/bash "${RUN_USER}" -c "$CROWD_INSTALL_DIR/start_crowd.sh $@"
|
||||
else
|
||||
cd /opt/atlassian/crowd
|
||||
exec "$CROWD_INSTALL_DIR/start_crowd.sh" "$@"
|
||||
fi
|
@ -36,11 +36,10 @@ RUN apt-get update && \
|
||||
apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${CROWD_INSTALL_DIR} ${CROWD_DB} /opt/atlassian/support /opt/atlassian/etc && \
|
||||
tar -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
tar --ignore-zeros -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
sed -i -e '2s/^exec/cd "`dirname "$0"`" \&\& exec/' ${CROWD_INSTALL_DIR}/start_crowd.sh && \
|
||||
sed -i -e 's#exec "$PRGDIR"/"$EXECUTABLE" start "$@"#exec "$PRGDIR"/"$EXECUTABLE" run "$@"#g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/startup.sh && \
|
||||
sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
# sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
# sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
|
@ -36,11 +36,10 @@ RUN apt-get update && \
|
||||
apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${CROWD_INSTALL_DIR} ${CROWD_DB} /opt/atlassian/support /opt/atlassian/etc && \
|
||||
tar -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
tar --ignore-zeros -xzf ${TEMP_ARCHIVE} --strip-components=1 --directory "${CROWD_INSTALL_DIR}" && \
|
||||
sed -i -e '2s/^exec/cd "`dirname "$0"`" \&\& exec/' ${CROWD_INSTALL_DIR}/start_crowd.sh && \
|
||||
sed -i -e 's#exec "$PRGDIR"/"$EXECUTABLE" start "$@"#exec "$PRGDIR"/"$EXECUTABLE" run "$@"#g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/startup.sh && \
|
||||
sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
# sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dcrowd.home=\${CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh && \
|
||||
# sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
|
3
linux/ecosystem/atlassian/crucible/1/1.0-build-223/.env
Normal file
3
linux/ecosystem/atlassian/crucible/1/1.0-build-223/.env
Normal file
@ -0,0 +1,3 @@
|
||||
RELEASE=1.0-build-223
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
@ -0,0 +1,65 @@
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE=1.0-build-223
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
##################################################################
|
||||
ENV RUN_USER daemon
|
||||
ENV RUN_GROUP daemon
|
||||
|
||||
# https://confluence.atlassian.com/fisheye/fisheye-folder-layout-298976940.html
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
|
||||
# Expose HTTP port
|
||||
EXPOSE 8060
|
||||
|
||||
##################################################################
|
||||
# Installing
|
||||
##################################################################
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
CMD ["/entrypoint.sh", "run"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
@ -0,0 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:1.0-build-223"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.0-build-223-jdk6"
|
||||
build:
|
||||
context: .
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.0.3
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.0.3.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.0.3
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.0.3"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.0.3-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.0.4
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.0.4.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.0.4
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.0.4"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.0.4-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +0,0 @@
|
||||
|
||||
RELEASE=1.0
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.0-build-223.zip
|
@ -1,47 +0,0 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
|
||||
##################################################################
|
||||
# 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
|
||||
|
||||
CMD ["/entrypoint.sh", "run"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
@ -1,7 +0,0 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
@ -1,8 +0,0 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.1.1
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.1.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.1.1
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.1.1"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.1.1-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.1.2
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.2.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.1.2
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.1.2"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.1.2-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.1.3
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.3.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.1.3
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.1.3"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.1.3-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.1.4
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.4.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.1.4
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.1.4"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.1.4-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.1
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.1.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.1
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.1"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.1-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.2.1
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.1.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.2.1
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.2.1"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.2.1-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.2.2
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.2.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.2.2
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.2.2"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.2.2-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.2.3
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.3.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.2.3
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.2.3"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.2.3-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.2
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.2.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.2
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
@ -1,7 +1,44 @@
|
||||
PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
make pip
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
make build-buildah
|
||||
|
||||
deploy:
|
||||
make deploy-buildah
|
||||
|
||||
build-buildah:
|
||||
buildah-wrapper --build
|
||||
|
||||
deploy-buildah:
|
||||
buildah-wrapper --deploy
|
||||
|
||||
build-kaniko:
|
||||
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run
|
||||
|
||||
deploy-kaniko:
|
||||
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug
|
||||
|
||||
build-compose:
|
||||
docker-compose build --compress --parallel --progress plain
|
||||
|
||||
deploy-compose:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
||||
buildah rm -a
|
||||
buildah rmi -a
|
||||
|
||||
pip:
|
||||
pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
||||
pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper
|
@ -1,8 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "quay.io/epicmorg/crucible:${RELEASE}"
|
||||
image: "quay.io/epicmorg/crucible:1.2"
|
||||
build:
|
||||
context: .
|
||||
app-jdk6:
|
||||
image: "quay.io/epicmorg/crucible:1.2-jdk6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
RELEASE: ${RELEASE}
|
||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
export FISHEYE_OPTS="${FISHEYE_OPTS} ${JVM_SUPPORT_RECOMMENDED_ARGS}"
|
||||
|
||||
# Start Bamboo as the correct user
|
||||
# Start Crucible as the correct user
|
||||
if [ "${UID}" -eq 0 ]; then
|
||||
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
|
||||
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${FISHEYE_INST}")
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
RELEASE=1.5.1
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-1.5.1.zip
|
||||
DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
@ -1,12 +1,13 @@
|
||||
FROM quay.io/epicmorg/debian:bullseye-jdk7
|
||||
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
FROM quay.io/epicmorg/debian:bookworm-jdk6
|
||||
LABEL maintainer="Atlassian Crucible Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG RELEASE
|
||||
ARG DOWNLOAD_URL
|
||||
ARG RELEASE=1.5.1
|
||||
ARG DOWNLOAD_URL=https://www.atlassian.com/software/crucible/downloads/binary/crucible-${RELEASE}.zip
|
||||
ARG TEMP_ARCHIVE=/tmp/crucible-${RELEASE}.zip
|
||||
|
||||
##################################################################
|
||||
# Setup
|
||||
@ -15,8 +16,8 @@ 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
|
||||
ENV FISHEYE_HOME /opt/atlassian/сrucible
|
||||
ENV FISHEYE_INST /var/atlassian/application-data/сrucible
|
||||
|
||||
VOLUME ["${FISHEYE_INST}"]
|
||||
WORKDIR $FISHEYE_INST
|
||||
@ -27,19 +28,36 @@ 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
|
||||
ADD ${DOWNLOAD_URL} /tmp
|
||||
|
||||
RUN mkdir -p ${FISHEYE_HOME} ${FISHEYE_INST} && \
|
||||
7zz x ${TEMP_ARCHIVE} -o/tmp/crucible-temp && \
|
||||
mv /tmp/crucible-temp/*/* "${FISHEYE_HOME}" && \
|
||||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R ${RUN_USER}:${RUN_GROUP} ${FISHEYE_HOME}
|
||||
|
||||
##################################################################
|
||||
# cleanup
|
||||
##################################################################
|
||||
RUN echo "clean up" && \
|
||||
apt-get clean -y && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /root/tmp/* && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user