經過Docker安裝JIRA和Confluence(破解版)

須要工具以下:

採用以上工具,理論上能夠破解幾乎所有版本。java

1 安裝 mysql 5.7

# 啓動容器mysql
docker run --name mysql \
    --restart always \
    -p 3306:3306 \
    -e MYSQL_ROOT_PASSWORD=zagame10086 \
    -v data_mysql_vol:/var/lib/mysql \
    -v conf_mysql_vol:/etc/mysql/conf.d \
    -v data_backup_vol:/backup \
    -d mysql:5.7

1.1 配置數據庫

MySQL所使用的配置文件my.cnf核心參數:mysql

[client]
default-character-set = utf8

[mysql]
default-character-set = utf8

[mysqld]
character_set_server = utf8
collation-server = utf8_bin
transaction_isolation = READ-COMMITTED

須要注意的是,Confluence須要使用utf8_bin,並將事務隔離策略設爲READ-COMMITTED。git

1.2 建立表及用戶

--建立jira數據庫及用戶
--drop database jira;
create database jira character set 'UTF8';
create user jira identified by 'jira';
grant all privileges on `jira`.* to 'jira'@'172.%' identified by 'jira' with grant option;
grant all privileges on `jira`.* to 'jira'@'localhost' identified by 'jira' with grant option;
flush privileges;

--建立confluence數據庫及用戶
--drop database confluence;
create database confluence character set 'UTF8';
create user confluence identified by 'confluence';
grant all privileges on `confluence`.* to 'confluence'@'%' identified by 'confluence' with grant option;
grant all privileges on `confluence`.* to 'confluence'@'localhost' identified by 'confluence' with grant option;
flush privileges;
--設置confluence字符集
alter database confluence character set utf8 collate utf8_bin;
-- confluence要求設置事務級別爲READ-COMMITTED
set global tx_isolation='READ-COMMITTED';
--set session transaction isolation level read committed;
--show variables like 'tx%';

2 安裝JIRA 7.12.0

JIRA 是一個缺陷跟蹤管理系統,爲針對缺陷管理、任務追蹤和項目管理的商業性應用軟件,開發者是澳大利亞的Atlassian。JIRA這個名字並非一個縮寫,而是截取自「Gojira」,日文的哥斯拉發音。 官網github

2.1 製做Docker破解容器

編寫Dockerfile文件:sql

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.2 下載atlassian-agent.jar文件,放置在Dockerfile同目錄下,例如:

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

2.3 構建鏡像,執行命令:

docker build -t jira/jira:v7.12.0 .

2.4 啓動容器,執行命令:

# 啓動容器jira,並關聯mysql和confluence容器
docker run --name jira \
    --restart always \
    --link mysql:mysql \
    --link confluence:confluence \
    -p 9005:8080 \
    -v data_jira_var:/var/atlassian/jira \
    -v data_jira_opt:/opt/atlassian/jira \
    -d jira/jira:v7.12.0

2.5 打開瀏覽器訪問 http://127.0.0.1:9005 ,可見jira頁面,可切換中文操做,選擇手動配置項目(必須),在請指定你的許可證關鍵字時,把服務器ID記下,使用atlassian-agent.jar算號破解!!!操做以下:

  1. 複製服務器ID:BY9B-GWD1-1C78-K2DE
  2. 在本地存放"atlassian-agent.jar"的目錄下執行命令,生成許可證:
# 設置產品類型:-p jira, 詳情可執行:java -jar atlassian-agent.jar
java -jar atlassian-agent.jar -d -m test@test.com -n BAT -p jira -o http://127.0.0.1 -s BACN-OTO2-ZDC9-CWVG
  1. 將生成的許可證複製到頁面,完成破解。

3. 安裝Confluence 6.13.0

Atlassian Confluence(簡稱Confluence)是一個專業的wiki程序。它是一個知識管理的工具,經過它能夠實現團隊成員之間的協做和知識共享。官網docker

3.1 編寫Dockerfile文件:

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

3.2 下載atlassian-agent.jar文件,放置在Dockerfile同目錄下,例如:

- Confluence
  --Dockerfile
  --atlassian-agent.jar

3.3 構建鏡像,執行命令:

docker build -f Dockerfile -t confluence/confluence:6.13.0 .

3.4 啓動容器,執行命令:

# 啓動容器confluence,並關聯mysql和jira容器
docker run --name confluence \
    --restart always \
    --link mysql:mysql \
    --link jira:jira \
    -p 9006:8090 \
    -v data_confluence_vol:/home/confluence_data \
    -v data_confluence_opt:/opt/atlassian/confluence \
    -v data_confluence_var:/var/atlassian/confluence \
    -d confluence/confluence:6.13.0

3.5 打開瀏覽器訪問 http://127.0.0.1:9006 ,可見confluence頁面,可切換中文操做,在請指定你的許可證關鍵字時,把服務器ID記下,使用atlassian-agent.jar算號破解!!!操做以下:

  1. 複製服務器ID:B6QG-R8VH-YCHH-8EY2
  2. 在本地存放"atlassian-agent.jar"的目錄下執行命令,生成許可證:
# 設置產品類型:-p conf, 詳情可執行:java -jar atlassian-agent.jar
java -jar atlassian-agent.jar -d -m test@test.com -n BAT -p conf -o http://127.0.0.1 -s B6QG-R8VH-YCHH-8EY2
  1. 將生成的許可證複製到頁面,完成破解。

4. 後臺日誌報錯Establishing SSL connection without解決

問題:啓動後發現Confluence和Jira後臺都報錯以下:數據庫

WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

緣由:MySQL5.7.6以上版本要默認要求使用SSL鏈接,若是不使用須要經過設置useSSL=false來聲明。瀏覽器

解決方案:在mysql鏈接字符串url中加入useSSL=true或者false便可,以下:服務器

# Confluence找到配置文件/var/atlassian/confluence/confluence.cfg.xml修改mysql鏈接字符串以下:
jdbc:mysql://mysql/confluence?useUnicode=true&characterEncoding=utf8&useSSL=false

# Jira找到配置文件/var/atlassian/jira/dbconfig.xml修改mysql鏈接字符串以下:
jdbc:mysql://address=(protocol=tcp)(host=mysql)(port=3306)/jira?useUnicode=true&characterEncoding=UTF8&sessionVariables=default_storage_engine=InnoDB&useSSL=false
相關文章
相關標籤/搜索