teamatldocker / jira

Dockerized Atlassian Jira
https://hub.docker.com/r/teamatldocker/jira/
MIT License
437 stars 223 forks source link

Consider auto-versioning based on RSS feed #135

Open denysvitali opened 4 years ago

denysvitali commented 4 years ago

Maybe this is a duplicate of #91, but why don't you build the Docker image by using an argument to the Dockerfile (the Jira Version) that's automatically filled by a bash script, so that the image building process can be automated via a CI with a cronjob?

I'm currently doing it with denysvitali/docker-jira, more specifically in the build.sh script.

Feel free to copy it as per your need. This will avoid the hassle to manually check for a new update on Atlassian's website

blacklabelops commented 4 years ago

We have a version reference:

For a clear solution we should disregard all these references. Anyone in favor to just always build the latest and disregard manually maintaining references in files?

neuhausf commented 4 years ago

@blacklabelops Yes, please always build the latest automatically. Otherwise we depend on you to build the current version. Right now, there is 8.3.0 in production but your image points to 8.2.4 😉
Sidenote: https://hub.docker.com/r/blacklabelops/jira is outdated anyway

esciara commented 4 years ago

Just for info : JIRA docker image does it (which I like less because it is less configurable than this one) through a CircleCI crin job. See https://github.com/cptactionhank/docker-atlassian-jira-software/blob/master/.circleci/config.yml . (File and scripts are reasonably well commented)

Note that it looks at the JIRA version json feed, changes the versions on the Dockerfile, builds a new docker image and runs a fair amount of tests in ruby/capybara to setup the server and test most things work as expected. If it does, it then releases the image in the docker repo.

More direct link to scripts:

CORRECTION: there were Capybara tests, but they have been commented out (at some stage the JIRA interface changed and no one corrected the test code. Shame... it was fairly elegant. here is the test code.