Docker安装Jira
准备条件
- Docker环境
- Atlassian-agent编译工具, 在此非常感谢开源贡献者pengzhile,参考链接:https://search.gitee.com/?skin=rec&type=repository&q=atlassian-agent
安装步骤
Mysql配置
vim my.cnf
# Copyright (c) 2016, 2021, Oracle and/or its affiliates.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2.0,
# as published by the Free Software Foundation.
#
# This program is also distributed with certain software (including
# but not limited to OpenSSL) that is licensed under separate terms,
# as designated in a particular file or component or in included license
# documentation. The authors of MySQL hereby grant you an additional
# permission to link the program and your derivative works with the
# separately licensed software that they have included with MySQL.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License, version 2.0, for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
[mysqld]
default-storage-engine=INNODB
character_set_server=utf8mb4
innodb_default_row_format=DYNAMIC
innodb_large_prefix=ON
innodb_file_format=Barracuda
innodb_log_file_size=2G
创建mysql
docker run -d --name jirasql \
-e MYSQL_ROOT_PASSWORD=123456 \
-v /root/mysql/5.7/:/etc/mysql/conf.d \
-p 3306:3306 \
mysql:5.7
配置mysql
CREATE USER 'jira' IDENTIFIED BY '123456';
CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on jiradb.* TO 'jira'@'*' IDENTIFIED BY '123456';
flush privileges;
安装Jira
docker volume create --name jiraVolume
docker run -d --name jira-service-desk \
--restart always \
-p 8080:8080 \
-v jiraVolume:/var/atlassian/application-data/jira \
atlassian/jira-servicemanagement:4.20
下载mysql connector
地址: https://dev.mysql.com/downloads/connector/j/
下载完成后导入到docker中
docker cp mysql-connector-java-5.1.49-bin.jar jira-service-desk:/opt/atlassian/jira/atlassian-jira/WEB-INF/lib
拷贝编译工具到jira
docker cp atlassian-agent.jar 9eb1fa6e3956:/opt/atlassian/jira
重启jira
docker restart jira-service-desk
配置Jira
此处略, 可以参考之前的文章, 基本是一个套路了, 也没什么难点了。
版权声明:本文为weixin_41444433原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。