欢迎来到 一木浮生 的博客

人生三重境界:昨夜西风凋碧树,独上高楼,望尽天涯路。 衣带渐宽终不悔,为伊消得人憔悴。 众里寻他千百度,蓦然回首,那人却在灯火阑珊处。
扩大
缩小

confluence 开源破解

一、安装

 

(一)、开源agent

 
https://gitee.com/pengzhile/atlassian-agent

 

 

(二)、dockerfile

FROM cptactionhank/atlassian-confluence:7.4.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

 

 

(三)、启动docker-compose

 
version: '2'
services:
confluence:
image: dockerhub.test.app/devops/ops/v1:_09_14_18_38
container_name: confluence
hostname: confluence
restart: always
networks:
- confluencenet
volumes:
- /data/confluence/data:/var/atlassian/application-data/confluence
ports:
- '8090:8090'
- '8091:8091'
environment:
- 'CATALINA_OPTS= -Xms2048m -Xmx2048m'
- 'CONFLUENCE_PROXY_NAME=wiki.corp.test'
- 'CONFLUENCE_PROXY_PORT=443'
- 'CONFLUENCE_PROXY_SCHEME=https'
- 'CONFLUENCE_DELAYED_START=30'
depends_on:
- postgresql
postgresql:
image: postgres:9.6.15-alpine
container_name: postgres
hostname: postgres
restart: always
networks:
- confluencenet
ports:
- '5432:5432'
volumes:
- /data/confluence/pgsql:/var/lib/postgresql/data
environment:
- 'POSTGRES_USER=confluence'
- 'POSTGRES_PASSWORD=0qmt-mHGo-r443-WFtt'
- 'POSTGRES_DB=confluence'
- 'POSTGRES_ENCODING=UTF8'
- 'POSTGRES_COLLATE=C'
- 'POSTGRES_COLLATE_TYPE=C'
networks:
confluencenet:
driver: bridge

  

 

 

二、安装激活

- 进入容器

 
docker exec -it confluence /bin/bash

  

- 例 执行激活

java -jar atlassian-agent.jar -d -m admin@admin.com -n BAT -p conf -o http://wiki.corp.test -s B6OH-RG8A-JNTJ-XP9C

  

 

posted on 2021-09-22 14:56  一木浮生  阅读(2287)  评论(0编辑  收藏  举报

导航