docekr安装jira

DockerFile

新建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

下载破解包

百度网盘地址:
链接:https://pan.baidu.com/s/17zNwlp3sd1PLSCxPVjDwfQ
提取码:b84z

构建容器

登录配置

登录jira http://172.16.101.251:7993,进行配置

配置数据库

创建数据库

# 在安装conflu的时候我们安装了postgresql容器只要进入容器新建一个jira数据库即可


root@xzw:/home# docker exec -it postgresql bash
root@a284aa81489b:/# psql -U postgres
psql (13.4 (Debian 13.4-1.pgdg100+1))
Type "help" for help.

postgres=# CREATE DATABASE jira WITH OWNER postgres;
CREATE DATABASE
postgres=# \q

配置连接postgresql数据库

配置密钥

#进入jira容器
# 访问地址(http://172.16.101.251)、服务器ID(BY9B-GWD1-1C78-K2DE)

# 进入jira目录
cd /opt/atlassian/jira


# 获取license
java -jar atlassian-agent.jar -d -m test@test.com -n BAT -p jira -o http://172.16.101.251 -s BOLL-Y1N5-ZQCX-DWYR

其他配置很简单依次配好即可

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×