Jira & Confluence 服务部署
1. Jira 装置配置
1.1 Jira 简介
JIRA 是 Atlassian 公司出品的我的项目与事务跟踪工具,被广泛应用于缺点跟踪、客户服务、需要收集、流程审批、工作跟踪、我的项目跟踪和麻利治理等工作畛域,其配置灵便、性能全面、部署简略、扩大丰盛
1.2 Jira 破解镜像制作
- 破解 crack 起源:Gitee atlassian-agent,实践上可用于破解所有版本的 Atlassian 家简直所有产品,然而只验证了特定的版本(Jira Docker Image 7.12.0)
编写 Dockerfile
mkdir -p /opt/jira
echo '
FROM cptactionhank/atlassian-jira-software:7.12.0
USER root
COPY "atlassian-agent.jar" /opt/atlassian/jira/
RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${CATALINA_OPTS}"'>> /opt/atlassian/jira/bin/setenv.sh' > /opt/jira/Dockerfile
下载 atlassian-agent.jar 文件到 Dockerfile 同目录
构建镜像
docker build -t jira/jira:v7.12.0 .
1.3 配置 MySQL 数据库
筹备 MySQL 配置文件
echo '
[client]
default-character-set = utf8
[mysql]
default-character-set = utf8
[mysqld]
character-set-server=utf8
innodb_log_file_size=3G
character_set_server = utf8mb4
innodb_default_row_format=DYNAMIC
innodb_large_prefix=ON
#innodb_file_format=Barracud
default-storage-engine=INNODB ' > /opt/jira/my.cnf
启动 MySQL 容器
docker run \
--name mysqlForJira \
--restart always \
-p ${port}:3306 \
-v /opt/jira/mysql/:/var/lib/mysql \
-v /opt/jira/my.cnf:/etc/mysql/my.cnf \
-e MYSQL_ROOT_PASSWORD=${password} \
-d mysql:5.7
创立表和用户
create database jira character set 'UTF8';
create user jira identified by 'jira';
grant all privileges on `jira`.* to 'jira'@'172.%' identified by 'jira' with grant option;
grant all privileges on `jira`.* to 'jira'@'localhost' identified by 'jira' with grant option;
flush privileges;
1.4 Jira 容器生成
docker run --name jira \
--restart always \
--link mysqlForJira:mysql \
--link confluence:confluence \
-p ${port}:8080 \
-v /opt/jira/var/:/var/atlassian/jira \
-v /opt/jira/opt:/opt/atlassian/jira \
-d jira/jira:v7.12.0
1.5 Jira 破解配置
拜访 http://127.0.0.1:${port},进入 Jira setup wizard , 进行初始化配置
- 手动设置我的项目
- 抉择配置独立数据库
制订许可证关键字:
- 复制 服务器 ID
- 在本地寄存 atlassian-agent.jar 目录下执行
java -jar atlassian-agent.jar -d -m ${email} -n ${company_name} -p jira -o ${jira_url} -s ${服务器 ID}
将生成的许可证复制到页面,实现破解
2 Confluence 装置配置
2.1 Confluence 简介
Confluence 是一个业余的企业常识治理与协同软件,也能够用于构建企业 wiki。应用简略,但它弱小的编辑和站点治理特色可能帮忙团队成员之间共享信息、文档合作、个体探讨,信息推送。
2.2 Confluence 破解镜像制作
- 破解 crack 起源:Gitee atlassian-agent,实践上可用于破解所有版本的 Atlassian 家简直所有产品,然而只验证了特定的版(Confluence Docker Image 6.13.0)
编写 Dockerfile
mkdir -p /opt/confluence
echo 'FROM cptactionhank/atlassian-confluence:6.13.0
USER root
COPY "atlassian-agent.jar" /opt/atlassian/confluence/
RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/confluence/atlassian-agent.jar ${CATALINA_OPTS}"'>> /opt/atlassian/confluence/bin/setenv.sh' >> /opt/confluence/Dockerfile
下载 atlassian-agent.jar 文件到 Dockerfile 同目录
构建镜像
docker build -f Dockerfile -t confluence/confluence:6.13.0 .
2.3 配置 MySQL 数据库
筹备 MySQL 配置文件
mkdir -p /opt/confluence/mysql
echo '[client]
default-character-set =utf8
[mysql]
default-character-set =utf8
[mysqld]
character_set_server =utf8
collation-server=utf8_bin
max_allowed_packet=256M
innodb_log_file_size=256M
default-storage-engine=INNODB
transaction-isolation=READ-COMMITTED
binlog_format=row ' > /opt/confluence/my.cnf
启动 MySQL 容器
docker run \
--name mysqlForConfluence \
--restart always \
-p ${port}:3306 \
-v /opt/confluence/mysql/:/var/lib/mysql \
-v /opt/confluence/my.cnf:/etc/mysql/my.cnf \
-e MYSQL_ROOT_PASSWORD=${password} \
-d mysql:5.7
创立表和用户
create database confluence character set 'UTF8';
create user confluence identified by 'confluence';
grant all privileges on `confluence`.* to 'confluence'@'%' identified by 'confluence' with grant option;
grant all privileges on `confluence`.* to 'confluence'@'localhost' identified by 'confluence' with grant option;
flush privileges;
alter database confluence character set utf8 collate utf8_bin;
set global tx_isolation='READ-COMMITTED';
2.4 Confluence 容器生成
docker run --name confluence \
--restart always \
--link mysqlForConfluence:mysql \
--link jira:jira \
-p ${port}:8090 \
-v /opt/confluence/data/:/home/confluence_data \
-v /opt/confluence/opt/:/opt/atlassian/confluence \
-v /opt/confluence/var/:/var/atlassian/confluence \
-d confluence/confluence:6.13.0
2.5 Confluence 破解配置
拜访 http://127.0.0.1:${port},进入 Jira setup wizard , 进行初始化配置
- 手动设置我的项目
- 抉择配置独立数据库
制订许可证关键字:
- 复制服务器 ID
- 在本地寄存 atlassian-agent.jar 目录下执行
java -jar atlassian-agent.jar -d -m ${email} -n ${company_name} -p conf -o ${jira_url} -s ${服务器 ID}
将生成的许可证复制到页面,实现破解
3 参考
- What is Jira used for?
- 通过 Docker 装置破解版 Jira 与 Confluence
- Docker 装置破解版 Jira 与 Confluence