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
您的资助是我最大的动力!
金额随意,欢迎来赏!