准备工作 如Dockerfile
制作镜像
docker build -t jira/jira:v7.12.0 .
结果如下:
Sending build context to Docker daemon 985.1kB Step 1/4 : FROM cptactionhank/atlassian-jira-software:7.12.0 ---> 1b29859343c2 Step 2/4 : USER root ---> Using cache ---> 31ea501d34b6 Step 3/4 : COPY "atlassian-agent.jar" /opt/atlassian/jira/ ---> ce3a1f7cd53d Step 4/4 : RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/jira/bin/setenv.sh ---> Running in 88440445ba9e ---> f247b9463dbb Removing intermediate container 88440445ba9e Successfully built f247b9463dbb Successfully tagged jira/jira:v7.12.0
启动容器
docker run --detach --publish 8080:8080 jira/jira:v7.12.0
或者使用
docker-compose up -d
4 启动并破解
破解重点!!!
复制服务器ID:BY9B-GWD1-1C78-K2DE
在本地存放"atlassian-agent.jar"的目录下执行命令,生成许可证:
# 需替换邮箱(test@test.com)、名称(BAT)、
# 访问地址(http://192.168.0.89)、服务器ID(BY9B-GWD1-1C78-K2DE)
# 为你的信息
java -jar atlassian-agent.jar -d -m test@test.com -n BAT -p jira -o http://192.168.0.89 -s BY9B-GWD1-1C78-K2DE
https://www.jianshu.com/p/b95ceabd3e9d
docker-compose up -d
--创建jira数据库及用户
create database jiradb character set 'UTF8';
create user jirauser identified by 'jira';
grant all privileges on *.* to 'jirauser'@'%' identified by 'jira' with grant option;
grant all privileges on *.* to 'jirauser'@'localhost' identified by 'jira' with grant option;
flush privileges;
--创建confluence数据库及用户
create database confdb character set 'UTF8';
create user confuser identified by 'conf';
alter database confdb default collate utf8_bin;
grant all privileges on *.* to 'confuser'@'%' identified by 'conf' with grant option;
grant all privileges on *.* to 'confuser'@'localhost' identified by 'conf' with grant option;
flush privileges;
-- 设置confdb事务级别
show variables like 'tx%';
set session transaction isolation level read committed;
show variables like 'tx%';
java -jar atlassian-agent.jar -d -m test@test.com -n BAT -p conf -o http://192.168.0.89 -s BZP7-KCTN-1F1L-NZUX
jdbc:mysql://mysql/confdb?useUnicode=true&characterEncoding=utf8&useSSL=false
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。