diff --git a/CHANGELOG.md b/CHANGELOG.md index f572abf27..9f897829b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * added `jdk17` support. * added `freegpt` webui by [Em1tSan/freegpt-webui-ru](https://github.com/Em1tSan/freegpt-webui-ru). * updated `atlassian` images + * added `jira` version `9` images * updated `testrail` images * added reworked `php5.5` iamge. * added reworked `php7.0` + `apache2` images with `cassandra`, `ioncube` and `bolt` support. diff --git a/bin/ansible/playbook.yml b/bin/ansible/playbook.yml index 1dd2a3837..2ededfb40 100644 --- a/bin/ansible/playbook.yml +++ b/bin/ansible/playbook.yml @@ -18,5 +18,5 @@ connection: local gather_facts: false roles: -# - atlassian.jira - - gurock.testrail \ No newline at end of file + - atlassian.jira + #- gurock.testrail \ No newline at end of file diff --git a/bin/ansible/roles/atlassian.jira/files/docker-compose.jdk8-11-17.yml b/bin/ansible/roles/atlassian.jira/files/docker-compose.jdk8-11-17.yml new file mode 100644 index 000000000..a08cce169 --- /dev/null +++ b/bin/ansible/roles/atlassian.jira/files/docker-compose.jdk8-11-17.yml @@ -0,0 +1,25 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/templates/8/docker-compose.yml b/bin/ansible/roles/atlassian.jira/files/docker-compose.jdk8-11.yml similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/8/docker-compose.yml rename to bin/ansible/roles/atlassian.jira/files/docker-compose.jdk8-11.yml diff --git a/bin/ansible/roles/atlassian.jira/tasks/atlassian.jira.9.jdk8-11-17.yml b/bin/ansible/roles/atlassian.jira/tasks/atlassian.jira.9.jdk8-11-17.yml new file mode 100644 index 000000000..19ad1fc10 --- /dev/null +++ b/bin/ansible/roles/atlassian.jira/tasks/atlassian.jira.9.jdk8-11-17.yml @@ -0,0 +1,57 @@ +- name: Read versions from file + slurp: + src: "roles/common/files/versions/jira/9.jdk8-11-17.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 }}/{{ item }}" + state: directory + mode: '0755' + with_items: "{{ jira_versions }}" + +- name: Copy template with link to each version directory + template: + src: "template.env.j2" + dest: "{{ target_directory }}/{{ item }}/.env" + with_items: "{{ jira_versions }}" + +- name: Copy docker-compose.yml from 'files' directory to each version directory + copy: + src: "docker-compose.jdk8-11-17.yml" + dest: "{{ target_directory }}/{{ item }}/docker-compose.yml" + with_items: "{{ jira_versions }}" + +- name: Copy Dockerfile from 'files' directory to each version directory + copy: + src: "Dockerfile" + dest: "{{ target_directory }}/{{ item }}/Dockerfile" + with_items: "{{ jira_versions }}" + +- name: Copy Dockerfile.jdk11 from 'files' directory to each version directory + copy: + src: "Dockerfile.jdk11" + dest: "{{ target_directory }}/{{ item }}/Dockerfile.jdk11" + with_items: "{{ jira_versions }}" + +- name: Copy Dockerfile.jdk17 from 'files' directory to each version directory + copy: + src: "Dockerfile.jdk17" + dest: "{{ target_directory }}/{{ item }}/Dockerfile.jdk17" + with_items: "{{ jira_versions }}" + +- name: Copy entrypoint.sh from 'files' directory to each version directory + copy: + src: "entrypoint.sh" + dest: "{{ target_directory }}/{{ item }}/entrypoint.sh" + with_items: "{{ jira_versions }}" + +- name: Copy Makefile from 'files' directory to each version directory + copy: + src: "Makefile" + dest: "{{ target_directory }}/{{ item }}/Makefile" + with_items: "{{ jira_versions }}" diff --git a/bin/ansible/roles/atlassian.jira/tasks/atlassian.jira.9.jdk8-11.yml b/bin/ansible/roles/atlassian.jira/tasks/atlassian.jira.9.jdk8-11.yml new file mode 100644 index 000000000..56578ac12 --- /dev/null +++ b/bin/ansible/roles/atlassian.jira/tasks/atlassian.jira.9.jdk8-11.yml @@ -0,0 +1,51 @@ +- name: Read versions from file + slurp: + src: "roles/common/files/versions/jira/9.jdk8-11.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 }}/{{ item }}" + state: directory + mode: '0755' + with_items: "{{ jira_versions }}" + +- name: Copy template with link to each version directory + template: + src: "template.env.j2" + dest: "{{ target_directory }}/{{ item }}/.env" + with_items: "{{ jira_versions }}" + +- name: Copy docker-compose.yml from 'files' directory to each version directory + copy: + src: "docker-compose.jdk8-11.yml" + dest: "{{ target_directory }}/{{ item }}/docker-compose.yml" + with_items: "{{ jira_versions }}" + +- name: Copy Dockerfile from 'files' directory to each version directory + copy: + src: "Dockerfile" + dest: "{{ target_directory }}/{{ item }}/Dockerfile" + with_items: "{{ jira_versions }}" + +- name: Copy Dockerfile.jdk11 from 'files' directory to each version directory + copy: + src: "Dockerfile.jdk11" + dest: "{{ target_directory }}/{{ item }}/Dockerfile.jdk11" + with_items: "{{ jira_versions }}" + +- name: Copy entrypoint.sh from 'files' directory to each version directory + copy: + src: "entrypoint.sh" + dest: "{{ target_directory }}/{{ item }}/entrypoint.sh" + with_items: "{{ jira_versions }}" + +- name: Copy Makefile from 'files' directory to each version directory + copy: + src: "Makefile" + dest: "{{ target_directory }}/{{ item }}/Makefile" + with_items: "{{ jira_versions }}" diff --git a/bin/ansible/roles/atlassian.jira/tasks/atlassian.jira.9.yml b/bin/ansible/roles/atlassian.jira/tasks/atlassian.jira.9.yml deleted file mode 100644 index 0f12a0f84..000000000 --- a/bin/ansible/roles/atlassian.jira/tasks/atlassian.jira.9.yml +++ /dev/null @@ -1,30 +0,0 @@ -- name: Read versions from file - slurp: - src: "{{ versions_file }}" - 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 }}/{{ item }}" - state: directory - mode: '0755' - with_items: "{{ jira_versions }}" - -- name: Copy template with link to each version directory - template: - src: "template.env.j2" - dest: "{{ target_directory }}/{{ item }}/.env" - with_items: "{{ jira_versions }}" - -- name: Copy all files from 'files' directory to each version directory - copy: - src: "files/" - dest: "{{ target_directory }}/{{ item }}/" - with_items: "{{ jira_versions }}" -# no_log: true - - \ No newline at end of file diff --git a/bin/ansible/roles/atlassian.jira/tasks/main.yml b/bin/ansible/roles/atlassian.jira/tasks/main.yml index c72837bd1..900602e2d 100644 --- a/bin/ansible/roles/atlassian.jira/tasks/main.yml +++ b/bin/ansible/roles/atlassian.jira/tasks/main.yml @@ -1,2 +1,5 @@ -- name: "Generate images for Jira 9 (jdk8, jdk11, jdk17)" - import_tasks: atlassian.jira.9.yml +- name: "Generate images for Jira 9.0-9.5 (jdk8, jdk11)" + import_tasks: atlassian.jira.9.jdk8-11.yml + +- name: "Generate images for Jira 9.5+ (jdk8, jdk11, jdk17)" + import_tasks: atlassian.jira.9.jdk8-11-17.yml diff --git a/bin/ansible/roles/atlassian.jira/vars/main.yml b/bin/ansible/roles/atlassian.jira/vars/main.yml index 481bb4446..8a0fd4e7a 100644 --- a/bin/ansible/roles/atlassian.jira/vars/main.yml +++ b/bin/ansible/roles/atlassian.jira/vars/main.yml @@ -1,3 +1,2 @@ # Defaults -versions_file: "roles/common/files/versions/jira/9.txt" target_directory: "/opt/tmp/jira/" diff --git a/bin/ansible/roles/common/files/versions/jira/9.jdk8-11-17.txt b/bin/ansible/roles/common/files/versions/jira/9.jdk8-11-17.txt new file mode 100644 index 000000000..6cc6145b4 --- /dev/null +++ b/bin/ansible/roles/common/files/versions/jira/9.jdk8-11-17.txt @@ -0,0 +1,10 @@ +9.5.0 +9.5.1 +9.6.0 +9.7.0 +9.7.1 +9.8.0 +9.8.1 +9.9.0 +9.9.1 +9.10.0 diff --git a/bin/ansible/roles/common/files/versions/jira/9.jdk8-11.txt b/bin/ansible/roles/common/files/versions/jira/9.jdk8-11.txt new file mode 100644 index 000000000..ec778897e --- /dev/null +++ b/bin/ansible/roles/common/files/versions/jira/9.jdk8-11.txt @@ -0,0 +1,18 @@ +9.0.0 +9.1.0 +9.1.1 +9.2.0 +9.2.1 +9.3.0 +9.3.1 +9.3.2 +9.3.3 +9.4.0 +9.4.1 +9.4.2 +9.4.3 +9.4.4 +9.4.5 +9.4.6 +9.4.7 +9.4.8 diff --git a/bin/ansible/roles/common/files/versions/jira/9.txt b/bin/ansible/roles/common/files/versions/jira/9.txt deleted file mode 100644 index 09df5b3d1..000000000 --- a/bin/ansible/roles/common/files/versions/jira/9.txt +++ /dev/null @@ -1,2 +0,0 @@ -x.x.x.x -y.y.y.y diff --git a/bin/ansible/roles/gurock.testrail/tasks/main.yml b/bin/ansible/roles/gurock.testrail/tasks/main.yml index 48d4f683b..0dba63e2f 100644 --- a/bin/ansible/roles/gurock.testrail/tasks/main.yml +++ b/bin/ansible/roles/gurock.testrail/tasks/main.yml @@ -1,17 +1,17 @@ #- name: "Generate images for Testrail (PHP 5.5)" # import_tasks: testrail.php55.yml -- name: "Generate images for Testrail (PHP 7.0)" - import_tasks: testrail.php70.yml +#- name: "Generate images for Testrail (PHP 7.0)" +# import_tasks: testrail.php70.yml -- name: "Generate images for Testrail (PHP 7.1)" - import_tasks: testrail.php71.yml +#- name: "Generate images for Testrail (PHP 7.1)" +# import_tasks: testrail.php71.yml -- name: "Generate images for Testrail (PHP 7.2)" - import_tasks: testrail.php72.yml +#- name: "Generate images for Testrail (PHP 7.2)" +# import_tasks: testrail.php72.yml -- name: "Generate images for Testrail (PHP 7.4)" - import_tasks: testrail.php74.yml +#- name: "Generate images for Testrail (PHP 7.4)" +# import_tasks: testrail.php74.yml - name: "Generate images for Testrail (PHP 8.1)" import_tasks: testrail.php81.yml diff --git a/linux/ecosystem/atlassian/jira/9/9.0.0/.env b/linux/ecosystem/atlassian/jira/9/9.0.0/.env index 8642c7b7c..bb1b993ac 100644 --- a/linux/ecosystem/atlassian/jira/9/9.0.0/.env +++ b/linux/ecosystem/atlassian/jira/9/9.0.0/.env @@ -1,3 +1,2 @@ - RELEASE=9.0.0 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.0.0.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.0.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.0.0/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.0.0/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.0.0/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.0.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.0.0/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.0.0/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.0.0/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.1.0/.env b/linux/ecosystem/atlassian/jira/9/9.1.0/.env index b10a065f3..039873bb9 100644 --- a/linux/ecosystem/atlassian/jira/9/9.1.0/.env +++ b/linux/ecosystem/atlassian/jira/9/9.1.0/.env @@ -1,3 +1,2 @@ - RELEASE=9.1.0 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.1.0.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.1.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.1.0/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.1.0/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.1.0/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.1.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.1.0/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.1.0/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.1.0/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.1.1/.env b/linux/ecosystem/atlassian/jira/9/9.1.1/.env index 75cb3b863..5a8f6ef97 100644 --- a/linux/ecosystem/atlassian/jira/9/9.1.1/.env +++ b/linux/ecosystem/atlassian/jira/9/9.1.1/.env @@ -1,3 +1,2 @@ - RELEASE=9.1.1 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.1.1.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.1.1/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.1.1/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.1.1/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.1.1/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.1.1/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.1.1/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.1.1/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.1.1/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.10.0/.env b/linux/ecosystem/atlassian/jira/9/9.10.0/.env index f8d89fa28..b88bb3637 100644 --- a/linux/ecosystem/atlassian/jira/9/9.10.0/.env +++ b/linux/ecosystem/atlassian/jira/9/9.10.0/.env @@ -1,3 +1,2 @@ - RELEASE=9.10.0 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile.jdk17 b/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile.jdk17 index 3e2130633..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile.jdk17 +++ b/linux/ecosystem/atlassian/jira/9/9.10.0/Dockerfile.jdk17 @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye-jdk17 +FROM epicmorg/debian:bullseye-jdk11 LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.2.0/.env b/linux/ecosystem/atlassian/jira/9/9.2.0/.env index 3d2fe30f2..2826907d5 100644 --- a/linux/ecosystem/atlassian/jira/9/9.2.0/.env +++ b/linux/ecosystem/atlassian/jira/9/9.2.0/.env @@ -1,3 +1,2 @@ - RELEASE=9.2.0 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.2.0.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.2.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.2.0/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.2.0/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.2.0/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.2.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.2.0/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.2.0/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.2.0/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.2.1/.env b/linux/ecosystem/atlassian/jira/9/9.2.1/.env index db859927f..2e4544b21 100644 --- a/linux/ecosystem/atlassian/jira/9/9.2.1/.env +++ b/linux/ecosystem/atlassian/jira/9/9.2.1/.env @@ -1,3 +1,2 @@ - RELEASE=9.2.1 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.2.1.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.2.1/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.2.1/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.2.1/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.2.1/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.2.1/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.2.1/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.2.1/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.2.1/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.3.0/.env b/linux/ecosystem/atlassian/jira/9/9.3.0/.env index fd38c2041..33e9dc88e 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.0/.env +++ b/linux/ecosystem/atlassian/jira/9/9.3.0/.env @@ -1,3 +1,2 @@ - RELEASE=9.3.0 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.3.0.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.3.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.3.0/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.0/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.3.0/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.3.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.3.0/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.0/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.3.0/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.3.1/.env b/linux/ecosystem/atlassian/jira/9/9.3.1/.env index d216aa7c9..a33465acb 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.1/.env +++ b/linux/ecosystem/atlassian/jira/9/9.3.1/.env @@ -1,3 +1,2 @@ - RELEASE=9.3.1 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.3.1.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.3.1/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.3.1/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.1/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.3.1/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.3.1/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.3.1/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.1/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.3.1/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.3.2/.env b/linux/ecosystem/atlassian/jira/9/9.3.2/.env index b52aee2fb..9e6c0c26c 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.2/.env +++ b/linux/ecosystem/atlassian/jira/9/9.3.2/.env @@ -1,3 +1,2 @@ - RELEASE=9.3.2 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.3.2.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.3.2/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.3.2/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.2/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.3.2/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.3.2/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.3.2/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.2/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.3.2/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.3.3/.env b/linux/ecosystem/atlassian/jira/9/9.3.3/.env index 8336df44a..d42ab105e 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.3/.env +++ b/linux/ecosystem/atlassian/jira/9/9.3.3/.env @@ -1,3 +1,2 @@ - RELEASE=9.3.3 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.3.3.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.3.3/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.3.3/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.3/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.3.3/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.3.3/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.3.3/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.3.3/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.3.3/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.0/.env b/linux/ecosystem/atlassian/jira/9/9.4.0/.env index 0b74c8762..f7c43fbc7 100644 --- a/linux/ecosystem/atlassian/jira/9/9.4.0/.env +++ b/linux/ecosystem/atlassian/jira/9/9.4.0/.env @@ -1,3 +1,2 @@ - RELEASE=9.4.0 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.4.0.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.4.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.4.0/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.4.0/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.4.0/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.4.0/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.4.0/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.4.0/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.1/.env b/linux/ecosystem/atlassian/jira/9/9.4.1/.env index 11ad2480c..c249ffd86 100644 --- a/linux/ecosystem/atlassian/jira/9/9.4.1/.env +++ b/linux/ecosystem/atlassian/jira/9/9.4.1/.env @@ -1,3 +1,2 @@ - RELEASE=9.4.1 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.4.1.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.4.1/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.4.1/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.4.1/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.4.1/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.1/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.4.1/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.4.1/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.4.1/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.2/.env b/linux/ecosystem/atlassian/jira/9/9.4.2/.env index 6decdc5c9..6fabc74a0 100644 --- a/linux/ecosystem/atlassian/jira/9/9.4.2/.env +++ b/linux/ecosystem/atlassian/jira/9/9.4.2/.env @@ -1,3 +1,2 @@ - RELEASE=9.4.2 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.4.2.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.4.2/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.4.2/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.4.2/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.4.2/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.2/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.4.2/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.4.2/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.4.2/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.3/.env b/linux/ecosystem/atlassian/jira/9/9.4.3/.env new file mode 100644 index 000000000..80f04c90c --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.3/.env @@ -0,0 +1,2 @@ +RELEASE=9.4.3 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/templates/7/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.4.3/Dockerfile similarity index 96% rename from linux/ecosystem/atlassian/jira/templates/7/Dockerfile rename to linux/ecosystem/atlassian/jira/9/9.4.3/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/templates/7/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.4.3/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/9/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.4.3/Dockerfile.jdk11 similarity index 96% rename from linux/ecosystem/atlassian/jira/templates/9/Dockerfile.jdk11 rename to linux/ecosystem/atlassian/jira/9/9.4.3/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/templates/9/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.4.3/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/2/Makefile b/linux/ecosystem/atlassian/jira/9/9.4.3/Makefile similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/2/Makefile rename to linux/ecosystem/atlassian/jira/9/9.4.3/Makefile diff --git a/linux/ecosystem/atlassian/jira/templates/9/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.4.3/docker-compose.yml similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/9/docker-compose.yml rename to linux/ecosystem/atlassian/jira/9/9.4.3/docker-compose.yml diff --git a/linux/ecosystem/atlassian/jira/templates/2/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.4.3/entrypoint.sh similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/2/entrypoint.sh rename to linux/ecosystem/atlassian/jira/9/9.4.3/entrypoint.sh diff --git a/linux/ecosystem/atlassian/jira/9/9.4.4/.env b/linux/ecosystem/atlassian/jira/9/9.4.4/.env new file mode 100644 index 000000000..a89aba135 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.4/.env @@ -0,0 +1,2 @@ +RELEASE=9.4.4 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/templates/8/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.4.4/Dockerfile similarity index 96% rename from linux/ecosystem/atlassian/jira/templates/8/Dockerfile rename to linux/ecosystem/atlassian/jira/9/9.4.4/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/templates/8/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.4.4/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/8/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.4.4/Dockerfile.jdk11 similarity index 96% rename from linux/ecosystem/atlassian/jira/templates/8/Dockerfile.jdk11 rename to linux/ecosystem/atlassian/jira/9/9.4.4/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/templates/8/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.4.4/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/3/Makefile b/linux/ecosystem/atlassian/jira/9/9.4.4/Makefile similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/3/Makefile rename to linux/ecosystem/atlassian/jira/9/9.4.4/Makefile diff --git a/linux/ecosystem/atlassian/jira/9/9.4.4/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.4.4/docker-compose.yml new file mode 100644 index 000000000..81592d775 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.4/docker-compose.yml @@ -0,0 +1,17 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/templates/3/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.4.4/entrypoint.sh similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/3/entrypoint.sh rename to linux/ecosystem/atlassian/jira/9/9.4.4/entrypoint.sh diff --git a/linux/ecosystem/atlassian/jira/9/9.4.5/.env b/linux/ecosystem/atlassian/jira/9/9.4.5/.env new file mode 100644 index 000000000..6d4a3300c --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.5/.env @@ -0,0 +1,2 @@ +RELEASE=9.4.5 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/templates/9/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.4.5/Dockerfile similarity index 96% rename from linux/ecosystem/atlassian/jira/templates/9/Dockerfile rename to linux/ecosystem/atlassian/jira/9/9.4.5/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/templates/9/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.4.5/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.5/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.4.5/Dockerfile.jdk11 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.5/Dockerfile.jdk11 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/4/Makefile b/linux/ecosystem/atlassian/jira/9/9.4.5/Makefile similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/4/Makefile rename to linux/ecosystem/atlassian/jira/9/9.4.5/Makefile diff --git a/linux/ecosystem/atlassian/jira/9/9.4.5/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.4.5/docker-compose.yml new file mode 100644 index 000000000..81592d775 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.5/docker-compose.yml @@ -0,0 +1,17 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/templates/4/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.4.5/entrypoint.sh similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/4/entrypoint.sh rename to linux/ecosystem/atlassian/jira/9/9.4.5/entrypoint.sh diff --git a/linux/ecosystem/atlassian/jira/9/9.4.6/.env b/linux/ecosystem/atlassian/jira/9/9.4.6/.env new file mode 100644 index 000000000..35cc812ea --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.6/.env @@ -0,0 +1,2 @@ +RELEASE=9.4.6 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.4.6/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.4.6/Dockerfile new file mode 100644 index 000000000..55998584b --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.6/Dockerfile @@ -0,0 +1,51 @@ +FROM epicmorg/debian:bullseye-jdk8 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.6/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.4.6/Dockerfile.jdk11 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.6/Dockerfile.jdk11 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/5/Makefile b/linux/ecosystem/atlassian/jira/9/9.4.6/Makefile similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/5/Makefile rename to linux/ecosystem/atlassian/jira/9/9.4.6/Makefile diff --git a/linux/ecosystem/atlassian/jira/9/9.4.6/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.4.6/docker-compose.yml new file mode 100644 index 000000000..81592d775 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.6/docker-compose.yml @@ -0,0 +1,17 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/templates/5/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.4.6/entrypoint.sh similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/5/entrypoint.sh rename to linux/ecosystem/atlassian/jira/9/9.4.6/entrypoint.sh diff --git a/linux/ecosystem/atlassian/jira/9/9.4.7/.env b/linux/ecosystem/atlassian/jira/9/9.4.7/.env new file mode 100644 index 000000000..015c66fc8 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.7/.env @@ -0,0 +1,2 @@ +RELEASE=9.4.7 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.4.7/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.4.7/Dockerfile new file mode 100644 index 000000000..55998584b --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.7/Dockerfile @@ -0,0 +1,51 @@ +FROM epicmorg/debian:bullseye-jdk8 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.7/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.4.7/Dockerfile.jdk11 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.7/Dockerfile.jdk11 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/6/Makefile b/linux/ecosystem/atlassian/jira/9/9.4.7/Makefile similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/6/Makefile rename to linux/ecosystem/atlassian/jira/9/9.4.7/Makefile diff --git a/linux/ecosystem/atlassian/jira/9/9.4.7/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.4.7/docker-compose.yml new file mode 100644 index 000000000..81592d775 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.7/docker-compose.yml @@ -0,0 +1,17 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/templates/6/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.4.7/entrypoint.sh similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/6/entrypoint.sh rename to linux/ecosystem/atlassian/jira/9/9.4.7/entrypoint.sh diff --git a/linux/ecosystem/atlassian/jira/9/9.4.8/.env b/linux/ecosystem/atlassian/jira/9/9.4.8/.env new file mode 100644 index 000000000..87c919be0 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.8/.env @@ -0,0 +1,2 @@ +RELEASE=9.4.8 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.4.8/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.4.8/Dockerfile new file mode 100644 index 000000000..55998584b --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.8/Dockerfile @@ -0,0 +1,51 @@ +FROM epicmorg/debian:bullseye-jdk8 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.4.8/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.4.8/Dockerfile.jdk11 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.8/Dockerfile.jdk11 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/7/Makefile b/linux/ecosystem/atlassian/jira/9/9.4.8/Makefile similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/7/Makefile rename to linux/ecosystem/atlassian/jira/9/9.4.8/Makefile diff --git a/linux/ecosystem/atlassian/jira/9/9.4.8/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.4.8/docker-compose.yml new file mode 100644 index 000000000..81592d775 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.4.8/docker-compose.yml @@ -0,0 +1,17 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/templates/7/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.4.8/entrypoint.sh similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/7/entrypoint.sh rename to linux/ecosystem/atlassian/jira/9/9.4.8/entrypoint.sh diff --git a/linux/ecosystem/atlassian/jira/9/9.5.0/.env b/linux/ecosystem/atlassian/jira/9/9.5.0/.env index 2a42e4636..7570f12b3 100644 --- a/linux/ecosystem/atlassian/jira/9/9.5.0/.env +++ b/linux/ecosystem/atlassian/jira/9/9.5.0/.env @@ -1,3 +1,2 @@ - RELEASE=9.5.0 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.5.0.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile.jdk17 b/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile.jdk17 index 3e2130633..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile.jdk17 +++ b/linux/ecosystem/atlassian/jira/9/9.5.0/Dockerfile.jdk17 @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye-jdk17 +FROM epicmorg/debian:bullseye-jdk11 LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.5.1/.env b/linux/ecosystem/atlassian/jira/9/9.5.1/.env index 89896836c..ab5fec4b6 100644 --- a/linux/ecosystem/atlassian/jira/9/9.5.1/.env +++ b/linux/ecosystem/atlassian/jira/9/9.5.1/.env @@ -1,3 +1,2 @@ - RELEASE=9.5.1 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.5.1.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile.jdk17 b/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile.jdk17 index 3e2130633..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile.jdk17 +++ b/linux/ecosystem/atlassian/jira/9/9.5.1/Dockerfile.jdk17 @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye-jdk17 +FROM epicmorg/debian:bullseye-jdk11 LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.6.0/.env b/linux/ecosystem/atlassian/jira/9/9.6.0/.env index 01f7334f5..c363196d0 100644 --- a/linux/ecosystem/atlassian/jira/9/9.6.0/.env +++ b/linux/ecosystem/atlassian/jira/9/9.6.0/.env @@ -1,3 +1,2 @@ - RELEASE=9.6.0 -DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.6.0.tar.gz +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile index 0bb89734c..55998584b 100644 --- a/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile +++ b/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,10 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile.jdk11 index 8719b8c56..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile.jdk11 +++ b/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile.jdk11 @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile.jdk17 b/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile.jdk17 index 3e2130633..e068c0c5d 100644 --- a/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile.jdk17 +++ b/linux/ecosystem/atlassian/jira/9/9.6.0/Dockerfile.jdk17 @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye-jdk17 +FROM epicmorg/debian:bullseye-jdk11 LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG RELEASE ARG DOWNLOAD_URL - ################################################################## # Setup ################################################################## @@ -43,7 +42,9 @@ RUN mkdir -p ${JIRA_INSTALL_DIR} \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + CMD ["/entrypoint.sh", "-fg"] ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.7.0/.env b/linux/ecosystem/atlassian/jira/9/9.7.0/.env new file mode 100644 index 000000000..6c9be818f --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.7.0/.env @@ -0,0 +1,2 @@ +RELEASE=9.7.0 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.7.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.7.0/Dockerfile new file mode 100644 index 000000000..55998584b --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.7.0/Dockerfile @@ -0,0 +1,51 @@ +FROM epicmorg/debian:bullseye-jdk8 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.7.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.7.0/Dockerfile.jdk11 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.7.0/Dockerfile.jdk11 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.7.0/Dockerfile.jdk17 b/linux/ecosystem/atlassian/jira/9/9.7.0/Dockerfile.jdk17 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.7.0/Dockerfile.jdk17 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/8/Makefile b/linux/ecosystem/atlassian/jira/9/9.7.0/Makefile similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/8/Makefile rename to linux/ecosystem/atlassian/jira/9/9.7.0/Makefile diff --git a/bin/ansible/roles/atlassian.jira/files/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.7.0/docker-compose.yml similarity index 86% rename from bin/ansible/roles/atlassian.jira/files/docker-compose.yml rename to linux/ecosystem/atlassian/jira/9/9.7.0/docker-compose.yml index 3009424d2..a08cce169 100644 --- a/bin/ansible/roles/atlassian.jira/files/docker-compose.yml +++ b/linux/ecosystem/atlassian/jira/9/9.7.0/docker-compose.yml @@ -16,10 +16,10 @@ services: RELEASE: ${RELEASE} DOWNLOAD_URL: ${DOWNLOAD_URL} app-jdk17: - image: "epicmorg/jira:${RELEASE}-jdk11" + image: "epicmorg/jira:${RELEASE}-jdk17" build: context: . - dockerfile: Dockerfile.jdk11 + dockerfile: Dockerfile.jdk17 args: RELEASE: ${RELEASE} DOWNLOAD_URL: ${DOWNLOAD_URL} diff --git a/linux/ecosystem/atlassian/jira/templates/8/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.7.0/entrypoint.sh similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/8/entrypoint.sh rename to linux/ecosystem/atlassian/jira/9/9.7.0/entrypoint.sh diff --git a/linux/ecosystem/atlassian/jira/9/9.7.1/.env b/linux/ecosystem/atlassian/jira/9/9.7.1/.env new file mode 100644 index 000000000..4724a1fa9 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.7.1/.env @@ -0,0 +1,2 @@ +RELEASE=9.7.1 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.7.1/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.7.1/Dockerfile new file mode 100644 index 000000000..55998584b --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.7.1/Dockerfile @@ -0,0 +1,51 @@ +FROM epicmorg/debian:bullseye-jdk8 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.7.1/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.7.1/Dockerfile.jdk11 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.7.1/Dockerfile.jdk11 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.7.1/Dockerfile.jdk17 b/linux/ecosystem/atlassian/jira/9/9.7.1/Dockerfile.jdk17 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.7.1/Dockerfile.jdk17 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/9/Makefile b/linux/ecosystem/atlassian/jira/9/9.7.1/Makefile similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/9/Makefile rename to linux/ecosystem/atlassian/jira/9/9.7.1/Makefile diff --git a/linux/ecosystem/atlassian/jira/9/9.7.1/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.7.1/docker-compose.yml new file mode 100644 index 000000000..a08cce169 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.7.1/docker-compose.yml @@ -0,0 +1,25 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/templates/9/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.7.1/entrypoint.sh similarity index 100% rename from linux/ecosystem/atlassian/jira/templates/9/entrypoint.sh rename to linux/ecosystem/atlassian/jira/9/9.7.1/entrypoint.sh diff --git a/linux/ecosystem/atlassian/jira/9/9.8.0/.env b/linux/ecosystem/atlassian/jira/9/9.8.0/.env new file mode 100644 index 000000000..48bc07f30 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.0/.env @@ -0,0 +1,2 @@ +RELEASE=9.8.0 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.8.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.8.0/Dockerfile new file mode 100644 index 000000000..55998584b --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.0/Dockerfile @@ -0,0 +1,51 @@ +FROM epicmorg/debian:bullseye-jdk8 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.8.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.8.0/Dockerfile.jdk11 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.0/Dockerfile.jdk11 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.8.0/Dockerfile.jdk17 b/linux/ecosystem/atlassian/jira/9/9.8.0/Dockerfile.jdk17 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.0/Dockerfile.jdk17 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.8.0/Makefile b/linux/ecosystem/atlassian/jira/9/9.8.0/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.0/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/atlassian/jira/9/9.8.0/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.8.0/docker-compose.yml new file mode 100644 index 000000000..a08cce169 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.0/docker-compose.yml @@ -0,0 +1,25 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/9/9.8.0/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.8.0/entrypoint.sh new file mode 100755 index 000000000..50ee4ecd1 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.0/entrypoint.sh @@ -0,0 +1,89 @@ +#!/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 + + +# 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 + # Now drop privileges + exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/start-jira.sh $@" +else + exec "$JIRA_INSTALL_DIR/bin/start-jira.sh" "$@" +fi diff --git a/linux/ecosystem/atlassian/jira/9/9.8.1/.env b/linux/ecosystem/atlassian/jira/9/9.8.1/.env new file mode 100644 index 000000000..cad83b5c4 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.1/.env @@ -0,0 +1,2 @@ +RELEASE=9.8.1 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.8.1/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.8.1/Dockerfile new file mode 100644 index 000000000..55998584b --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.1/Dockerfile @@ -0,0 +1,51 @@ +FROM epicmorg/debian:bullseye-jdk8 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.8.1/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.8.1/Dockerfile.jdk11 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.1/Dockerfile.jdk11 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.8.1/Dockerfile.jdk17 b/linux/ecosystem/atlassian/jira/9/9.8.1/Dockerfile.jdk17 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.1/Dockerfile.jdk17 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.8.1/Makefile b/linux/ecosystem/atlassian/jira/9/9.8.1/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.1/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/atlassian/jira/9/9.8.1/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.8.1/docker-compose.yml new file mode 100644 index 000000000..a08cce169 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.1/docker-compose.yml @@ -0,0 +1,25 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/9/9.8.1/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.8.1/entrypoint.sh new file mode 100755 index 000000000..50ee4ecd1 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.8.1/entrypoint.sh @@ -0,0 +1,89 @@ +#!/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 + + +# 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 + # Now drop privileges + exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/start-jira.sh $@" +else + exec "$JIRA_INSTALL_DIR/bin/start-jira.sh" "$@" +fi diff --git a/linux/ecosystem/atlassian/jira/9/9.9.0/.env b/linux/ecosystem/atlassian/jira/9/9.9.0/.env new file mode 100644 index 000000000..6a784feda --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.0/.env @@ -0,0 +1,2 @@ +RELEASE=9.9.0 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.9.0/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.9.0/Dockerfile new file mode 100644 index 000000000..55998584b --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.0/Dockerfile @@ -0,0 +1,51 @@ +FROM epicmorg/debian:bullseye-jdk8 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.9.0/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.9.0/Dockerfile.jdk11 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.0/Dockerfile.jdk11 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.9.0/Dockerfile.jdk17 b/linux/ecosystem/atlassian/jira/9/9.9.0/Dockerfile.jdk17 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.0/Dockerfile.jdk17 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.9.0/Makefile b/linux/ecosystem/atlassian/jira/9/9.9.0/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.0/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/atlassian/jira/9/9.9.0/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.9.0/docker-compose.yml new file mode 100644 index 000000000..a08cce169 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.0/docker-compose.yml @@ -0,0 +1,25 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/9/9.9.0/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.9.0/entrypoint.sh new file mode 100755 index 000000000..50ee4ecd1 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.0/entrypoint.sh @@ -0,0 +1,89 @@ +#!/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 + + +# 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 + # Now drop privileges + exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/start-jira.sh $@" +else + exec "$JIRA_INSTALL_DIR/bin/start-jira.sh" "$@" +fi diff --git a/linux/ecosystem/atlassian/jira/9/9.9.1/.env b/linux/ecosystem/atlassian/jira/9/9.9.1/.env new file mode 100644 index 000000000..55e9a39b0 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.1/.env @@ -0,0 +1,2 @@ +RELEASE=9.9.1 +DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${RELEASE}.tar.gz \ No newline at end of file diff --git a/linux/ecosystem/atlassian/jira/9/9.9.1/Dockerfile b/linux/ecosystem/atlassian/jira/9/9.9.1/Dockerfile new file mode 100644 index 000000000..55998584b --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.1/Dockerfile @@ -0,0 +1,51 @@ +FROM epicmorg/debian:bullseye-jdk8 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.9.1/Dockerfile.jdk11 b/linux/ecosystem/atlassian/jira/9/9.9.1/Dockerfile.jdk11 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.1/Dockerfile.jdk11 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.9.1/Dockerfile.jdk17 b/linux/ecosystem/atlassian/jira/9/9.9.1/Dockerfile.jdk17 new file mode 100644 index 000000000..e068c0c5d --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.1/Dockerfile.jdk17 @@ -0,0 +1,50 @@ +FROM epicmorg/debian:bullseye-jdk11 +LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# ARGuments +################################################################## + +#configured by dockerfile / .ENV +ARG RELEASE +ARG DOWNLOAD_URL + +################################################################## +# Setup +################################################################## +ENV RUN_USER daemon +ENV RUN_GROUP daemon + +# https://confluence.atlassian.com/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 +################################################################## +RUN mkdir -p ${JIRA_INSTALL_DIR} \ + && curl -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 && \ + update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ + apt clean -y && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +CMD ["/entrypoint.sh", "-fg"] +ENTRYPOINT ["/usr/bin/tini", "--"] +#COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/9/9.9.1/Makefile b/linux/ecosystem/atlassian/jira/9/9.9.1/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.1/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/atlassian/jira/9/9.9.1/docker-compose.yml b/linux/ecosystem/atlassian/jira/9/9.9.1/docker-compose.yml new file mode 100644 index 000000000..a08cce169 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.1/docker-compose.yml @@ -0,0 +1,25 @@ +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} diff --git a/linux/ecosystem/atlassian/jira/9/9.9.1/entrypoint.sh b/linux/ecosystem/atlassian/jira/9/9.9.1/entrypoint.sh new file mode 100755 index 000000000..50ee4ecd1 --- /dev/null +++ b/linux/ecosystem/atlassian/jira/9/9.9.1/entrypoint.sh @@ -0,0 +1,89 @@ +#!/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 + + +# 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 + # Now drop privileges + exec su -s /bin/bash "${RUN_USER}" -c "$JIRA_INSTALL_DIR/bin/start-jira.sh $@" +else + exec "$JIRA_INSTALL_DIR/bin/start-jira.sh" "$@" +fi diff --git a/linux/ecosystem/atlassian/jira/templates/2/Dockerfile b/linux/ecosystem/atlassian/jira/templates/2/Dockerfile deleted file mode 100644 index 7395c7552..000000000 --- a/linux/ecosystem/atlassian/jira/templates/2/Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -FROM epicmorg/debian:bullseye-jdk6 -LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" -ARG DEBIAN_FRONTEND=noninteractive - -################################################################## -# ARGuments -################################################################## - -#configured by dockerfile / .ENV -ARG RELEASE -ARG DOWNLOAD_URL - - -################################################################## -# Setup -################################################################## -ENV RUN_USER daemon -ENV RUN_GROUP daemon - -# https://confluence.atlassian.com/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 -################################################################## -RUN mkdir -p ${JIRA_INSTALL_DIR} \ - && curl -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 && \ - update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ - apt clean -y && \ - apt autoclean -y && \ - rm -rfv /var/lib/apt/lists/* && \ - rm -rfv /var/cache/apt/archives/*.deb - -CMD ["/entrypoint.sh", "-fg"] -ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/2/docker-compose.yml b/linux/ecosystem/atlassian/jira/templates/2/docker-compose.yml deleted file mode 100644 index 61ae14071..000000000 --- a/linux/ecosystem/atlassian/jira/templates/2/docker-compose.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: '3.9' -services: - app: - image: "epicmorg/jira:${RELEASE}" - build: - context: . - args: - RELEASE: ${RELEASE} - DOWNLOAD_URL: ${DOWNLOAD_URL} diff --git a/linux/ecosystem/atlassian/jira/templates/3/Dockerfile b/linux/ecosystem/atlassian/jira/templates/3/Dockerfile deleted file mode 100644 index 7395c7552..000000000 --- a/linux/ecosystem/atlassian/jira/templates/3/Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -FROM epicmorg/debian:bullseye-jdk6 -LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" -ARG DEBIAN_FRONTEND=noninteractive - -################################################################## -# ARGuments -################################################################## - -#configured by dockerfile / .ENV -ARG RELEASE -ARG DOWNLOAD_URL - - -################################################################## -# Setup -################################################################## -ENV RUN_USER daemon -ENV RUN_GROUP daemon - -# https://confluence.atlassian.com/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 -################################################################## -RUN mkdir -p ${JIRA_INSTALL_DIR} \ - && curl -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 && \ - update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ - apt clean -y && \ - apt autoclean -y && \ - rm -rfv /var/lib/apt/lists/* && \ - rm -rfv /var/cache/apt/archives/*.deb - -CMD ["/entrypoint.sh", "-fg"] -ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/3/docker-compose.yml b/linux/ecosystem/atlassian/jira/templates/3/docker-compose.yml deleted file mode 100644 index 61ae14071..000000000 --- a/linux/ecosystem/atlassian/jira/templates/3/docker-compose.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: '3.9' -services: - app: - image: "epicmorg/jira:${RELEASE}" - build: - context: . - args: - RELEASE: ${RELEASE} - DOWNLOAD_URL: ${DOWNLOAD_URL} diff --git a/linux/ecosystem/atlassian/jira/templates/4/Dockerfile b/linux/ecosystem/atlassian/jira/templates/4/Dockerfile deleted file mode 100644 index 7395c7552..000000000 --- a/linux/ecosystem/atlassian/jira/templates/4/Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -FROM epicmorg/debian:bullseye-jdk6 -LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" -ARG DEBIAN_FRONTEND=noninteractive - -################################################################## -# ARGuments -################################################################## - -#configured by dockerfile / .ENV -ARG RELEASE -ARG DOWNLOAD_URL - - -################################################################## -# Setup -################################################################## -ENV RUN_USER daemon -ENV RUN_GROUP daemon - -# https://confluence.atlassian.com/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 -################################################################## -RUN mkdir -p ${JIRA_INSTALL_DIR} \ - && curl -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 && \ - update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ - apt clean -y && \ - apt autoclean -y && \ - rm -rfv /var/lib/apt/lists/* && \ - rm -rfv /var/cache/apt/archives/*.deb - -CMD ["/entrypoint.sh", "-fg"] -ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/4/docker-compose.yml b/linux/ecosystem/atlassian/jira/templates/4/docker-compose.yml deleted file mode 100644 index 61ae14071..000000000 --- a/linux/ecosystem/atlassian/jira/templates/4/docker-compose.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: '3.9' -services: - app: - image: "epicmorg/jira:${RELEASE}" - build: - context: . - args: - RELEASE: ${RELEASE} - DOWNLOAD_URL: ${DOWNLOAD_URL} diff --git a/linux/ecosystem/atlassian/jira/templates/5/Dockerfile b/linux/ecosystem/atlassian/jira/templates/5/Dockerfile deleted file mode 100644 index 7395c7552..000000000 --- a/linux/ecosystem/atlassian/jira/templates/5/Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -FROM epicmorg/debian:bullseye-jdk6 -LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" -ARG DEBIAN_FRONTEND=noninteractive - -################################################################## -# ARGuments -################################################################## - -#configured by dockerfile / .ENV -ARG RELEASE -ARG DOWNLOAD_URL - - -################################################################## -# Setup -################################################################## -ENV RUN_USER daemon -ENV RUN_GROUP daemon - -# https://confluence.atlassian.com/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 -################################################################## -RUN mkdir -p ${JIRA_INSTALL_DIR} \ - && curl -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 && \ - update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ - apt clean -y && \ - apt autoclean -y && \ - rm -rfv /var/lib/apt/lists/* && \ - rm -rfv /var/cache/apt/archives/*.deb - -CMD ["/entrypoint.sh", "-fg"] -ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/5/docker-compose.yml b/linux/ecosystem/atlassian/jira/templates/5/docker-compose.yml deleted file mode 100644 index 61ae14071..000000000 --- a/linux/ecosystem/atlassian/jira/templates/5/docker-compose.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: '3.9' -services: - app: - image: "epicmorg/jira:${RELEASE}" - build: - context: . - args: - RELEASE: ${RELEASE} - DOWNLOAD_URL: ${DOWNLOAD_URL} diff --git a/linux/ecosystem/atlassian/jira/templates/6/Dockerfile b/linux/ecosystem/atlassian/jira/templates/6/Dockerfile deleted file mode 100644 index 8a5d219c6..000000000 --- a/linux/ecosystem/atlassian/jira/templates/6/Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -FROM epicmorg/debian:bullseye-jdk7 -LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org" -ARG DEBIAN_FRONTEND=noninteractive - -################################################################## -# ARGuments -################################################################## - -#configured by dockerfile / .ENV -ARG RELEASE -ARG DOWNLOAD_URL - - -################################################################## -# Setup -################################################################## -ENV RUN_USER daemon -ENV RUN_GROUP daemon - -# https://confluence.atlassian.com/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 -################################################################## -RUN mkdir -p ${JIRA_INSTALL_DIR} \ - && curl -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 && \ - update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ - apt clean -y && \ - apt autoclean -y && \ - rm -rfv /var/lib/apt/lists/* && \ - rm -rfv /var/cache/apt/archives/*.deb - -CMD ["/entrypoint.sh", "-fg"] -ENTRYPOINT ["/usr/bin/tini", "--"] -COPY entrypoint.sh /entrypoint.sh -COPY . /tmp diff --git a/linux/ecosystem/atlassian/jira/templates/6/docker-compose.yml b/linux/ecosystem/atlassian/jira/templates/6/docker-compose.yml deleted file mode 100644 index 61ae14071..000000000 --- a/linux/ecosystem/atlassian/jira/templates/6/docker-compose.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: '3.9' -services: - app: - image: "epicmorg/jira:${RELEASE}" - build: - context: . - args: - RELEASE: ${RELEASE} - DOWNLOAD_URL: ${DOWNLOAD_URL} diff --git a/linux/ecosystem/atlassian/jira/templates/7/docker-compose.yml b/linux/ecosystem/atlassian/jira/templates/7/docker-compose.yml deleted file mode 100644 index 61ae14071..000000000 --- a/linux/ecosystem/atlassian/jira/templates/7/docker-compose.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: '3.9' -services: - app: - image: "epicmorg/jira:${RELEASE}" - build: - context: . - args: - RELEASE: ${RELEASE} - DOWNLOAD_URL: ${DOWNLOAD_URL} diff --git a/linux/ecosystem/php/php7.4/Dockerfile b/linux/ecosystem/php/php7.4/Dockerfile index febe31356..dfc9c7ad9 100644 --- a/linux/ecosystem/php/php7.4/Dockerfile +++ b/linux/ecosystem/php/php7.4/Dockerfile @@ -121,7 +121,6 @@ RUN apt-get update && \ php7.4-fpm \ php7.4-imap \ php7.4-pspell \ - php7.4-recode \ php7.4-sqlite3 \ php7.4-pgsql \ php7.4-tidy \