Quantcast
Channel: Active questions tagged atlassian-plugin-sdk - Stack Overflow
Viewing all articles
Browse latest Browse all 280

How can I run jira in dev mode as a docker container?

$
0
0

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 1fitouch .envecho "JIRA_VERSION=$JIRA_VERSION" > .envecho "PLUGIN_FILE=$PLUGIN_FILE" >> .envdocker-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?


Viewing all articles
Browse latest Browse all 280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>