1.制作Dockerfile
123456789 | 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 |
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
2.下载atlassian-agent.jar文件
百度网盘地址:
链接:https://pan.baidu.com/s/17zNwlp3sd1PLSCxPVjDwfQ
提取码:b84z
3.构建镜像:
1 | docker build - t jira / jira:v7. 12.0 . |
4.启动容器:
1 | docker run - d - p 8089 : 8080 - - name jira 7076981e8708 |
5.访问地址
http://ip:8089
破解:
1.复制服务器ID
2.在本地存放“atlassian-agent.jar”的目录下执行命令,生成许可证:
12345 | java -jar atlassian-agent.jar -d -m test@test.com -n BAT -p jira -o http://IP或者域名 -s JIRA里提示的序列号 |
将生成的许可复制到页面,完成破解