一、准备工作
1、docker环境部署
2、破解插件:https://gitee.com/pengzhile/atlassian-agent
二、安装jira
2.1 制作Docker破解容器
编写Dockerfile文件:
FROM cptactionhank/atlassian-jira-software:latest
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
2.2 下载atlassian-agent.jar文件,放置在Dockerfile同目录下,例如
- JIRA
--Dockerfile
--atlassian-agent.jar
2.3 构建镜像,执行命令:
docker build -t jira/jira:latest .
显示:
Sending build context to Docker daemon 976.9kB
Step 1/4 : FROM cptactionhank/atlassian-jira-software:latest
---> a4e226435cc8
Step 2/4 : USER root
---> Running in 6bffa3557af9
Removing intermediate container 6bffa3557af9
---> 517c70568305
Step 3/4 : COPY "atlassian-agent.jar" /opt/atlassian/jira/
---> 8c97f46bf2d3
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 3c644ad7a754
Removing intermediate container 3c644ad7a754
---> 8342dee2d58b
Successfully built 8342dee2d58b
Successfully tagged jira/jira:latest
2.4 启动容器,执行命令:
docker run --detach --publish 8080:8080 jira/jira:latest#映射到本地,数据持久化
docker run \
--detach \
-p 8091:8080 \
--privileged \
-m 4096M \
-v /Users/john/jira/data:/var/atlassian/application-data/jira \
-v /Users/john/jira/jira:/VAR/ATLASSIAN/JIRA \
-v /Users/john/jira/logs:/OPT/ATLASSIAN/JIRA/LOGS \
--name jira \
jira/jira:latest
2.5 访问http://127.0.0.1:8080
2.5.1 docker 建立mysql数据库(默认字符集:utf8 默认排序规则:utf8_bin,否则报错)
docker pull mysql:5.6
docker run --name jirasql -v /Users/john/dockerdata/jirasql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -d mysql:5.6
2.5.2 jira配置mysql数据库
2.6 破解
2.6.1、复制服务器ID:B33Q-56JC-AQSG-GMA3
2.6.2、在本地存放"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 B33Q-56JC-AQSG-GMA3
====================================================
======= Atlassian Crack Agent =======
======= https://zhile.io =======
======= QQ Group: 30347511 =======
====================================================
Your license code(Don't copy this line!!!):
AAABng0ODAoPeJyNkkFv4jAQhe/5FZF6TpoEaAHJ0rJJVKVKYLuB3k0YGiNju2OHXfrr1yGpti0IV
fLF1rznN9/MTUmNO1PoBkM3iqbDyTQM3LhculEQBc4LAohaKgXo56wCoWF5VDCneyDxoijS33E2y
50YgRomRUINkFboBUN7nCuSBHSFTLUqshKc7ZmBjcs7gbs+urUxSk9vb99qxsFn0ikoEwYEFRWkf
xXDY//beOIF9/Y4O4b0PWW6YZ31PM+KbJkmzrzZrwEX25UG1MQL38Nd8VIoN01l/Pbiabk1fyiCf
2Z0pZZWhh2AGGzgE8uP71fkNhWNwXaNXWmP59l+3DYXOWWz/o/xVJIeKG9OwyBbynVv/9VogS9UM
N3VtaQtaC4rymupjRNLYWzC1BLnhLMdg508/nh99Su57/wuM/hmV6Wh2Cbp8vVjyBKSZ0mZzr08H
I3vgjC8HwXj4eepXlqkEvAAaOU/B4Mnb3T3GHuzp/LBeyhmg0v7e74Zvxqsaqrh6/Z+FJ/YKWS6b
88GJRfC9uROGR9lLf4BatEo1zAsAhQX6DZd+ApriOy5qpamV/bykFPOGAIUXTUtqM1owPU1dPMAS
Kam9IQ3+J0=X02k0
激活完成。
docker build -f Dockerfile -t confluence/confluence:latest .