So we have a jira plugin under development that needs be manually tested on various jira versions. Using atlas-debug for this is a PAIN and I'd much rather be able to pull down a docker image, do my testing on it, then discard the container again.
Based on this answer, my approach is
start_jira.sh
echo "Reading versions..."
JIRA_VERSION=${1:-latest}
echo -e "\tJira: $JIRA_VERSION"
PLUGIN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo -e "\tPlugin: $PLUGIN_VERSION"
PLUGIN_FILE="./target/my_plugin-$PLUGIN_VERSION.jar"
if [[ -f "$PLUGIN_FILE" ]]; then
echo "Starting ..."
else
echo "'$PLUGIN_FILE' does not exist. Have you run mvn install?"
exit 1
fi
touch .env
echo "JIRA_VERSION=$JIRA_VERSION" > .env
echo "PLUGIN_FILE=$PLUGIN_FILE" >> .env
docker-compose up -d
where
docker-compose.yml
version: "3.5"
services:
jira:
image: atlassian/jira-software:${JIRA_VERSION}
restart: "no"
ports:
- 8080:8080
volumes:
- ${PLUGIN_FILE}:/opt/atlassian/jira/atlassian-jira/WEB-INF/atlassian-bundled-plugins/plugin.jar
That seems to start fine. However, jira asks for a license.
I think it's neither reasonable nor advisable to ask developers to generate trial licenses left and right just so they can test on a certain jira instance.
Is there any way I can run this jira image in something akin to dev mode where it will work but expire in a couple days or something?