haxqer / jira

The simplest docker file of JIRA. Support v9.16.1(latest) and v9.12.10(lts)
https://hub.docker.com/r/haxqer/jira
378 stars 225 forks source link

atlassian-agent.jar usable with official Atlassian docker images? #54

Open pardon-denim opened 5 months ago

pardon-denim commented 5 months ago

Hello!

I have my own docker-compose file build a while ago with the offical Atlassian images. Is it possible to use the atlassian-agent for licence generation with my the official images?

haxqer commented 5 months ago

Yes. I only used the official installation package for installation, theoretically using the official Docker image is definitely feasible. But you need to try it yourself

pardon-denim commented 5 months ago

Thanks for your reply. Yesterday I played a bit with the agent but I didn't work and I couldn't see what you were doing different.

Turns out that I missed the "-javaagent" option in your Dockerfile. Now that I implemented the option it works fine.

For other interested people: Build your own image with the atlassian-agent. There's a placeholder variable in Atlassians setenv.sh which you can fill via docker-compose.yml to load the atlassian-agent.

e.g.

environment:
      - 'JVM_SUPPORT_RECOMMENDED_ARGS=-Djira.safeguards.indexing.issue.worklogs=-1 -javaagent:/var/agent/atlassian-agent.jar'
haxqer commented 5 months ago

cool