带有1个Docker映像中的插件的Jira [英] Jira with plugins in 1 docker image

查看:68
本文介绍了带有1个Docker映像中的插件的Jira的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种在docker容器中运行jira并随其附带(启动)所有所需插件的方法.我的Jira经常重启,所以我不想一遍又一遍地手动安装所有插件.

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.

我也想避免在启动jira之后使用某种管道.据我所知,可以使用Rest API安装Jira插件.但我想避免对此提出http请求.

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.

有没有一种方法可以在其中包含我的插件的自定义图像?这是基本图像: https://hub.docker.com/r/atlassian/吉拉软件

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 e.g. an artifactory is not a problem.

期待您的回音.谢谢,最好的问候.

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

推荐答案

出于测试目的,我们使用docker-compose将插件包含在Jira中. 您必须将本地插件文件中的卷映射到Jira的plugins目录,因此在启动时,它将自动提取您的插件. 看起来或多或少是这样的:

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

您还可以轻松地构建自己的映像,克隆其存储库并修改Dockerfile以将插件复制到Jira的文件夹中. 例如

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

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

这篇关于带有1个Docker映像中的插件的Jira的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆