docker下部署jira破解版

1、 制作Docker破解容器

 

 

在/opt/jira下新建一个Dockerfile文件

touch Dockerfile

 

 编辑Dockerfile文件

vim 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、 下载atlassian-agent.jar文件,放置在Dockerfile同目录下,例如

- JIRA
--Dockerfile
--atlassian-agent.jar

 插件下载地址参考博客https://www.cnblogs.com/zhmiao/p/10620903.html,里面有百度网盘下载地址

 

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 
复制代码

 

4 启动容器,执行命令:

复制代码
docker run --detach --publish 8099:8080 jira/jira:latest

复制代码

 

5 访问http://127.0.0.1:8099

6、配置mysql数据库

访问的时候会让你填写自动配置数据库还是系统帮你配置,因为我们系统需要用到之前连接的一个mysql库,在连接时提示只能连空库

 

7、破解

7.1、复制服务器ID:B5BP-G88A-XY6K-2S4L

7.2、在2中的"atlassian-agent.jar"的目录/opt/jira下执行命令,生成许可证:

java -jar atlassian-agent.jar -d -m test@test.com -n BAT -p jira -o http://192.168.0.164 -s B32Z-AKVY-V3J9-VA7O

# 只需要替换你的访问地址(http://192.168.0.41)、服务器ID(BY9B-GWD1-1C78-K2DE)

java -jar atlassian-agent.jar -d -m test@test.com -n BAT -p jira -o http://192.168.0.41 -s B5BP-G88A-XY6K-2S4L

posted on 2020-08-21 16:06  金龟子大战猕猴桃  阅读(2394)  评论(1编辑  收藏  举报