mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-26 06:35:40 +03:00
jira 7.6
This commit is contained in:
parent
d81f6698a6
commit
50ae5b58d9
104
.travis.yml
104
.travis.yml
@ -818,6 +818,110 @@ matrix:
|
|||||||
- docker build --compress -t epicmorg/jira:7.5.4 atlassian/jira/7.5.4
|
- docker build --compress -t epicmorg/jira:7.5.4 atlassian/jira/7.5.4
|
||||||
- docker push epicmorg/jira:7.5.4
|
- docker push epicmorg/jira:7.5.4
|
||||||
|
|
||||||
|
##########
|
||||||
|
|
||||||
|
- name: Jira 7.6.0
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.0 atlassian/jira/7.6.0
|
||||||
|
- docker push epicmorg/jira:7.6.0
|
||||||
|
|
||||||
|
- name: Jira 7.6.1
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.1 atlassian/jira/7.6.1
|
||||||
|
- docker push epicmorg/jira:7.6.1
|
||||||
|
|
||||||
|
- name: Jira 7.6.2
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.2 atlassian/jira/7.6.2
|
||||||
|
- docker push epicmorg/jira:7.6.2
|
||||||
|
|
||||||
|
- name: Jira 7.6.3
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.3 atlassian/jira/7.6.3
|
||||||
|
- docker push epicmorg/jira:7.6.3
|
||||||
|
|
||||||
|
- name: Jira 7.6.4
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.4 atlassian/jira/7.6.4
|
||||||
|
- docker push epicmorg/jira:7.6.4
|
||||||
|
|
||||||
|
- name: Jira 7.6.6
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.6 atlassian/jira/7.6.6
|
||||||
|
- docker push epicmorg/jira:7.6.6
|
||||||
|
|
||||||
|
- name: Jira 7.6.7
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.7 atlassian/jira/7.6.7
|
||||||
|
- docker push epicmorg/jira:7.6.7
|
||||||
|
|
||||||
|
- name: Jira 7.6.8
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.8 atlassian/jira/7.6.8
|
||||||
|
- docker push epicmorg/jira:7.6.8
|
||||||
|
|
||||||
|
- name: Jira 7.6.9
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.9 atlassian/jira/7.6.9
|
||||||
|
- docker push epicmorg/jira:7.6.9
|
||||||
|
|
||||||
|
- name: Jira 7.6.10
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.10 atlassian/jira/7.6.10
|
||||||
|
- docker push epicmorg/jira:7.6.10
|
||||||
|
|
||||||
|
- name: Jira 7.6.11
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.11 atlassian/jira/7.6.11
|
||||||
|
- docker push epicmorg/jira:7.6.11
|
||||||
|
|
||||||
|
- name: Jira 7.6.12
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.12 atlassian/jira/7.6.12
|
||||||
|
- docker push epicmorg/jira:7.6.12
|
||||||
|
|
||||||
|
- name: Jira 7.6.13
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.13 atlassian/jira/7.6.13
|
||||||
|
- docker push epicmorg/jira:7.6.13
|
||||||
|
|
||||||
|
- name: Jira 7.6.14
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.14 atlassian/jira/7.6.14
|
||||||
|
- docker push epicmorg/jira:7.6.14
|
||||||
|
|
||||||
|
- name: Jira 7.6.15
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.15 atlassian/jira/7.6.15
|
||||||
|
- docker push epicmorg/jira:7.6.15
|
||||||
|
|
||||||
|
- name: Jira 7.6.16
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.16 atlassian/jira/7.6.16
|
||||||
|
- docker push epicmorg/jira:7.6.16
|
||||||
|
|
||||||
|
- name: Jira 7.6.17
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build --compress -t epicmorg/jira:7.6.17 atlassian/jira/7.6.17
|
||||||
|
- docker push epicmorg/jira:7.6.17
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
||||||
- name: Jira 7.10.0
|
- name: Jira 7.10.0
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
* added `Jira 7.3.x`: `7.3.0`, `7.3.1`, `7.3.2`, `7.3.3`, `7.3.4`, `7.3.5`, `7.3.6`, `7.3.7`, `7.3.8`, `7. 3.9`
|
* added `Jira 7.3.x`: `7.3.0`, `7.3.1`, `7.3.2`, `7.3.3`, `7.3.4`, `7.3.5`, `7.3.6`, `7.3.7`, `7.3.8`, `7. 3.9`
|
||||||
* added `Jira 7.4.x`: `7.4.0`, `7.4.1`, `7.4.2`, `7.4.3`, `7.4.4`, `7.4.5`, `7.4.6`
|
* added `Jira 7.4.x`: `7.4.0`, `7.4.1`, `7.4.2`, `7.4.3`, `7.4.4`, `7.4.5`, `7.4.6`
|
||||||
* added `Jira 7.5.x`: `7.5.0`, `7.5.1`, `7.5.2`, `7.5.3`, `7.5.4`
|
* added `Jira 7.5.x`: `7.5.0`, `7.5.1`, `7.5.2`, `7.5.3`, `7.5.4`
|
||||||
|
* added `Jira 7.6.x`: `7.6.0`, `7.6.1`, `7.6.2`, `7.6.3`, `7.6.4`, `7.6.6`, `7.6.7`, `7.6.8`, `7.6.9`, `7.6.10`, `7.6.11`, `7.6.12`, `7.6.13`, `7.6.14`, `7.6.15`, `7.6.16`, `7.6.17`
|
||||||
* 12/13/2019
|
* 12/13/2019
|
||||||
* updated `teamcity agent`. added `php 7.3` support.
|
* updated `teamcity agent`. added `php 7.3` support.
|
||||||
* fixed `nginx` image.
|
* fixed `nginx` image.
|
||||||
|
1
atlassian/jira/7.6.0/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.0/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.0/.dockerignore
Normal file
3
atlassian/jira/7.6.0/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.0/Dockerfile
Normal file
47
atlassian/jira/7.6.0/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.0
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.0/Makefile
Normal file
4
atlassian/jira/7.6.0/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.0 .
|
151
atlassian/jira/7.6.0/README.md
Normal file
151
atlassian/jira/7.6.0/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.0/entrypoint.sh
Normal file
89
atlassian/jira/7.6.0/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.1/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.1/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.1/.dockerignore
Normal file
3
atlassian/jira/7.6.1/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.1/Dockerfile
Normal file
47
atlassian/jira/7.6.1/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.1
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.1/Makefile
Normal file
4
atlassian/jira/7.6.1/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.1 .
|
151
atlassian/jira/7.6.1/README.md
Normal file
151
atlassian/jira/7.6.1/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.1/entrypoint.sh
Normal file
89
atlassian/jira/7.6.1/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.10/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.10/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.10/.dockerignore
Normal file
3
atlassian/jira/7.6.10/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.10/Dockerfile
Normal file
47
atlassian/jira/7.6.10/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.10
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.10/Makefile
Normal file
4
atlassian/jira/7.6.10/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.10 .
|
151
atlassian/jira/7.6.10/README.md
Normal file
151
atlassian/jira/7.6.10/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.10/entrypoint.sh
Normal file
89
atlassian/jira/7.6.10/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.11/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.11/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.11/.dockerignore
Normal file
3
atlassian/jira/7.6.11/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.11/Dockerfile
Normal file
47
atlassian/jira/7.6.11/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.11
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.11/Makefile
Normal file
4
atlassian/jira/7.6.11/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.11
|
151
atlassian/jira/7.6.11/README.md
Normal file
151
atlassian/jira/7.6.11/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.11/entrypoint.sh
Normal file
89
atlassian/jira/7.6.11/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.12/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.12/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.12/.dockerignore
Normal file
3
atlassian/jira/7.6.12/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.12/Dockerfile
Normal file
47
atlassian/jira/7.6.12/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.12
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.12/Makefile
Normal file
4
atlassian/jira/7.6.12/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.12 .
|
151
atlassian/jira/7.6.12/README.md
Normal file
151
atlassian/jira/7.6.12/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.12/entrypoint.sh
Normal file
89
atlassian/jira/7.6.12/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.13/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.13/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.13/.dockerignore
Normal file
3
atlassian/jira/7.6.13/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.13/Dockerfile
Normal file
47
atlassian/jira/7.6.13/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.13
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.13/Makefile
Normal file
4
atlassian/jira/7.6.13/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.13 .
|
151
atlassian/jira/7.6.13/README.md
Normal file
151
atlassian/jira/7.6.13/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.13/entrypoint.sh
Normal file
89
atlassian/jira/7.6.13/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.14/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.14/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.14/.dockerignore
Normal file
3
atlassian/jira/7.6.14/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.14/Dockerfile
Normal file
47
atlassian/jira/7.6.14/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.14
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.14/Makefile
Normal file
4
atlassian/jira/7.6.14/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.14 .
|
151
atlassian/jira/7.6.14/README.md
Normal file
151
atlassian/jira/7.6.14/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.14/entrypoint.sh
Normal file
89
atlassian/jira/7.6.14/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.15/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.15/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.15/.dockerignore
Normal file
3
atlassian/jira/7.6.15/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.15/Dockerfile
Normal file
47
atlassian/jira/7.6.15/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.15
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.15/Makefile
Normal file
4
atlassian/jira/7.6.15/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.15 .
|
151
atlassian/jira/7.6.15/README.md
Normal file
151
atlassian/jira/7.6.15/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.15/entrypoint.sh
Normal file
89
atlassian/jira/7.6.15/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.16/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.16/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.16/.dockerignore
Normal file
3
atlassian/jira/7.6.16/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.16/Dockerfile
Normal file
47
atlassian/jira/7.6.16/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.16
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.16/Makefile
Normal file
4
atlassian/jira/7.6.16/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.16 .
|
151
atlassian/jira/7.6.16/README.md
Normal file
151
atlassian/jira/7.6.16/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.16/entrypoint.sh
Normal file
89
atlassian/jira/7.6.16/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.17/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.17/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.17/.dockerignore
Normal file
3
atlassian/jira/7.6.17/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.17/Dockerfile
Normal file
47
atlassian/jira/7.6.17/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.17
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.17/Makefile
Normal file
4
atlassian/jira/7.6.17/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.17 .
|
151
atlassian/jira/7.6.17/README.md
Normal file
151
atlassian/jira/7.6.17/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.17/entrypoint.sh
Normal file
89
atlassian/jira/7.6.17/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.2/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.2/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.2/.dockerignore
Normal file
3
atlassian/jira/7.6.2/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.2/Dockerfile
Normal file
47
atlassian/jira/7.6.2/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.2
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.2/Makefile
Normal file
4
atlassian/jira/7.6.2/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.2 .
|
151
atlassian/jira/7.6.2/README.md
Normal file
151
atlassian/jira/7.6.2/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.2/entrypoint.sh
Normal file
89
atlassian/jira/7.6.2/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.3/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.3/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.3/.dockerignore
Normal file
3
atlassian/jira/7.6.3/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.3/Dockerfile
Normal file
47
atlassian/jira/7.6.3/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.3
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.3/Makefile
Normal file
4
atlassian/jira/7.6.3/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.3 .
|
151
atlassian/jira/7.6.3/README.md
Normal file
151
atlassian/jira/7.6.3/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.3/entrypoint.sh
Normal file
89
atlassian/jira/7.6.3/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.4/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.4/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.4/.dockerignore
Normal file
3
atlassian/jira/7.6.4/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.4/Dockerfile
Normal file
47
atlassian/jira/7.6.4/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.4
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.4/Makefile
Normal file
4
atlassian/jira/7.6.4/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.4 .
|
151
atlassian/jira/7.6.4/README.md
Normal file
151
atlassian/jira/7.6.4/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.4/entrypoint.sh
Normal file
89
atlassian/jira/7.6.4/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.6/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.6/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.6/.dockerignore
Normal file
3
atlassian/jira/7.6.6/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.6/Dockerfile
Normal file
47
atlassian/jira/7.6.6/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.6
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.6/Makefile
Normal file
4
atlassian/jira/7.6.6/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.6 .
|
151
atlassian/jira/7.6.6/README.md
Normal file
151
atlassian/jira/7.6.6/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.6/entrypoint.sh
Normal file
89
atlassian/jira/7.6.6/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.7/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.7/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.7/.dockerignore
Normal file
3
atlassian/jira/7.6.7/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.7/Dockerfile
Normal file
47
atlassian/jira/7.6.7/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.7
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.7/Makefile
Normal file
4
atlassian/jira/7.6.7/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.7 .
|
151
atlassian/jira/7.6.7/README.md
Normal file
151
atlassian/jira/7.6.7/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.7/entrypoint.sh
Normal file
89
atlassian/jira/7.6.7/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.8/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.8/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.8/.dockerignore
Normal file
3
atlassian/jira/7.6.8/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
47
atlassian/jira/7.6.8/Dockerfile
Normal file
47
atlassian/jira/7.6.8/Dockerfile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
FROM epicmorg/prod:jdk8
|
||||||
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ARG JIRA_VERSION=7.6.8
|
||||||
|
ARG DOWNLOAD_URL=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Setup
|
||||||
|
##################################################################
|
||||||
|
ENV RUN_USER daemon
|
||||||
|
ENV RUN_GROUP daemon
|
||||||
|
|
||||||
|
# https://confluence.atlassian.com/display/JSERVERM/Important+directories+and+files
|
||||||
|
ENV JIRA_HOME /var/atlassian/application-data/jira
|
||||||
|
ENV JIRA_INSTALL_DIR /opt/atlassian/jira
|
||||||
|
|
||||||
|
VOLUME ["${JIRA_HOME}"]
|
||||||
|
WORKDIR $JIRA_HOME
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing
|
||||||
|
##################################################################
|
||||||
|
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
|
||||||
|
|
||||||
|
CMD ["/entrypoint.sh", "-fg"]
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
COPY . /tmp
|
4
atlassian/jira/7.6.8/Makefile
Normal file
4
atlassian/jira/7.6.8/Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
all: jr
|
||||||
|
|
||||||
|
jr:
|
||||||
|
docker build --compress -t epicmorg/jira:7.6.8 .
|
151
atlassian/jira/7.6.8/README.md
Normal file
151
atlassian/jira/7.6.8/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
![Atlassian JIRA](https://www.atlassian.com/dam/wac/legacy/jira_logo_landing.png)
|
||||||
|
|
||||||
|
JIRA Software is a software development tool used by agile teams.
|
||||||
|
|
||||||
|
Learn more about JIRA Software: <https://www.atlassian.com/software/jira>
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This Docker container makes it easy to get an instance of JIRA Software up and running.
|
||||||
|
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
For the `JIRA_HOME` directory that is used to store application data (amongst other things) we recommend mounting a host directory as a [data volume](https://docs.docker.com/engine/tutorials/dockervolumes/#/data-volumes), or via a named volume if using a docker version >= 1.9.
|
||||||
|
|
||||||
|
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
|
||||||
|
|
||||||
|
$> docker volume create --name jiraVolume
|
||||||
|
$> docker run -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
|
||||||
|
**Success**. JIRA is now available on [http://localhost:8080](http://localhost:8080)*
|
||||||
|
|
||||||
|
Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate the application server. See [System Requirements](https://confluence.atlassian.com/adminjiraserver071/jira-applications-installation-requirements-802592164.html) for further information.
|
||||||
|
|
||||||
|
|
||||||
|
_* Note: If you are using `docker-machine` on Mac OS X, please use `open http://$(docker-machine ip default):8080` instead._
|
||||||
|
|
||||||
|
## Memory / Heap Size
|
||||||
|
|
||||||
|
If you need to override JIRA's default memory allocation, you can control the minimum heap (Xms) and maximum heap (Xmx) via the below environment variables.
|
||||||
|
|
||||||
|
* `JVM_MINIMUM_MEMORY` (default: 384m)
|
||||||
|
|
||||||
|
The minimum heap size of the JVM
|
||||||
|
|
||||||
|
* `JVM_MAXIMUM_MEMORY` (default: 768m)
|
||||||
|
|
||||||
|
The maximum heap size of the JVM
|
||||||
|
|
||||||
|
## Reverse Proxy Settings
|
||||||
|
|
||||||
|
If JIRA is run behind a reverse proxy server as [described here](https://confluence.atlassian.com/adminjiraserver072/integrating-jira-with-apache-using-ssl-828788158.html), then you need to specify extra options to make JIRA aware of the setup. They can be controlled via the below environment variables.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYNAME` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's fully qualified hostname.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_PROXYPORT` (default: NONE)
|
||||||
|
|
||||||
|
The reverse proxy's port number via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SCHEME` (default: http)
|
||||||
|
|
||||||
|
The protocol via which JIRA is accessed.
|
||||||
|
|
||||||
|
* `CATALINA_CONNECTOR_SECURE` (default: false)
|
||||||
|
|
||||||
|
Set 'true' if CATALINA_CONNECTOR_SCHEME is 'https'.
|
||||||
|
|
||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
If you need to pass additional JVM arguments to JIRA, such as specifying a custom trust store, you can add them via the below environment variable
|
||||||
|
|
||||||
|
* `JVM_SUPPORT_RECOMMENDED_ARGS`
|
||||||
|
|
||||||
|
Additional JVM arguments for JIRA
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
$> docker run -e JVM_SUPPORT_RECOMMENDED_ARGS=-Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -v jiraVolume:/var/atlassian/application-data/jira --name="jira" -d -p 8080:8080 epicmorg/jira
|
||||||
|
|
||||||
|
## Data Center configuration
|
||||||
|
|
||||||
|
This docker image can be run as part of a [Data Center](https://confluence.atlassian.com/enterprise/jira-data-center-472219731.html) cluster. You can specify the following properties to start Jira as a Data Center node, instead of manually configuring a cluster.properties file, See [Installing Jira Data Center](https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html) for more information on each property and its possible configuration.
|
||||||
|
|
||||||
|
* `CLUSTERED` (default: false)
|
||||||
|
|
||||||
|
Set 'true' to enable clustering configuration to be used. This will create a **cluster.properties** file inside the container's `$JIRA_HOME` directory.
|
||||||
|
|
||||||
|
* `JIRA_NODE_ID` (default: jira_node_<container-id>)
|
||||||
|
|
||||||
|
The unique ID for the node. By default, this will include the first eight characters of the Docker container ID, but can be overridden with a custom value.
|
||||||
|
|
||||||
|
* `JIRA_SHARED_HOME` (default: $JIRA_HOME/shared)
|
||||||
|
|
||||||
|
The location of the shared home directory for all Jira nodes.
|
||||||
|
|
||||||
|
* `EHCACHE_PEER_DISCOVERY` (default: default)
|
||||||
|
|
||||||
|
Describes how nodes find each other.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_PORT` (default: 40001)
|
||||||
|
|
||||||
|
The port the node is going to be listening to.
|
||||||
|
|
||||||
|
* `EHCACHE_LISTENER_SOCKETTIMEOUTMILLIS` (default: 2000)
|
||||||
|
|
||||||
|
The default timeout for the Ehcache listener.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_ADDRESS` (default: NONE)
|
||||||
|
|
||||||
|
A valid multicast group address. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_PORT` (default: NONE)
|
||||||
|
|
||||||
|
The dedicated port for the multicast heartbeat traffic.Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_TIMETOLIVE` (default: NONE)
|
||||||
|
|
||||||
|
A value between 0 and 255 which determines how far the packets will propagate. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
* `EHCACHE_MULTICAST_HOSTNAME` (default: NONE)
|
||||||
|
|
||||||
|
The hostname or IP of the interface to be used for sending and receiving multicast packets. Required when EHCACHE_PEER_DISCOVERY is set to 'automatic' insted of 'default'.
|
||||||
|
|
||||||
|
# Upgrade
|
||||||
|
|
||||||
|
To upgrade to a more recent version of JIRA you can simply stop the `jira` container and start a new one based on a more recent image:
|
||||||
|
|
||||||
|
$> docker stop jira
|
||||||
|
$> docker rm jira
|
||||||
|
$> docker run ... (See above)
|
||||||
|
|
||||||
|
As your data is stored in the data volume directory on the host it will still be available after the upgrade.
|
||||||
|
|
||||||
|
_Note: Please make sure that you **don't** accidentally remove the `jira` container and its volumes using the `-v` option._
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
|
||||||
|
For evaluations you can use the built-in database that will store its files in the JIRA home directory. In that case it is sufficient to create a backup archive of the docker volume.
|
||||||
|
|
||||||
|
If you're using an external database, you can configure JIRA to make a backup automatically each night. This will back up the current state, including the database to the `jiraVolume` docker volume, which can then be archived. Alternatively you can backup the database separately, and continue to create a backup archive of the docker volume to back up the JIRA Home directory.
|
||||||
|
|
||||||
|
Read more about data recovery and backups: [https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html](https://confluence.atlassian.com/adminjiraserver071/backing-up-data-802592964.html)
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
|
||||||
|
The `latest` tag matches the most recent release of Atlassian JIRA Software. Thus `epicmorg/jira:latest` will use the newest version of JIRA available.
|
||||||
|
|
||||||
|
## Versions available
|
||||||
|
|
||||||
|
* `epicmorg/jira:latest`
|
||||||
|
* `epicmorg/jira:7.10.0`
|
||||||
|
|
||||||
|
# Support
|
||||||
|
|
||||||
|
This Docker container is unsupported and is intended for illustration purposes only.
|
89
atlassian/jira/7.6.8/entrypoint.sh
Normal file
89
atlassian/jira/7.6.8/entrypoint.sh
Normal file
@ -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
|
1
atlassian/jira/7.6.9/.docker-repository.yml
Normal file
1
atlassian/jira/7.6.9/.docker-repository.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
repository: epicmorg/jira
|
3
atlassian/jira/7.6.9/.dockerignore
Normal file
3
atlassian/jira/7.6.9/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
scripts
|
||||||
|
.idea
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user