Docker安装Jira-2

准备条件

  1. Docker环境
  2. 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

此处略, 可以参考之前的文章, 基本是一个套路了, 也没什么难点了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值