Public Repository

Last pushed: 10 months ago
Short Description
An Atlassian JIRA image set for using mysql database (mysql not present in the image!)
Full Description

This image contains a brand new installation of Atlassian JIRA Software set for using a mysql 5.6 server (at the moment I built this image, JIRA did not support mysql versions above 5.6). However, this image does not contains a mysql installation. You need to setup another container for mysql (see the example bellow) or provide another kind of mysql installation in order to use this JIRA image.

An example of how you can use this JIRA image in a fast way:

OBS: All the below steps were tested using a Fedora 24 Linux distribution as the host for docker.

1) Create a container for mysql 5.6

docker run --name 'your-mysql-container-name' -e MYSQL_ROOT_PASSWORD= 'your-password' -d mysql:5.6

The mysql:5.6 image should be downloaded from the default docker repository.

2) Create a new database for JIRA

docker exec -it 'your-mysql-container-name' /bin/bash

You should arrive in bash prompt inside your mysql container. Now you can create the JIRA database:

mysql -p
CREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin;
exit

Type exit again to close your bash console inside the container and go back to your host.

3) Create a container for JIRA

docker run --name 'your-jira-container-name' --link 'your-mysql-container-name':mysql -p 8080:8080 -d suarte/jira:7.2.4 /start.sh

Some helpful explanation about the above command:

--link 'your-mysql-container-name':mysql

You should provide here the same name you used to create your mysql container. This will make the mysql container be recognized inside JIRA container by the hostname 'mysql'.

-p 8080:8080

This is the way that docker will map your local host port (8080) to the container port 8080. Creating your container like this, you can have access to your JIRA instance typing in your browser something like this:

http://localhost:8080

4) Start configuring your JIRA installation. When asked for the mysql host, type 'mysql'.

Enjoy!

Docker Pull Command
Owner
suarte

Comments (0)