Restore JIRA from native instance to docker container Restore JIRA from native instance to docker container docker docker

Restore JIRA from native instance to docker container


You can definitely restore JIRA native into a docker container using docker.

Steps:

  • Backup existing JIRA
  • Launch a JIRA dockerized
  • Restore new JIRA

- Backup existing JIRA

- Launch a JIRA dockerized

Use a community image as official image don't exist yet

docker run --name jira --detach --publish 8080:8080 cptactionhank/atlassian-jira-software:latest
  • Install using the options you want

- Restore new JIRA

Copy the entities.xml to be ready to restore it:

cd backup# copy inside of the dockerdocker cp entities.xml jira:/var/atlassian/jira/import/

Navigate to http://localhost:8080/secure/admin/XmlRestore!default.jspa
- Type entities.xml in the File Namefield
- Press Restore
- It might take time if it's big
Done!

Improvement

Use a volume if you want to keep your data persistent:

docker run -v jira_data:/var/atlassian ...