Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.10.0 #22

Merged
merged 4 commits into from
Jun 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ COPY check.gpr /check.gpr
COPY ./installjira /installjira
COPY ./dbconfig.xml /var/atlassian/jira-home/dbconfig.xml

RUN cd / && wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.9.0-x64.bin \
RUN cd / && wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.10.0-x64.bin \
&& sha256sum -c check.gpr \
&& chmod a+x atlassian-jira-software-7.9.0-x64.bin \
&& cd / && ./atlassian-jira-software-7.9.0-x64.bin < ./installjira \
&& rm /atlassian-jira-software-7.9.0-x64.bin \
&& chmod a+x atlassian-jira-software-7.10.0-x64.bin \
&& cd / && ./atlassian-jira-software-7.10.0-x64.bin < ./installjira \
&& rm /atlassian-jira-software-7.10.0-x64.bin \
&& mkdir /home/jira-app-backup/ && cp -r /var/atlassian/jira-app/* /home/jira-app-backup/ \
&& mkdir /home/jira-home-backup/ && cp -r /var/atlassian/jira-home/* /home/jira-home-backup/

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# News
Just moved to JIRA 7.9.0!
Just moved to JIRA 7.10.0!

# JIRA in Docker container

Expand All @@ -14,13 +14,13 @@ There are two ways you can use this image:

**You can get clean JIRA installation this way:**

`docker run -d --name jira -p 8080:8080 ivantichy/jira:7.9.0`
`docker run -d --name jira -p 8080:8080 ivantichy/jira:7.10.0`

**The result is running JIRA listening on port 8080.**

As a part of the installation there is PostgreSQL database. First time you run JIRA go to `http://yourmachine:8080` and set up JIRA.

To stop it run `docker stop jira`. To run it again use `docker start jira`. To clean all your settings (to uninstall JIRA) run `docker rm jira`. Then to run a new container use "run" command above e.g. `docker run -d --name jira -p 8080:8080 ivantichy/jira:7.9.0`.
To stop it run `docker stop jira`. To run it again use `docker start jira`. To clean all your settings (to uninstall JIRA) run `docker rm jira`. Then to run a new container use "run" command above e.g. `docker run -d --name jira -p 8080:8080 ivantichy/jira:7.10.0`.

Enjoy!

Expand All @@ -30,11 +30,11 @@ JIRA is set to use user jiradb and password jiradb for database connections. As

## Volumes, data storage, data backup and restore, migration of JIRA instances

When you run container using command like mentioned above (Scenario A) `docker run -d --name jira -p 8080:8080 ivantichy/jira:7.9.0` your database data, JIRA home directory containing attachments, backups etc and JIRA application directory are stored using volumes on host machine (not inside the container). You can find information about physical location using `docker inspect jira`. To find volumes location look for "mount" section in the printed output.
When you run container using command like mentioned above (Scenario A) `docker run -d --name jira -p 8080:8080 ivantichy/jira:7.10.0` your database data, JIRA home directory containing attachments, backups etc and JIRA application directory are stored using volumes on host machine (not inside the container). You can find information about physical location using `docker inspect jira`. To find volumes location look for "mount" section in the printed output.

## To use your own path for app data

I personally start the container using this command: `docker run --cidfile ~/jiracid --rm -p 8080:8080 -v /var/docker-data/postgres:/var/lib/postgresql/9.6/main -v /var/docker-data/jira-app:/var/atlassian/jira-app -v /var/docker-data/jira-home:/var/atlassian/jira-home ivantichy/jira:7.9.0 "$@" &`. This causes (`-v` paramater) that Docker daemon uses paths I selected (`/var/docker-data/`). I usually backup these folders and I use them to migrate JIRA from one location to another. These folders survive container deletion which is important.
I personally start the container using this command: `docker run --cidfile ~/jiracid --rm -p 8080:8080 -v /var/docker-data/postgres:/var/lib/postgresql/9.6/main -v /var/docker-data/jira-app:/var/atlassian/jira-app -v /var/docker-data/jira-home:/var/atlassian/jira-home ivantichy/jira:7.10.0 "$@" &`. This causes (`-v` paramater) that Docker daemon uses paths I selected (`/var/docker-data/`). I usually backup these folders and I use them to migrate JIRA from one location to another. These folders survive container deletion which is important.

## How to set it up

Expand All @@ -43,7 +43,7 @@ I personally start the container using this command: `docker run --cidfile ~/jir
* `mkdir -p /var/docker-data/jira-app`
* `mkdir -p /var/docker-data/jira-home`

2. Download start script executing: `wget https://raw.githubusercontent.com/ivantichy/jira-docker/7.9.0/runjira.sh -O ~/runjira.sh && chmod +x ~/runjira.sh`
2. Download start script executing: `wget https://raw.githubusercontent.com/ivantichy/jira-docker/7.10.0/runjira.sh -O ~/runjira.sh && chmod +x ~/runjira.sh`

3. Install JIRA (will not start JIRA) executing `~/runjira.sh install`. Installation is running in background. Please check state using `docker ps` to see when it is finished (container exits). It takes something like a minute or so.

Expand Down
2 changes: 1 addition & 1 deletion check.gpr
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5339cfaff8a439417956d6541bba762940edf891ba80e3ad7be2015e341a0ad0 atlassian-jira-software-7.9.0-x64.bin
46e515157df4c63ecc6f8edeecdc95720fb4298dce0dbee86e43ffff996ae125 atlassian-jira-software-7.10.0-x64.bin