Jira and Docker – on the fly

If you need to quickly get Jira running on an external database (postgres/mysql) and you don’t want to mess with disk cleanup later, use docker.

To access the jira_home directory instead of using a volume mount a specific directory from the disk.

How to do it? Very simple – here are the commands.

Jira

docker run --name jira8-17-0 -v "/Users/lisiatko/docker/jira":/var/atlassian/application-data/jira -e JVM_MINIMUM_MEMORY=2048M -e JVM_MAXIMUM_MEMORY=2048M -d -p 8080:8080 atlassian/jira-software:8.17.0-ubuntu-jdk11

Postgres

docker run --name postgres -v "/Users/lisiatko/docker/postgres":/var/lib/postgresql/data -e POSTGRES_PASSWORD=mysecretpassword -d postgres:11

MySQL

docker run --name mysql8 -v "/Users/lisiatko/docker/mysql":/var/lib/mysql -e MYSQL_ROOT_PASSWORD=mysql -d mysql:8.0

Remember to always start the containers in the same order, so that they get the same IP on the docker network.

POWERSCRIPT FOR JIRA – HOW TO BLOCK EDITING A FIELD OR FIELDS FOR A GIVEN ROLE OR ROLES

Power Scripts™ – Jira script automation
JIRA PowerScript Sctipts Plugin is a very useful plugin if you want to automate tasks while working with Jira projects to save time on repetitive tasks. The most important features are the ability to automate repetitive tasks, scripts added to the workflow, transit, and event listener.

It can be found on atlassian marketplace under this link. Unfortunately, it is not free, but the price is very affordable.

Script code

Read more POWERSCRIPT FOR JIRA – HOW TO BLOCK EDITING A FIELD OR FIELDS FOR A GIVEN ROLE OR ROLES