Major Update!

This commit is contained in:
STAM 2024-12-03 03:34:56 +03:00
commit 28b7931bcd
No known key found for this signature in database
GPG Key ID: 711526C6938897F1
1809 changed files with 33130 additions and 11032 deletions

View File

@ -34,8 +34,8 @@ jobs:
# - name: "Build and Deploy Atlassian Fisheye Image:"
# run: cd linux/ecosystem/atlassian/fisheye/latest && pwd && make build && make deploy
- name: "Build and Deploy Atlassian Fisheye + Crucible Image:"
run: cd linux/ecosystem/atlassian/fisheye-crucible/latest && pwd && make build && make deploy
# - name: "Build and Deploy Atlassian Fisheye + Crucible Image:"
# run: cd linux/ecosystem/atlassian/fisheye-crucible/latest && pwd && make build && make deploy
- name: "Build and Deploy Atlassian Jira Image:"
run: cd linux/ecosystem/atlassian/jira/latest && pwd && make build && make deploy

View File

@ -116,8 +116,11 @@ jobs:
- name: "Build and Deploy PostgreSQL 16 Image:"
run: cd linux/ecosystem/postgres/16 && pwd && make build && make deploy
- name: "Build and Deploy PostgreSQL 17 Image:"
run: cd linux/ecosystem/postgres/17 && pwd && make build && make deploy
# - name: "Build and Deploy PostgreSQL 17 Image:"
# run: cd linux/ecosystem/postgres/17 && pwd && make build && make deploy
# - name: "Build and Deploy PostgreSQL 18 Image:"
# run: cd linux/ecosystem/postgres/18 && pwd && make build && make deploy
##################################################################################

View File

@ -2,10 +2,15 @@
## 2024
* `dec`
* migrated `qbittorrent` images to new baseline
* fixed `perforce` iamges and migrated to new baseline
* updated `Atlassian Images`:
* Migrated to new baseline all `Jira` iamges
* Updated to new versions of `Jira`
* `sep`, `oct`, `nov`
* fixed some bugs in `Makefile`
* fixed `Dockerfile` bugs
* added `Nextcloud` version `30` in `tag`.
* fixed some bugs in `Makefile`
* fixed `Dockerfile` bugs
* added `Nextcloud` version `30` in `tag`.
* `aug`
* `sentry` and `redash` was set to `experimental` status bacause `ci` is not stable yet.
* reworked `teamcity:server` image.
@ -24,7 +29,7 @@
* `WIP`: reworking by new concept of base images and creating new `nginx 1.27.0` with static build.
* `july`
* Start migration from `Odrey's` repos due to author's rot.
* [@oerdnj](https://github.com/oerdnj) go to hell, [xenophobe](https://github.com/oerdnj/deb.sury.org/issues/2155)! :fu:
* [@oerdnj](https://github.com/oerdnj) go to hell, [xenophobe](https://github.com/oerdnj/deb.sury.org/issues/2155)! :fu:
```
You say that "I do understand the difference between a government and its people." and contradict yourself ("you are part of the problem") by equating people and the government.

View File

@ -1,4 +1,4 @@
VERSION = "2024.11.27"
VERSION = "2024.12.03"
AUTHOR = "EpicMorg"
MODIFIED = "STAM"
DOCKER_SCAN_SUGGEST = false
@ -1069,7 +1069,8 @@ ecosystem-postgres-images:
cd `pwd`/linux/ecosystem/postgres/14 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/postgres/15 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/postgres/16 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/postgres/17 && pwd && make build && make deploy
# cd `pwd`/linux/ecosystem/postgres/17 && pwd && make build && make deploy
# cd `pwd`/linux/ecosystem/postgres/18 && pwd && make build && make deploy
ecosystem-teamcity-agent-images:
cd `pwd`/linux/ecosystem/teamcity/agent/latest/jdk8 && pwd && make build && make deploy
@ -1734,6 +1735,7 @@ ecosystem-jira-9-images:
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.3.0 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.3.1 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.3.2 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.3.3 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.5.0 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.5.1 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.6.0 && pwd && make build && make deploy
@ -1752,7 +1754,6 @@ ecosystem-jira-9-images:
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.11.3 && pwd && make build && make deploy
ecosystem-jira-9-lts-images:
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.3.3 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.0 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.1 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.2 && pwd && make build && make deploy
@ -1769,15 +1770,49 @@ ecosystem-jira-9-lts-images:
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.13 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.14 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.15 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.16 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.17 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.18 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.19 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.20 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.21 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.22 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.23 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.24 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.25 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.26 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.27 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.28 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.4.29 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.0 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.1 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.2 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.3 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.4 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.5 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.6 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.7 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.8 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.9 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.10 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.11 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.12 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.13 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.14 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/9/9.12.15 && pwd && make build && make deploy
ecosystem-jira-10-images:
cd `pwd`/linux/ecosystem/atlassian/jira/10/10.0.0 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/10/10.0.1 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/10/10.1.1 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/10/10.1.2 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/10/10.2.0 && pwd && make build && make deploy
cd `pwd`/linux/ecosystem/atlassian/jira/10/10.2.1 && pwd && make build && make deploy
bundle-base-images:
@echo "======================================="
@echo "===== Building EpicMorg images ====="
@echo "======================================="
make ecosystem-astra-17se-images
# make advanced-pyhton-images
make ecosystem-debian-images
@ -1817,6 +1852,7 @@ bundle-jira:
make ecosystem-jira-7-images
make ecosystem-jira-8-images
make ecosystem-jira-9-images
make ecosystem-jira-10images
bundle-atlassian-latest:
@echo "=============================================="

View File

@ -34,8 +34,8 @@ RUN mkdir -p ${BITBUCKET_INSTALL_DIR} && \
chown -R ${RUN_USER}:${RUN_GROUP} ${BITBUCKET_INSTALL_DIR} && \
sed -i -e 's/^# umask/umask/' ${BITBUCKET_INSTALL_DIR}/bin/_start-webapp.sh && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt clean -y && \
apt autoclean -y && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb

View File

@ -34,8 +34,8 @@ RUN mkdir -p ${BITBUCKET_INSTALL_DIR} && \
chown -R ${RUN_USER}:${RUN_GROUP} ${BITBUCKET_INSTALL_DIR} && \
sed -i -e 's/^# umask/umask/' ${BITBUCKET_INSTALL_DIR}/bin/_start-webapp.sh && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt clean -y && \
apt autoclean -y && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb

View File

@ -34,8 +34,8 @@ RUN mkdir -p ${BITBUCKET_INSTALL_DIR} && \
chown -R ${RUN_USER}:${RUN_GROUP} ${BITBUCKET_INSTALL_DIR} && \
sed -i -e 's/^# umask/umask/' ${BITBUCKET_INSTALL_DIR}/bin/_start-webapp.sh && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt clean -y && \
apt autoclean -y && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb

View File

@ -35,8 +35,8 @@ RUN mkdir -p ${BITBUCKET_INSTALL_DIR} && \
chown -R ${RUN_USER}:${RUN_GROUP} ${BITBUCKET_INSTALL_DIR} && \
# sed -i -e 's/^# umask/umask/' ${BITBUCKET_INSTALL_DIR}/bin/_start-webapp.sh && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt clean -y && \
apt autoclean -y && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb

View File

@ -35,8 +35,8 @@ RUN mkdir -p ${BITBUCKET_INSTALL_DIR} && \
chown -R ${RUN_USER}:${RUN_GROUP} ${BITBUCKET_INSTALL_DIR} && \
# sed -i -e 's/^# umask/umask/' ${BITBUCKET_INSTALL_DIR}/bin/_start-webapp.sh && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt clean -y && \
apt autoclean -y && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb

View File

@ -15,21 +15,21 @@
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.stash.1.env.j2"
dest: "{{ target_directory_bitbucket_1 }}/{{ item }}/.env"
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
- name: Copy docker-compose.yml from template to each version directory
copy:
src: "docker-compose.jdk7.yml"
dest: "{{ target_directory_bitbucket_1 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
- name: Copy Dockerfile from template to each version directory
copy:
src: "Dockerfile.legacy.jdk7"
dest: "{{ target_directory_bitbucket_1 }}/{{ item }}/Dockerfile"
@ -40,6 +40,7 @@
copy:
src: "entrypoint.stash.sh"
dest: "{{ target_directory_bitbucket_1 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ bitbucket_versions }}"

View File

@ -15,21 +15,21 @@
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.stash.2.env.j2"
dest: "{{ target_directory_bitbucket_2 }}/{{ item }}/.env"
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
- name: Copy docker-compose.yml from template to each version directory
copy:
src: "docker-compose.jdk7.yml"
dest: "{{ target_directory_bitbucket_2 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
- name: Copy Dockerfile from template to each version directory
copy:
src: "Dockerfile.legacy.jdk7"
dest: "{{ target_directory_bitbucket_2 }}/{{ item }}/Dockerfile"
@ -40,6 +40,7 @@
copy:
src: "entrypoint.stash.sh"
dest: "{{ target_directory_bitbucket_2 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ bitbucket_versions }}"

View File

@ -15,21 +15,21 @@
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.stash.3.env.j2"
dest: "{{ target_directory_bitbucket_3 }}/{{ item }}/.env"
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
- name: Copy docker-compose.yml from template to each version directory
copy:
src: "docker-compose.jdk8.yml"
dest: "{{ target_directory_bitbucket_3 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
- name: Copy Dockerfile from template to each version directory
copy:
src: "Dockerfile.legacy.jdk8"
dest: "{{ target_directory_bitbucket_3 }}/{{ item }}/Dockerfile"
@ -40,6 +40,7 @@
copy:
src: "entrypoint.stash.sh"
dest: "{{ target_directory_bitbucket_3 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ bitbucket_versions }}"

View File

@ -15,21 +15,21 @@
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.bitbucket.4.env.j2"
dest: "{{ target_directory_bitbucket_4 }}/{{ item }}/.env"
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
- name: Copy docker-compose.yml from template to each version directory
copy:
src: "docker-compose.jdk8.yml"
dest: "{{ target_directory_bitbucket_4 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ bitbucket_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
- name: Copy Dockerfile from template to each version directory
copy:
src: "Dockerfile.legacy.jdk8"
dest: "{{ target_directory_bitbucket_4 }}/{{ item }}/Dockerfile"
@ -40,6 +40,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_bitbucket_4 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ bitbucket_versions }}"

View File

@ -15,21 +15,21 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.j2"
dest: "{{ target_directory_jira_8 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
- name: Copy docker-compose.yml from template to each version directory
copy:
src: "docker-compose.yml"
dest: "{{ target_directory_jira_8 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
- name: Copy Dockerfile from template to each version directory
copy:
src: "Dockerfile.jdk8"
dest: "{{ target_directory_jira_8 }}/{{ item }}/Dockerfile"

View File

@ -15,21 +15,21 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.j2"
dest: "{{ target_directory_jira_8 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
- name: Copy docker-compose.yml from template to each version directory
copy:
src: "docker-compose.yml"
dest: "{{ target_directory_jira_8 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
- name: Copy Dockerfile from template to each version directory
copy:
src: "Dockerfile.jdk8"
dest: "{{ target_directory_jira_8 }}/{{ item }}/Dockerfile"

View File

@ -15,21 +15,21 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.j2"
dest: "{{ target_directory_jira_9 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
- name: Copy docker-compose.yml from template to each version directory
copy:
src: "docker-compose.jdk8-11-17.yml"
dest: "{{ target_directory_jira_9 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
- name: Copy Dockerfile from template to each version directory
copy:
src: "Dockerfile.jdk8"
dest: "{{ target_directory_jira_9 }}/{{ item }}/Dockerfile"

View File

@ -1,17 +0,0 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}
app-jdk7:
image: "epicmorg/jira:${RELEASE}-jdk7"
build:
context: .
dockerfile: Dockerfile.jdk7
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -1,17 +0,0 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}
app-jdk8:
image: "epicmorg/jira:${RELEASE}-jdk8"
build:
context: .
dockerfile: Dockerfile.jdk8
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -1,25 +0,0 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}
app-jdk11:
image: "epicmorg/jira:${RELEASE}-jdk11"
build:
context: .
dockerfile: Dockerfile.jdk11
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}
app-jdk17:
image: "epicmorg/jira:${RELEASE}-jdk17"
build:
context: .
dockerfile: Dockerfile.jdk17
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -1,17 +0,0 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:${RELEASE}"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}
app-jdk11:
image: "epicmorg/jira:${RELEASE}-jdk11"
build:
context: .
dockerfile: Dockerfile.jdk11
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

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

View File

@ -72,6 +72,20 @@ if [ "${CLUSTERED}" == "true" ]; then
set_cluster_property "ehcache.multicast.hostName" "${EHCACHE_MULTICAST_HOSTNAME}"
fi
function set_home {
echo "Setting up JIRA_HOME.."
if [ -z "$JIRA_HOME" ]; then
echo "Variable JIRA_HOME is empty. Aborting"
exit 1
fi
echo "JIRA_HOME is: ${JIRA_HOME}"
echo "Patchig jira-application.properties"
sed -i "s|^jira\.home *=.*|jira.home = ${JIRA_HOME}|" ${JIRA_INSTALL_DIR}/atlassian-jira/WEB-INF/classes/jira-application.properties
}
# Start Jira as the correct user
if [ "${UID}" -eq 0 ]; then
@ -82,8 +96,18 @@ if [ "${UID}" -eq 0 ]; then
chmod -R 700 "${JIRA_HOME}" &&
chown -R "${RUN_USER}:${RUN_GROUP}" "${JIRA_HOME}"
fi
set_home
# Now drop privileges
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/start-jira.sh $@"
if [ -f "$JIRA_INSTALL_DIR/bin/start-jira.sh" ]; then
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/start-jira.sh $@"
else
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/startup.sh $@"
fi
else
exec "$JIRA_INSTALL_DIR/bin/start-jira.sh" "$@"
set_home
if [ -f "$JIRA_INSTALL_DIR/bin/start-jira.sh" ]; then
exec "$JIRA_INSTALL_DIR/bin/start-jira.sh" "$@"
else
exec "$JIRA_INSTALL_DIR/bin/startup.sh" "$@"
fi
fi

View File

@ -1,2 +0,0 @@
PyYAML
python-dotenv

View File

@ -0,0 +1,52 @@
- name: Read versions from file
slurp:
src: "roles/common/files/versions/jira/10.jdk17.txt"
register: version_output
- name: Set version variable
set_fact:
jira_versions: "{{ version_output['content'] | b64decode | trim | split('\n') }}"
- name: Create directories for Jira versions
file:
path: "{{ target_directory_jira_10 }}/{{ item }}"
state: directory
mode: '0755'
force: true
with_items: "{{ jira_versions }}"
- name: Copy .env with link from template to each version directory
template:
src: "env/template.env.j2"
dest: "{{ target_directory_jira_10 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk17.yml.j2"
dest: "{{ target_directory_jira_10 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk17.j2"
dest: "{{ target_directory_jira_10 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
- name: Copy entrypoint.sh from 'files' directory to each version directory
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_10 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Makefile from 'files' directory to each version directory
copy:
src: "Makefile"
dest: "{{ target_directory_jira_10 }}/{{ item }}/Makefile"
force: true
with_items: "{{ jira_versions }}"

View File

@ -1,53 +1,54 @@
# Cant template urls because each versions have unical link. need to rework
- name: Read versions from file
slurp:
src: "roles/common/files/versions/jira/4.jdk6.txt"
register: version_output
- name: Set version variable
set_fact:
jira_versions: "{{ version_output['content'] | b64decode | trim | split('\n') }}"
- name: Create directories for Jira versions
file:
path: "{{ target_directory_jira_4 }}/{{ item }}"
state: directory
mode: '0755'
force: true
with_items: "{{ jira_versions }}"
#- name: Copy template with link to each version directory
# template:
# src: "template.env.j2"
# dest: "{{ target_directory_jira_4 }}/{{ item }}/.env"
# force: true
# with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.yml"
dest: "{{ target_directory_jira_4 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk6"
dest: "{{ target_directory_jira_4 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
- name: Copy entrypoint.sh from 'files' directory to each version directory
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_4 }}/{{ item }}/entrypoint.sh"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Makefile from 'files' directory to each version directory
copy:
src: "Makefile"
dest: "{{ target_directory_jira_4 }}/{{ item }}/Makefile"
force: true
with_items: "{{ jira_versions }}"
# - name: Read versions from file
# slurp:
# src: "roles/common/files/versions/jira/4.jdk6.txt"
# register: version_output
#
# - name: Set version variable
# set_fact:
# jira_versions: "{{ version_output['content'] | b64decode | trim | split('\n') }}"
#
# - name: Create directories for Jira versions
# file:
# path: "{{ target_directory_jira_4 }}/{{ item }}"
# state: directory
# mode: '0755'
# force: true
# with_items: "{{ jira_versions }}"
#
# #- name: Copy .env with link from template to each version directory
# # template:
# # src: "template.env.j2"
# # dest: "{{ target_directory_jira_4 }}/{{ item }}/.env"
# # force: true
# # with_items: "{{ jira_versions }}"
#
# - name: Copy docker-compose.yml from template to each version directory
# copy:
# src: "docker-compose.yml"
# dest: "{{ target_directory_jira_4 }}/{{ item }}/docker-compose.yml"
# force: true
# with_items: "{{ jira_versions }}"
#
# - name: Copy Dockerfile from template to each version directory
# copy:
# src: "Dockerfile.jdk6"
# dest: "{{ target_directory_jira_4 }}/{{ item }}/Dockerfile"
# force: true
# with_items: "{{ jira_versions }}"
#
# - name: Copy entrypoint.sh from 'files' directory to each version directory
# copy:
# src: "entrypoint.sh"
# dest: "{{ target_directory_jira_4 }}/{{ item }}/entrypoint.sh"
mode: "0777"
# force: true
# with_items: "{{ jira_versions }}"
#
# - name: Copy Makefile from 'files' directory to each version directory
# copy:
# src: "Makefile"
# dest: "{{ target_directory_jira_4 }}/{{ item }}/Makefile"
# force: true
# with_items: "{{ jira_versions }}"

View File

@ -15,30 +15,30 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.legacy.j2"
src: "env/template.env.legacy.j2"
dest: "{{ target_directory_jira_5 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.jdk6-7.yml"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk6-7.yml.j2"
dest: "{{ target_directory_jira_5 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk6"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk6.j2"
dest: "{{ target_directory_jira_5 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk7"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk7.j2"
dest: "{{ target_directory_jira_5 }}/{{ item }}/Dockerfile.jdk7"
force: true
with_items: "{{ jira_versions }}"
@ -47,6 +47,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_5 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"

View File

@ -15,23 +15,23 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.legacy.j2"
src: "env/template.env.legacy.j2"
dest: "{{ target_directory_jira_5 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.yml"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk6.yml.j2"
dest: "{{ target_directory_jira_5 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk6"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk6.j2"
dest: "{{ target_directory_jira_5 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
@ -40,6 +40,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_5 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"

View File

@ -15,30 +15,30 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.legacy.j2"
src: "env/template.env.legacy.j2"
dest: "{{ target_directory_jira_6 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.jdk7-8.yml"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk7-8.yml.j2"
dest: "{{ target_directory_jira_6 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk7"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk7.j2"
dest: "{{ target_directory_jira_6 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk7-8"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk8-legacy.j2"
dest: "{{ target_directory_jira_6 }}/{{ item }}/Dockerfile.jdk8"
force: true
with_items: "{{ jira_versions }}"
@ -47,6 +47,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_6 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"

View File

@ -15,23 +15,23 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.legacy.j2"
src: "env/template.env.legacy.j2"
dest: "{{ target_directory_jira_6 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.yml"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk7.yml.j2"
dest: "{{ target_directory_jira_6 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk7"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk7.j2"
dest: "{{ target_directory_jira_6 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
@ -40,6 +40,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_6 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"

View File

@ -15,23 +15,23 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.legacy2software.j2"
src: "env/template.env.legacy2software.j2"
dest: "{{ target_directory_jira_7 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.yml"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk8.yml.j2"
dest: "{{ target_directory_jira_7 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk8"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk8-legacy2software.j2"
dest: "{{ target_directory_jira_7 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
@ -40,6 +40,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_7 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"

View File

@ -15,23 +15,23 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.j2"
src: "env/template.env.j2"
dest: "{{ target_directory_jira_7 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.yml"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk8.yml.j2"
dest: "{{ target_directory_jira_7 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk8"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk8.j2"
dest: "{{ target_directory_jira_7 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
@ -40,6 +40,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_7 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"

View File

@ -15,30 +15,30 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.j2"
src: "env/template.env.j2"
dest: "{{ target_directory_jira_8 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.yml"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk8-11.yml.j2"
dest: "{{ target_directory_jira_8 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk8"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk8.j2"
dest: "{{ target_directory_jira_8 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile.jdk11 from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk11"
template:
src: "dockerfile/template.Dockerfile.jdk11.j2"
dest: "{{ target_directory_jira_8 }}/{{ item }}/Dockerfile.jdk11"
force: true
with_items: "{{ jira_versions }}"
@ -47,6 +47,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_8 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"

View File

@ -15,23 +15,23 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.j2"
src: "env/template.env.j2"
dest: "{{ target_directory_jira_8 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.yml"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk8.yml.j2"
dest: "{{ target_directory_jira_8 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk8"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk8.j2"
dest: "{{ target_directory_jira_8 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
@ -40,6 +40,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_8 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"

View File

@ -15,37 +15,37 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.j2"
src: "env/template.env.j2"
dest: "{{ target_directory_jira_9 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.jdk8-11-17.yml"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk8-11-17.yml.j2"
dest: "{{ target_directory_jira_9 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk8"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk8.j2"
dest: "{{ target_directory_jira_9 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile.jdk11 from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk11"
template:
src: "dockerfile/template.Dockerfile.jdk11.j2"
dest: "{{ target_directory_jira_9 }}/{{ item }}/Dockerfile.jdk11"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile.jdk17 from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk17"
template:
src: "dockerfile/template.Dockerfile.jdk17.j2"
dest: "{{ target_directory_jira_9 }}/{{ item }}/Dockerfile.jdk17"
force: true
with_items: "{{ jira_versions }}"
@ -54,6 +54,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_9 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"

View File

@ -15,30 +15,30 @@
force: true
with_items: "{{ jira_versions }}"
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.j2"
src: "env/template.env.j2"
dest: "{{ target_directory_jira_9 }}/{{ item }}/.env"
force: true
with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.jdk8-11.yml"
- name: Copy docker-compose.yml from template to each version directory
template:
src: "docker-compose/template.docker-compose.jdk8-11.yml.j2"
dest: "{{ target_directory_jira_9 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk8"
- name: Copy Dockerfile from template to each version directory
template:
src: "dockerfile/template.Dockerfile.jdk8.j2"
dest: "{{ target_directory_jira_9 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile.jdk11 from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk11"
template:
src: "dockerfile/template.Dockerfile.jdk11.j2"
dest: "{{ target_directory_jira_9 }}/{{ item }}/Dockerfile.jdk11"
force: true
with_items: "{{ jira_versions }}"
@ -47,6 +47,7 @@
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_9 }}/{{ item }}/entrypoint.sh"
mode: "0777"
force: true
with_items: "{{ jira_versions }}"

View File

@ -1,6 +1,6 @@
# broken envs, generating without it
- name: "Generate images for Jira 4 (jdk6)"
import_tasks: atlassian.jira.4.jdk6.yml
#- name: "Generate images for Jira 4 (jdk6)"
# import_tasks: atlassian.jira.4.jdk6.yml
- name: "Generate images for Jira 5.0-5.1 (jdk6)"
import_tasks: atlassian.jira.5.jdk6.yml
@ -31,3 +31,6 @@
- name: "Generate images for Jira 9.5+ (jdk8, jdk11, jdk17)"
import_tasks: atlassian.jira.9.jdk8-11-17.yml
- name: "Generate images for Jira 10+ (jdk17)"
import_tasks: atlassian.jira.10.jdk17.yml

View File

@ -0,0 +1,10 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:{{ item }}"
build:
context: .
app-jdk17:
image: "epicmorg/jira:{{ item }}-jdk17"
build:
context: .

View File

@ -0,0 +1,15 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:{{ item }}"
build:
context: .
app-jdk6:
image: "epicmorg/jira:{{ item }}-jdk6"
build:
context: .
app-jdk7:
image: "epicmorg/jira:{{ item }}-jdk7"
build:
context: .
dockerfile: Dockerfile.jdk7

View File

@ -0,0 +1,10 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:{{ item }}"
build:
context: .
app-jdk6:
image: "epicmorg/jira:{{ item }}-jdk6"
build:
context: .

View File

@ -0,0 +1,15 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:{{ item }}"
build:
context: .
app-jdk7:
image: "epicmorg/jira:{{ item }}-jdk7"
build:
context: .
app-jdk8:
image: "epicmorg/jira:{{ item }}-jdk8"
build:
context: .
dockerfile: Dockerfile.jdk8

View File

@ -0,0 +1,10 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:{{ item }}"
build:
context: .
app-jdk7:
image: "epicmorg/jira:{{ item }}-jdk7"
build:
context: .

View File

@ -0,0 +1,20 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:{{ item }}"
build:
context: .
app-jdk8:
image: "epicmorg/jira:{{ item }}-jdk8"
build:
context: .
app-jdk11:
image: "epicmorg/jira:{{ item }}-jdk11"
build:
context: .
dockerfile: Dockerfile.jdk11
app-jdk17:
image: "epicmorg/jira:{{ item }}-jdk17"
build:
context: .
dockerfile: Dockerfile.jdk17

View File

@ -0,0 +1,15 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:{{ item }}"
build:
context: .
app-jdk8:
image: "epicmorg/jira:{{ item }}-jdk8"
build:
context: .
app-jdk11:
image: "epicmorg/jira:{{ item }}-jdk11"
build:
context: .
dockerfile: Dockerfile.jdk11

View File

@ -0,0 +1,10 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:{{ item }}"
build:
context: .
app-jdk8:
image: "epicmorg/jira:{{ item }}-jdk8"
build:
context: .

View File

@ -0,0 +1,51 @@
FROM epicmorg/debian:bookworm-jdk11
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG RELEASE={{ item }}
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
ENV JIRA_HOME /var/atlassian/application-data/jira
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
VOLUME ["${JIRA_HOME}"]
WORKDIR $JIRA_HOME
# Expose HTTP port
EXPOSE 8080
##################################################################
# Installing
##################################################################
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-software-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*
RUN updatedb
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh", "-fg"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,51 @@
FROM epicmorg/debian:bookworm-jdk17
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG RELEASE={{ item }}
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
ENV JIRA_HOME /var/atlassian/application-data/jira
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
VOLUME ["${JIRA_HOME}"]
WORKDIR $JIRA_HOME
# Expose HTTP port
EXPOSE 8080
##################################################################
# Installing
##################################################################
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-software-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*
RUN updatedb
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh", "-fg"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -6,8 +6,8 @@ ARG DEBIAN_FRONTEND=noninteractive
# ARGuments
##################################################################
ARG RELEASE
ARG DOWNLOAD_URL
ARG RELEASE={{ item }}
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-${RELEASE}.tar.gz
##################################################################
# Setup
@ -28,15 +28,16 @@ EXPOSE 8080
##################################################################
# Installing
##################################################################
RUN mkdir -p ${JIRA_INSTALL_DIR} \
&& curl --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" -L ${DOWNLOAD_URL} | tar -xz --strip-components=1 -C "$JIRA_INSTALL_DIR" \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ \
&& sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh \
&& sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh \
&& sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt clean -y && \
apt autoclean -y && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*

View File

@ -6,8 +6,8 @@ ARG DEBIAN_FRONTEND=noninteractive
# ARGuments
##################################################################
ARG RELEASE
ARG DOWNLOAD_URL
ARG RELEASE={{ item }}
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-${RELEASE}.tar.gz
##################################################################
# Setup
@ -28,15 +28,16 @@ EXPOSE 8080
##################################################################
# Installing
##################################################################
RUN mkdir -p ${JIRA_INSTALL_DIR} \
&& curl --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" -L ${DOWNLOAD_URL} | tar -xz --strip-components=1 -C "$JIRA_INSTALL_DIR" \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ \
&& sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh \
&& sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh \
&& sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt clean -y && \
apt autoclean -y && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*

View File

@ -6,8 +6,8 @@ ARG DEBIAN_FRONTEND=noninteractive
# ARGuments
##################################################################
ARG RELEASE
ARG DOWNLOAD_URL
ARG RELEASE={{ item }}
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-${RELEASE}.tar.gz
##################################################################
# Setup
@ -28,15 +28,16 @@ EXPOSE 8080
##################################################################
# Installing
##################################################################
RUN mkdir -p ${JIRA_INSTALL_DIR} \
&& curl --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" -L ${DOWNLOAD_URL} | tar -xz --strip-components=1 -C "$JIRA_INSTALL_DIR" \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ \
&& sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh \
&& sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh \
&& sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt clean -y && \
apt autoclean -y && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*

View File

@ -6,8 +6,8 @@ ARG DEBIAN_FRONTEND=noninteractive
# ARGuments
##################################################################
ARG RELEASE
ARG DOWNLOAD_URL
ARG RELEASE={{ item }}
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}-jira-${RELEASE}.tar.gz
##################################################################
# Setup
@ -28,21 +28,20 @@ EXPOSE 8080
##################################################################
# Installing
##################################################################
RUN mkdir -p ${JIRA_INSTALL_DIR} \
&& curl --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" -L ${DOWNLOAD_URL} | tar -xz --strip-components=1 -C "$JIRA_INSTALL_DIR" \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ \
&& sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh \
&& sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh \
&& sed -i -e 's/grep "java version"/grep -E "(openjdk|java) version"/g' ${JIRA_INSTALL_DIR}/bin/check-java.sh \
&& sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-software-${RELEASE}-jira-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt clean -y && \
apt autoclean -y && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*
RUN updatedb
COPY entrypoint.sh /entrypoint.sh

View File

@ -0,0 +1,51 @@
FROM epicmorg/debian:bookworm-jdk8
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG RELEASE={{ item }}
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
ENV JIRA_HOME /var/atlassian/application-data/jira
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
VOLUME ["${JIRA_HOME}"]
WORKDIR $JIRA_HOME
# Expose HTTP port
EXPOSE 8080
##################################################################
# Installing
##################################################################
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-software-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*
RUN updatedb
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh", "-fg"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -5,3 +5,4 @@ target_directory_jira_6: "/opt/tmp/jira/6"
target_directory_jira_7: "/opt/tmp/jira/7"
target_directory_jira_8: "/opt/tmp/jira/8"
target_directory_jira_9: "/opt/tmp/jira/9"
target_directory_jira_10: "/opt/tmp/jira/10"

View File

@ -0,0 +1,6 @@
10.0.0
10.0.1
10.1.1
10.1.2
10.2.0
10.2.1

View File

@ -20,3 +20,29 @@
9.12.0
9.12.1
9.12.2
9.12.3
9.12.4
9.12.5
9.12.6
9.12.7
9.12.8
9.12.9
9.12.10
9.12.11
9.12.12
9.12.13
9.12.14
9.12.15
9.13.0
9.13.1
9.14.0
9.14.1
9.15.2
9.16.0
9.16.1
9.17.0
9.17.1
9.17.2
9.17.3
9.17.4
9.17.5

View File

@ -22,4 +22,16 @@
9.4.12
9.4.14
9.4.15
9.4.15
9.4.16
9.4.17
9.4.18
9.4.19
9.4.20
9.4.21
9.4.22
9.4.23
9.4.24
9.4.25
9.4.26
9.4.27
9.4.28

View File

@ -21,7 +21,7 @@
with_items: "{{ testrail_versions }}"
# no_log: true
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.php70.j2"
dest: "{{ target_directory }}/{{ item }}/main/.env"

View File

@ -21,7 +21,7 @@
with_items: "{{ testrail_versions }}"
# no_log: true
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.php71.j2"
dest: "{{ target_directory }}/{{ item }}/main/.env"

View File

@ -21,7 +21,7 @@
with_items: "{{ testrail_versions }}"
# no_log: true
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.php72.j2"
dest: "{{ target_directory }}/{{ item }}/main/.env"

View File

@ -21,7 +21,7 @@
with_items: "{{ testrail_versions }}"
# no_log: true
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.php72.j2"
dest: "{{ target_directory }}/{{ item }}/main/.env"

View File

@ -21,7 +21,7 @@
with_items: "{{ testrail_versions }}"
# no_log: true
- name: Copy template with link to each version directory
- name: Copy .env with link from template to each version directory
template:
src: "template.env.php81.j2"
dest: "{{ target_directory }}/{{ item }}/main/.env"

View File

@ -1,10 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.CommandLine.DragonFruit" Version="0.3.0-alpha.21216.1" />
</ItemGroup>
</Project>

View File

@ -1,96 +0,0 @@
namespace Epicmorg.DockerGenerator
{
using System;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text.Json;
using System.Threading.Tasks;
class Program
{
/// <summary>
/// EpicMorg docker build script generator
/// </summary>
/// <param name="workdir">Working directory</param>
/// <param name="json">Atlassian product JSON</param>
/// <param name="product">Product name</param>
/// <param name="force">Overwrite existing directories</param>
/// <param name="archiveType">Overwrite archive type</param>
/// <param name="ignoreVersionsWithoutTemplates">Silently ignore versions without templates</param>
/// <returns></returns>
public static async Task Main(DirectoryInfo workdir, FileInfo json, string product, bool force = false, bool ignoreVersionsWithoutTemplates = false,string archiveType = ".tar.gz")
{
var jsonData = File.ReadAllText(json.FullName)["downloads(".Length..^1];
var items = JsonSerializer.Deserialize<ResponseItem[]>(jsonData, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
foreach (var item in items.Where(a=>a.ZipUrl != null && a.ZipUrl.ToString().EndsWith(archiveType) && !a.ZipUrl .ToString().Contains("-war")))
{
var majorVersion = item.Version.Split(".").First();
var templatePath = Path.Combine(workdir.FullName, product, "templates", majorVersion);
if (!Directory.Exists(templatePath))
{
if (!ignoreVersionsWithoutTemplates)
{
Console.Error.WriteLine("Failed to find template for the major version {0}. Exiting", majorVersion);
return;
}
else
{
Console.Error.WriteLine("Failed to find template for the major version {0}. Skipping", majorVersion);
continue;
}
}
var localPath = Path.Combine(product, majorVersion, item.Version);
var outputPath = Path.Combine(workdir.FullName, localPath);
if (Directory.Exists(outputPath))
{
if (!force)
{
Console.Error.WriteLine("Directory '{0}' already exists, skipping", localPath);
continue;
}
else
{
Console.Error.WriteLine("Directory '{0}' already exists, overwriting", localPath);
Directory.Delete(outputPath, true);
}
}
Directory.CreateDirectory(outputPath);
CopyFilesRecursively(new DirectoryInfo(templatePath), new DirectoryInfo(outputPath));
File.WriteAllText(
Path.Combine(outputPath, ".env"),
@$"
RELEASE={item.Version}
DOWNLOAD_URL={item.ZipUrl}
"
);
}
}
private static void CopyFilesRecursively(DirectoryInfo source, DirectoryInfo target)
{
foreach (DirectoryInfo dir in source.GetDirectories())
CopyFilesRecursively(dir, target.CreateSubdirectory(dir.Name));
foreach (FileInfo file in source.GetFiles())
file.CopyTo(Path.Combine(target.FullName, file.Name));
}
public partial class ResponseItem
{
public string Description { get; set; }
public string Edition { get; set; }
public Uri ZipUrl { get; set; }
public string TarUrl { get; set; }
public string Md5 { get; set; }
public string Size { get; set; }
public string Released { get; set; }
public string Type { get; set; }
public string Platform { get; set; }
public string Version { get; set; }
public Uri ReleaseNotes { get; set; }
public Uri UpgradeNotes { get; set; }
}
}
}

View File

@ -1,14 +0,0 @@
## How to Update jira v8 example
```
Epicmorg.DockerGenerator.exe
--workdir "<path>\docker-scripts\linux\atlassian\"
--json "<path>\atlassian-json\json-backups\archived\jira-software.json" \\
--product "jira"
--ignore-versions-without-templates
```
## inline
```
Epicmorg.DockerGenerator.exe --workdir "D:\Work\GitHub\EpicMorg\Main\docker-scripts\linux\atlassian\" --json "D:\Work\GitHub\EpicMorg\Main\atlassian-json\json-backups\archived\jira-software.json" --product "jira" --ignore-versions-without-templates
```

View File

@ -5,8 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG BITBUCKET_VERSION=8.17.0
ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-${BITBUCKET_VERSION}.tar.gz
ARG RELEASE=8.17.0
ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-${RELEASE}.tar.gz
##################################################################
# Setup

View File

@ -5,8 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG BITBUCKET_VERSION=8.17.0
ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-${BITBUCKET_VERSION}.tar.gz
ARG RELEASE=8.17.0
ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-${RELEASE}.tar.gz
##################################################################
# Setup

View File

@ -5,8 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG BITBUCKET_VERSION=8.17.0
ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-${BITBUCKET_VERSION}.tar.gz
ARG RELEASE=8.17.0
ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-${RELEASE}.tar.gz
##################################################################
# Setup

View File

@ -5,8 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG CONFLUENCE_VERSION=8.7.2
ARG DOWNLOAD_URL=https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-${CONFLUENCE_VERSION}.tar.gz
ARG RELEASE=8.7.2
ARG DOWNLOAD_URL=https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-${RELEASE}.tar.gz
##################################################################
# Setup

View File

@ -5,8 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG CONFLUENCE_VERSION=8.7.2
ARG DOWNLOAD_URL=https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-${CONFLUENCE_VERSION}.tar.gz
ARG RELEASE=8.7.2
ARG DOWNLOAD_URL=https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-${RELEASE}.tar.gz
##################################################################
# Setup

View File

@ -5,8 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG CONFLUENCE_VERSION=8.7.2
ARG DOWNLOAD_URL=https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-${CONFLUENCE_VERSION}.tar.gz
ARG RELEASE=8.7.2
ARG DOWNLOAD_URL=https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-${RELEASE}.tar.gz
##################################################################
# Setup

View File

@ -1,4 +1,4 @@
RELEASE=5.1.1
DOWNLOAD_URL=https://product-downloads.atlassian.com/software/crowd/downloads/atlassian-crowd-5.1.1.tar.gz
DOWNLOAD_URL=https://product-downloads.atlassian.com/software/crowd/downloads/atlassian-crowd-${RELEASE}.tar.gz

View File

@ -6,8 +6,8 @@ ARG DEBIAN_FRONTEND=noninteractive
# ARGuments
##################################################################
ARG RELEASE
ARG DOWNLOAD_URL
ARG RELEASE=5.1.1
ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/crowd/downloads/atlassian-crowd-${RELEASE}.tar.gz
##################################################################
# Setup

View File

@ -6,8 +6,8 @@ ARG DEBIAN_FRONTEND=noninteractive
# ARGuments
##################################################################
ARG RELEASE
ARG DOWNLOAD_URL
ARG RELEASE=5.1.1
ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/crowd/downloads/atlassian-crowd-${RELEASE}.tar.gz
##################################################################
# Setup

View File

@ -4,17 +4,11 @@ services:
image: "epicmorg/crowd:latest"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}
app-jdk11:
image: "epicmorg/crowd:latest-jdk11"
build:
context: .
dockerfile: Dockerfile.jdk11
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}
# app-jdk17:
# image: "epicmorg/crowd:latest-jdk17"
# build:

View File

@ -1,3 +1,2 @@
RELEASE=4.8.6
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-4.8.6.zip
DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-${RELEASE}.zip

View File

@ -5,8 +5,9 @@ ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG RELEASE
ARG DOWNLOAD_URL
ARG RELEASE=4.8.6
ARG DOWNLOAD_URL=https://www.atlassian.com/software/fisheye/downloads/binary/fisheye-${RELEASE}.zip
##################################################################
# Setup

View File

@ -4,6 +4,3 @@ services:
image: "epicmorg/fisheye-crucible:latest"
build:
context: .
args:
RELEASE: ${RELEASE}
DOWNLOAD_URL: ${DOWNLOAD_URL}

View File

@ -0,0 +1,2 @@
RELEASE=10.0.0
DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz

View File

@ -0,0 +1,51 @@
FROM epicmorg/debian:bookworm-jdk17
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG RELEASE=10.0.0
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
ENV JIRA_HOME /var/atlassian/application-data/jira
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
VOLUME ["${JIRA_HOME}"]
WORKDIR $JIRA_HOME
# Expose HTTP port
EXPOSE 8080
##################################################################
# Installing
##################################################################
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-software-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*
RUN updatedb
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh", "-fg"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,36 @@
PIP_BREAK_SYSTEM_PACKAGES=1
all: app
app:
make build
make deploy
make clean
build:
kaniko-wrapper --version
dry:
make dry-run
test:
make dry-run
dry-run:
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug --dry-run
build-compose:
docker-compose build --compress --parallel --progress plain
deploy:
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug
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

View File

@ -0,0 +1,10 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:10.0.0"
build:
context: .
app-jdk17:
image: "epicmorg/jira:10.0.0-jdk17"
build:
context: .

View File

@ -0,0 +1,113 @@
#!/bin/bash
set -euo pipefail
export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JRE_HOME="$JAVA_HOME/jre"
export JAVA_BINARY="$JRE_HOME/bin/java"
export JAVA_VERSION=$("$JAVA_BINARY" -version 2>&1 | awk -F '"' '/version/ {print $2}')
# 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}"
# Setup Data Center configuration
if [ ! -f "/etc/container_id" ]; then
uuidgen > /etc/container_id
fi
CONTAINER_ID=$(cat /etc/container_id)
CONTAINER_SHORT_ID=${CONTAINER_ID::8}
: ${CLUSTERED:=false}
: ${JIRA_NODE_ID:=jira_node_${CONTAINER_SHORT_ID}}
: ${JIRA_SHARED_HOME:=${JIRA_HOME}/shared}
: ${EHCACHE_PEER_DISCOVERY:=}
: ${EHCACHE_LISTENER_HOSTNAME:=}
: ${EHCACHE_LISTENER_PORT:=}
: ${EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS:=}
: ${EHCACHE_MULTICAST_ADDRESS:=}
: ${EHCACHE_MULTICAST_PORT:=}
: ${EHCACHE_MULTICAST_TIMETOLIVE:=}
: ${EHCACHE_MULTICAST_HOSTNAME:=}
# Cleanly set/unset values in cluster.properties
function set_cluster_property {
if [ -z $2 ]; then
if [ -f "${JIRA_HOME}/cluster.properties" ]; then
sed -i -e "/^${1}/d" "${JIRA_HOME}/cluster.properties"
fi
return
fi
if [ ! -f "${JIRA_HOME}/cluster.properties" ]; then
echo "${1}=${2}" >> "${JIRA_HOME}/cluster.properties"
elif grep "^${1}" "${JIRA_HOME}/cluster.properties"; then
sed -i -e "s#^${1}=.*#${1}=${2}#g" "${JIRA_HOME}/cluster.properties"
else
echo "${1}=${2}" >> "${JIRA_HOME}/cluster.properties"
fi
}
if [ "${CLUSTERED}" == "true" ]; then
set_cluster_property "jira.node.id" "${JIRA_NODE_ID}"
set_cluster_property "jira.shared.home" "${JIRA_SHARED_HOME}"
set_cluster_property "ehcache.peer.discovery" "${EHCACHE_PEER_DISCOVERY}"
set_cluster_property "ehcache.listener.hostName" "${EHCACHE_LISTENER_HOSTNAME}"
set_cluster_property "ehcache.listener.port" "${EHCACHE_LISTENER_PORT}"
set_cluster_property "ehcache.listener.socketTimeoutMillis" "${EHCACHE_LISTENER_PORT}"
set_cluster_property "ehcache.multicast.address" "${EHCACHE_MULTICAST_ADDRESS}"
set_cluster_property "ehcache.multicast.port" "${EHCACHE_MULTICAST_PORT}"
set_cluster_property "ehcache.multicast.timeToLive" "${EHCACHE_MULTICAST_TIMETOLIVE}"
set_cluster_property "ehcache.multicast.hostName" "${EHCACHE_MULTICAST_HOSTNAME}"
fi
function set_home {
echo "Setting up JIRA_HOME.."
if [ -z "$JIRA_HOME" ]; then
echo "Variable JIRA_HOME is empty. Aborting"
exit 1
fi
echo "JIRA_HOME is: ${JIRA_HOME}"
echo "Patchig jira-application.properties"
sed -i "s|^jira\.home *=.*|jira.home = ${JIRA_HOME}|" ${JIRA_INSTALL_DIR}/atlassian-jira/WEB-INF/classes/jira-application.properties
}
# Start Jira as the correct user
if [ "${UID}" -eq 0 ]; then
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${JIRA_HOME}")
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
chmod -R 700 "${JIRA_HOME}" &&
chown -R "${RUN_USER}:${RUN_GROUP}" "${JIRA_HOME}"
fi
set_home
# Now drop privileges
if [ -f "$JIRA_INSTALL_DIR/bin/start-jira.sh" ]; then
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/start-jira.sh $@"
else
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/startup.sh $@"
fi
else
set_home
if [ -f "$JIRA_INSTALL_DIR/bin/start-jira.sh" ]; then
exec "$JIRA_INSTALL_DIR/bin/start-jira.sh" "$@"
else
exec "$JIRA_INSTALL_DIR/bin/startup.sh" "$@"
fi
fi

View File

@ -0,0 +1,2 @@
RELEASE=10.0.1
DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz

View File

@ -0,0 +1,51 @@
FROM epicmorg/debian:bookworm-jdk17
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG RELEASE=10.0.1
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
ENV JIRA_HOME /var/atlassian/application-data/jira
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
VOLUME ["${JIRA_HOME}"]
WORKDIR $JIRA_HOME
# Expose HTTP port
EXPOSE 8080
##################################################################
# Installing
##################################################################
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-software-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*
RUN updatedb
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh", "-fg"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,36 @@
PIP_BREAK_SYSTEM_PACKAGES=1
all: app
app:
make build
make deploy
make clean
build:
kaniko-wrapper --version
dry:
make dry-run
test:
make dry-run
dry-run:
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug --dry-run
build-compose:
docker-compose build --compress --parallel --progress plain
deploy:
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug
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

View File

@ -0,0 +1,10 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:10.0.1"
build:
context: .
app-jdk17:
image: "epicmorg/jira:10.0.1-jdk17"
build:
context: .

View File

@ -0,0 +1,113 @@
#!/bin/bash
set -euo pipefail
export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JRE_HOME="$JAVA_HOME/jre"
export JAVA_BINARY="$JRE_HOME/bin/java"
export JAVA_VERSION=$("$JAVA_BINARY" -version 2>&1 | awk -F '"' '/version/ {print $2}')
# 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}"
# Setup Data Center configuration
if [ ! -f "/etc/container_id" ]; then
uuidgen > /etc/container_id
fi
CONTAINER_ID=$(cat /etc/container_id)
CONTAINER_SHORT_ID=${CONTAINER_ID::8}
: ${CLUSTERED:=false}
: ${JIRA_NODE_ID:=jira_node_${CONTAINER_SHORT_ID}}
: ${JIRA_SHARED_HOME:=${JIRA_HOME}/shared}
: ${EHCACHE_PEER_DISCOVERY:=}
: ${EHCACHE_LISTENER_HOSTNAME:=}
: ${EHCACHE_LISTENER_PORT:=}
: ${EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS:=}
: ${EHCACHE_MULTICAST_ADDRESS:=}
: ${EHCACHE_MULTICAST_PORT:=}
: ${EHCACHE_MULTICAST_TIMETOLIVE:=}
: ${EHCACHE_MULTICAST_HOSTNAME:=}
# Cleanly set/unset values in cluster.properties
function set_cluster_property {
if [ -z $2 ]; then
if [ -f "${JIRA_HOME}/cluster.properties" ]; then
sed -i -e "/^${1}/d" "${JIRA_HOME}/cluster.properties"
fi
return
fi
if [ ! -f "${JIRA_HOME}/cluster.properties" ]; then
echo "${1}=${2}" >> "${JIRA_HOME}/cluster.properties"
elif grep "^${1}" "${JIRA_HOME}/cluster.properties"; then
sed -i -e "s#^${1}=.*#${1}=${2}#g" "${JIRA_HOME}/cluster.properties"
else
echo "${1}=${2}" >> "${JIRA_HOME}/cluster.properties"
fi
}
if [ "${CLUSTERED}" == "true" ]; then
set_cluster_property "jira.node.id" "${JIRA_NODE_ID}"
set_cluster_property "jira.shared.home" "${JIRA_SHARED_HOME}"
set_cluster_property "ehcache.peer.discovery" "${EHCACHE_PEER_DISCOVERY}"
set_cluster_property "ehcache.listener.hostName" "${EHCACHE_LISTENER_HOSTNAME}"
set_cluster_property "ehcache.listener.port" "${EHCACHE_LISTENER_PORT}"
set_cluster_property "ehcache.listener.socketTimeoutMillis" "${EHCACHE_LISTENER_PORT}"
set_cluster_property "ehcache.multicast.address" "${EHCACHE_MULTICAST_ADDRESS}"
set_cluster_property "ehcache.multicast.port" "${EHCACHE_MULTICAST_PORT}"
set_cluster_property "ehcache.multicast.timeToLive" "${EHCACHE_MULTICAST_TIMETOLIVE}"
set_cluster_property "ehcache.multicast.hostName" "${EHCACHE_MULTICAST_HOSTNAME}"
fi
function set_home {
echo "Setting up JIRA_HOME.."
if [ -z "$JIRA_HOME" ]; then
echo "Variable JIRA_HOME is empty. Aborting"
exit 1
fi
echo "JIRA_HOME is: ${JIRA_HOME}"
echo "Patchig jira-application.properties"
sed -i "s|^jira\.home *=.*|jira.home = ${JIRA_HOME}|" ${JIRA_INSTALL_DIR}/atlassian-jira/WEB-INF/classes/jira-application.properties
}
# Start Jira as the correct user
if [ "${UID}" -eq 0 ]; then
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${JIRA_HOME}")
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
chmod -R 700 "${JIRA_HOME}" &&
chown -R "${RUN_USER}:${RUN_GROUP}" "${JIRA_HOME}"
fi
set_home
# Now drop privileges
if [ -f "$JIRA_INSTALL_DIR/bin/start-jira.sh" ]; then
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/start-jira.sh $@"
else
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/startup.sh $@"
fi
else
set_home
if [ -f "$JIRA_INSTALL_DIR/bin/start-jira.sh" ]; then
exec "$JIRA_INSTALL_DIR/bin/start-jira.sh" "$@"
else
exec "$JIRA_INSTALL_DIR/bin/startup.sh" "$@"
fi
fi

View File

@ -0,0 +1,2 @@
RELEASE=10.1.1
DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz

View File

@ -0,0 +1,51 @@
FROM epicmorg/debian:bookworm-jdk17
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG RELEASE=10.1.1
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
ENV JIRA_HOME /var/atlassian/application-data/jira
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
VOLUME ["${JIRA_HOME}"]
WORKDIR $JIRA_HOME
# Expose HTTP port
EXPOSE 8080
##################################################################
# Installing
##################################################################
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-software-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*
RUN updatedb
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh", "-fg"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,36 @@
PIP_BREAK_SYSTEM_PACKAGES=1
all: app
app:
make build
make deploy
make clean
build:
kaniko-wrapper --version
dry:
make dry-run
test:
make dry-run
dry-run:
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug --dry-run
build-compose:
docker-compose build --compress --parallel --progress plain
deploy:
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug
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

View File

@ -0,0 +1,10 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:10.1.1"
build:
context: .
app-jdk17:
image: "epicmorg/jira:10.1.1-jdk17"
build:
context: .

View File

@ -0,0 +1,113 @@
#!/bin/bash
set -euo pipefail
export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JRE_HOME="$JAVA_HOME/jre"
export JAVA_BINARY="$JRE_HOME/bin/java"
export JAVA_VERSION=$("$JAVA_BINARY" -version 2>&1 | awk -F '"' '/version/ {print $2}')
# 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}"
# Setup Data Center configuration
if [ ! -f "/etc/container_id" ]; then
uuidgen > /etc/container_id
fi
CONTAINER_ID=$(cat /etc/container_id)
CONTAINER_SHORT_ID=${CONTAINER_ID::8}
: ${CLUSTERED:=false}
: ${JIRA_NODE_ID:=jira_node_${CONTAINER_SHORT_ID}}
: ${JIRA_SHARED_HOME:=${JIRA_HOME}/shared}
: ${EHCACHE_PEER_DISCOVERY:=}
: ${EHCACHE_LISTENER_HOSTNAME:=}
: ${EHCACHE_LISTENER_PORT:=}
: ${EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS:=}
: ${EHCACHE_MULTICAST_ADDRESS:=}
: ${EHCACHE_MULTICAST_PORT:=}
: ${EHCACHE_MULTICAST_TIMETOLIVE:=}
: ${EHCACHE_MULTICAST_HOSTNAME:=}
# Cleanly set/unset values in cluster.properties
function set_cluster_property {
if [ -z $2 ]; then
if [ -f "${JIRA_HOME}/cluster.properties" ]; then
sed -i -e "/^${1}/d" "${JIRA_HOME}/cluster.properties"
fi
return
fi
if [ ! -f "${JIRA_HOME}/cluster.properties" ]; then
echo "${1}=${2}" >> "${JIRA_HOME}/cluster.properties"
elif grep "^${1}" "${JIRA_HOME}/cluster.properties"; then
sed -i -e "s#^${1}=.*#${1}=${2}#g" "${JIRA_HOME}/cluster.properties"
else
echo "${1}=${2}" >> "${JIRA_HOME}/cluster.properties"
fi
}
if [ "${CLUSTERED}" == "true" ]; then
set_cluster_property "jira.node.id" "${JIRA_NODE_ID}"
set_cluster_property "jira.shared.home" "${JIRA_SHARED_HOME}"
set_cluster_property "ehcache.peer.discovery" "${EHCACHE_PEER_DISCOVERY}"
set_cluster_property "ehcache.listener.hostName" "${EHCACHE_LISTENER_HOSTNAME}"
set_cluster_property "ehcache.listener.port" "${EHCACHE_LISTENER_PORT}"
set_cluster_property "ehcache.listener.socketTimeoutMillis" "${EHCACHE_LISTENER_PORT}"
set_cluster_property "ehcache.multicast.address" "${EHCACHE_MULTICAST_ADDRESS}"
set_cluster_property "ehcache.multicast.port" "${EHCACHE_MULTICAST_PORT}"
set_cluster_property "ehcache.multicast.timeToLive" "${EHCACHE_MULTICAST_TIMETOLIVE}"
set_cluster_property "ehcache.multicast.hostName" "${EHCACHE_MULTICAST_HOSTNAME}"
fi
function set_home {
echo "Setting up JIRA_HOME.."
if [ -z "$JIRA_HOME" ]; then
echo "Variable JIRA_HOME is empty. Aborting"
exit 1
fi
echo "JIRA_HOME is: ${JIRA_HOME}"
echo "Patchig jira-application.properties"
sed -i "s|^jira\.home *=.*|jira.home = ${JIRA_HOME}|" ${JIRA_INSTALL_DIR}/atlassian-jira/WEB-INF/classes/jira-application.properties
}
# Start Jira as the correct user
if [ "${UID}" -eq 0 ]; then
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${JIRA_HOME}")
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
chmod -R 700 "${JIRA_HOME}" &&
chown -R "${RUN_USER}:${RUN_GROUP}" "${JIRA_HOME}"
fi
set_home
# Now drop privileges
if [ -f "$JIRA_INSTALL_DIR/bin/start-jira.sh" ]; then
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/start-jira.sh $@"
else
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/startup.sh $@"
fi
else
set_home
if [ -f "$JIRA_INSTALL_DIR/bin/start-jira.sh" ]; then
exec "$JIRA_INSTALL_DIR/bin/start-jira.sh" "$@"
else
exec "$JIRA_INSTALL_DIR/bin/startup.sh" "$@"
fi
fi

View File

@ -0,0 +1,2 @@
RELEASE=10.1.2
DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz

View File

@ -0,0 +1,51 @@
FROM epicmorg/debian:bookworm-jdk17
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
ARG RELEASE=10.1.2
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz
##################################################################
# Setup
##################################################################
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
ENV JIRA_HOME /var/atlassian/application-data/jira
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
VOLUME ["${JIRA_HOME}"]
WORKDIR $JIRA_HOME
# Expose HTTP port
EXPOSE 8080
##################################################################
# Installing
##################################################################
ADD ${DOWNLOAD_URL} /tmp
RUN mkdir -p ${JIRA_INSTALL_DIR} && \
tar -xvzf /tmp/atlassian-jira-software-${RELEASE}.tar.gz --strip-components=1 --directory "${JIRA_INSTALL_DIR}" && \
chown -R ${RUN_USER}:${RUN_GROUP} ${JIRA_INSTALL_DIR}/ && \
sed -i -e 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""$/: \${JVM_SUPPORT_RECOMMENDED_ARGS:=""}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${JIRA_INSTALL_DIR}/bin/setenv.sh && \
sed -i -e 's/port="8080"/port="8080" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${JIRA_INSTALL_DIR}/conf/server.xml && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
rm -rfv /tmp/*
RUN updatedb
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh", "-fg"]
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -0,0 +1,36 @@
PIP_BREAK_SYSTEM_PACKAGES=1
all: app
app:
make build
make deploy
make clean
build:
kaniko-wrapper --version
dry:
make dry-run
test:
make dry-run
dry-run:
kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug --dry-run
build-compose:
docker-compose build --compress --parallel --progress plain
deploy:
kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:v1.23.2-debug
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

View File

@ -0,0 +1,10 @@
#version: '3.9'
services:
app:
image: "epicmorg/jira:10.1.2"
build:
context: .
app-jdk17:
image: "epicmorg/jira:10.1.2-jdk17"
build:
context: .

View File

@ -0,0 +1,113 @@
#!/bin/bash
set -euo pipefail
export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JRE_HOME="$JAVA_HOME/jre"
export JAVA_BINARY="$JRE_HOME/bin/java"
export JAVA_VERSION=$("$JAVA_BINARY" -version 2>&1 | awk -F '"' '/version/ {print $2}')
# 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}"
# Setup Data Center configuration
if [ ! -f "/etc/container_id" ]; then
uuidgen > /etc/container_id
fi
CONTAINER_ID=$(cat /etc/container_id)
CONTAINER_SHORT_ID=${CONTAINER_ID::8}
: ${CLUSTERED:=false}
: ${JIRA_NODE_ID:=jira_node_${CONTAINER_SHORT_ID}}
: ${JIRA_SHARED_HOME:=${JIRA_HOME}/shared}
: ${EHCACHE_PEER_DISCOVERY:=}
: ${EHCACHE_LISTENER_HOSTNAME:=}
: ${EHCACHE_LISTENER_PORT:=}
: ${EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS:=}
: ${EHCACHE_MULTICAST_ADDRESS:=}
: ${EHCACHE_MULTICAST_PORT:=}
: ${EHCACHE_MULTICAST_TIMETOLIVE:=}
: ${EHCACHE_MULTICAST_HOSTNAME:=}
# Cleanly set/unset values in cluster.properties
function set_cluster_property {
if [ -z $2 ]; then
if [ -f "${JIRA_HOME}/cluster.properties" ]; then
sed -i -e "/^${1}/d" "${JIRA_HOME}/cluster.properties"
fi
return
fi
if [ ! -f "${JIRA_HOME}/cluster.properties" ]; then
echo "${1}=${2}" >> "${JIRA_HOME}/cluster.properties"
elif grep "^${1}" "${JIRA_HOME}/cluster.properties"; then
sed -i -e "s#^${1}=.*#${1}=${2}#g" "${JIRA_HOME}/cluster.properties"
else
echo "${1}=${2}" >> "${JIRA_HOME}/cluster.properties"
fi
}
if [ "${CLUSTERED}" == "true" ]; then
set_cluster_property "jira.node.id" "${JIRA_NODE_ID}"
set_cluster_property "jira.shared.home" "${JIRA_SHARED_HOME}"
set_cluster_property "ehcache.peer.discovery" "${EHCACHE_PEER_DISCOVERY}"
set_cluster_property "ehcache.listener.hostName" "${EHCACHE_LISTENER_HOSTNAME}"
set_cluster_property "ehcache.listener.port" "${EHCACHE_LISTENER_PORT}"
set_cluster_property "ehcache.listener.socketTimeoutMillis" "${EHCACHE_LISTENER_PORT}"
set_cluster_property "ehcache.multicast.address" "${EHCACHE_MULTICAST_ADDRESS}"
set_cluster_property "ehcache.multicast.port" "${EHCACHE_MULTICAST_PORT}"
set_cluster_property "ehcache.multicast.timeToLive" "${EHCACHE_MULTICAST_TIMETOLIVE}"
set_cluster_property "ehcache.multicast.hostName" "${EHCACHE_MULTICAST_HOSTNAME}"
fi
function set_home {
echo "Setting up JIRA_HOME.."
if [ -z "$JIRA_HOME" ]; then
echo "Variable JIRA_HOME is empty. Aborting"
exit 1
fi
echo "JIRA_HOME is: ${JIRA_HOME}"
echo "Patchig jira-application.properties"
sed -i "s|^jira\.home *=.*|jira.home = ${JIRA_HOME}|" ${JIRA_INSTALL_DIR}/atlassian-jira/WEB-INF/classes/jira-application.properties
}
# Start Jira as the correct user
if [ "${UID}" -eq 0 ]; then
echo "User is currently root. Will change directory ownership to ${RUN_USER}:${RUN_GROUP}, then downgrade permission to ${RUN_USER}"
PERMISSIONS_SIGNATURE=$(stat -c "%u:%U:%a" "${JIRA_HOME}")
EXPECTED_PERMISSIONS=$(id -u ${RUN_USER}):${RUN_USER}:700
if [ "${PERMISSIONS_SIGNATURE}" != "${EXPECTED_PERMISSIONS}" ]; then
chmod -R 700 "${JIRA_HOME}" &&
chown -R "${RUN_USER}:${RUN_GROUP}" "${JIRA_HOME}"
fi
set_home
# Now drop privileges
if [ -f "$JIRA_INSTALL_DIR/bin/start-jira.sh" ]; then
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/start-jira.sh $@"
else
exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/startup.sh $@"
fi
else
set_home
if [ -f "$JIRA_INSTALL_DIR/bin/start-jira.sh" ]; then
exec "$JIRA_INSTALL_DIR/bin/start-jira.sh" "$@"
else
exec "$JIRA_INSTALL_DIR/bin/startup.sh" "$@"
fi
fi

View File

@ -0,0 +1,2 @@
RELEASE=10.2.0
DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz

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