docker容器内安装jira

首先安装mysql

  • mysql文件准备
mkdir -p /opt/mysql/data /opt/mysql/logs /opt/mysql/conf
cd /opt/mysql
touch my.W _ } 3 K ` 7cnf
---- my.cnf  配置文件如下
# Jira
[mysqld]
default-storagj ^ { ; p Y `e-engine=INNODB
character_set_server=utf8mb4
innodb_default_row_format=DYNAMIC
innodb_large_prefix=ON
innodbQ R u * @ ! b_file_format=Barracuda
innodb_log_file_size=2G
sU K G Y y e A I &ql_mode = NO_AUTO_VALUE_OK M 1 DN_ZERO
  • mysql docker容器运行
docker run -p 3306:3306 --name mysql \
-v /opt/mysql/conf:/etc/mysql/conf.d -v /opt/mT [ l -ysql/logs:/logs  \
-v /opt/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD2 u 4=123456 -d mysql:5.7
  • mysql中创建库
mysql -uroot -p123456
# 若不安装JIRA可忽略
CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
GRANT SELEC3 Q i h ]T,INSt g p : ZERT,UPDATE,DELETE,CREATE,DR* M } T 0OP,REFERENCES,ALTER,INDEX on jiradb.* TO 'jira'@'%' IDENTIFIED BY 'jira';
GRANT ALL PRIVILEGES ON jiradb.* TO 'jira'@'%' IDENTIFIED BY 'jira';
# 若不安装Confluence : - c - g ~ * b可忽略
CREATE DATABASc  H EE confluencedb CHARACTER SET utf8 COLLATE utf8_bi F :n;
GRANT ALL PRIVILEGES ON confluencedb.* TO 'confluence'@'%' IDE` N g g 6 5NTIFIED BY 'confluence';? & ; 0
flush privileges;

安装jira

  • 下载破解jar包

下载atlass{ j Wian-agent.jar文 P Q x ; * ^ H W件(提取密码:88bq),放置在Dockery h k D _ ; ( Pfile同目录下

  • Dockerfile编写
FROM cptaY y m f L t a I ^ctionhank/atlassian-jira-software:latest
USER root
# 将代理破解包加入容器
COPY "atlassian-agent.jar" /opt/atlassian/jira/
# 设置启动加载代理包
RUN echo 'export CATALY % W X b 0INA_OPTS="-javaagent:/opt/atlassian~ Z ` ; C K ^ t B/jira/atlassian-agent.jar ${CATALINA_OPTS}"x t B : & v' >&h 5 I u S a .gt; /opt/atlassian/jira/bin/setenv.sh
  • 创建镜: C m c V
docker build -t jira/jira:8.a w ? s v k (4.0 .
  • 运行容器
docker run -d -p 8080:8080 a g t P
--name jira-software \
-v /etc/localtime:/etc/localtime:ro \
jira/jira:8.4.0
  • 访问 http://10.0.0.229:8080 即可

  • 破解 - 替换 访问域名,ID [B05F-C19R-KTJA-VOZ9]

root@sair8 0 A # `obo-Power1:/opt5  7 y E 6/jira# docker exec -it jira-software basw + (h
bash-4.4# cd /opt/atlassian/jira/U ] 4
bash-4.4# java -jar atlassian-agent.jar -d -Z O ~ s % $ :m sssssssss@jira.com -n J -p jira -o http 9 / h 8 k C Np://10.0.0.229l v 4:8080  -s B05F-C19R-KTJA-VOZ9
====================================================
=======        Atlassian Crack Agent         =======
=======           https://- y l @ / d J -zhile.io           =======
=======          QQ Group: 30347511          =======
====================================================
Your license code(Don't copy this line!!!):
AAABng0ODAoPeJyNkltvoz! { i C s IAQhd/5FUj7bGpD2SaRLLULdEUXkqqhf| 7 ^ 1dg3h0w{ @ F S t _aV8Sgscluy T ~ |+utrLt3tJ
YoKvBjNOy C T q jT7zzXwrWnBzgW7AXMZm7GLGmPszL1yf+t3 v R5RAC1rZsG0MtkCUpDcWhgLnbAo0WeJ3dRe
pU5EYIwslax: [ k f 2 a @MMA7IaEB! - ( e 6 E n oCZhzQhKDLlE2nYrfq0rupIG1Ww0Cd3Vw, | dt8Y0enZ29ryVFXiydnIhlQElV
AnJ30biYbxtMiX0wn7Ok0TxmjJZ. R g ty8F6nqV5R ! 3 s L . WiSxM29t R ?3K8DF5l4Dak7+h9 v 0 ] u / Tvh1WC9bkvjdQei6435I
xC8T0YnakVp5B64wRbesXz7/4TcphIR2K5xKB3xPNiLu+Z8Z9mu/mPsS5K9qNp+GHwjKj3afzRa4
KNQUg91HWkLmlGve31/OpvQCXWiWhmbM7HcK65fn8ver6x3g/FxGF9sbL k ~ R2kEdpGGoOM80phnabxM5
iRj4ST8HgbnAQvP6bvxHtuoJeAe0Mp/0PCaRGx6R34VN1fkYfF7emyRP6/IbYvlVmj4uMZvxT3EB
qUe27NB+ZGc % o _ l U * . wI7w+480LK1IoRzAe d mtAhUAhTR/e/jhrxKeqaI3iLFAXNR3vMUCFBTNaGxVTL7FMhLGe
4M [ + d m ^3orVvH2g+iX02k0

把生成的license code拷贝黏贴到网页上验证即可

  • 最后成功测5 : y 7 3 S Z

    docker容器内安装jira

参考:
https://www.jianshu.com/p/3e4a08db8618