cptactionhank / docker-atlassian-jira-software

Atlassian JIRA Software wrapped in a Docker image
https://cptactionhank.github.io/docker-atlassian-jira-software
MIT License
267 stars 165 forks source link

Allow Java HEAP size control via env variables #42

Closed seb-steuer closed 6 years ago

seb-steuer commented 6 years ago

Hi,

I thought it would be beneficial to have a HEAP size control via ENV variables.

Kind regards Sebastian

jimsmith commented 6 years ago

@cptactionhank hey great work on making this a dockerfile. I like this pull request as this solves alot of challenges I am facing could this be progressed ? I see there is a conflict but I don't think there was previously though.

+1

cptactionhank commented 6 years ago

Set the environment variable CATALINA_OPTS with eg. -Xms1024m -Xmx2048m instead

docker create --restart=no --name "jira-container" \
    --publish "8080:8080" \
    --env "CATALINA_OPTS=-Xms1024m -Xmx2048m -Datlassian.plugins.enable.wait=300" \
    cptactionhank/atlassian-jira:latest
jimsmith commented 6 years ago

Thanks. There are hardcoded options in the Dockerfile these should be variables.

cptactionhank commented 6 years ago

Closing this as it is not needed, set the java options through CATALINA_OPTS environment variable.

jimsmith commented 6 years ago

that is a shame as the url is hardcoded to a specific version :(

thanks anyways perhaps forking off elsewhere is the only viable option pity though. ok

cptactionhank commented 6 years ago

Creating a container on this image will not download and install the version in the defined environment variable. If you are seeking a specific version use another tag than latest.

jimsmith commented 6 years ago

👍👌