简体   繁体   中英

Jira with plugins in 1 docker image

I'm looking for a way to run jira inside a docker container and ship (start) all needed plugins with it. My Jira gets restarted quite often so I don't want to install all plugins manually over and over again.

Also I would like to avoid using some kind of pipeline after jira is started. As far a I know, Jira plugins can be installed using some Rest API. But I would like to avoid http requests for this.

Is there a way to have a custom image where I can include my plugins? This is the base image: https://hub.docker.com/r/atlassian/jira-software

Storing the actual plugin files (downloadable from marketplace) in eg an artifactory is not a problem.

Looking forward to hearing from you. Thanks and best regards.

We use docker-compose to include our plugin in Jira for testing purposes. You have to map volume from your local plugin file, to Jira's plugins directory, so when it starts, it will automatically pick up your plugin. It looks more or less like this:

version: "3.5"
services:
  jira:
    image: atlassian/jira-software:latest
    restart: "no"
    volumes:
      - ./plugins/plugin.jar:/opt/atlassian/jira/atlassian-jira/WEB-INF/atlassian-bundled-plugins/plugin.jar

You can also easily build your own image, cloning their repo and modifying Dockerfile to copy your plugin in Jira's folder. eg

COPY my-plugin.jar
RUN cp /my-plugin.jar ${JIRA_INSTALL_DIR}/atlassian-jira/WEB-INF/atlassian-bundled-plugins/my-plugin.jar

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM