Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy Confluence and jira-software in Docker

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to deploy Confluence and jira-software in Docker. It is very detailed and has a certain reference value. Friends who are interested must read it!

Version:

Centos==7.2 jdk==1.8 confluence==6.15.4 jira-software==8.2.1 docker==18.09

Tips before installation:

1. Two databases need to be prepared because the mysql configuration requirements for confluence and jira-software are different.

2. Confluence needs to be configured with jdk,jira-software with jdk

Reasons for choosing to use docker deployment:

1. Confluence and jira-software environments have different requirements and need to be configured separately.

two。 If you directly use the physical machine, you need to occupy more than one.

3. Do not use virtual machines because docker is lighter and easier to migrate.

4. Confluence and jira-software are only used as internal employees of the company and do not require too high configuration and complex environment

This deployment process:

1. Configure the database required by jira-software

two。 Configure jira-software

3. Configure the database required by confluence

4. Configure confluence

Container name and IP distribution:

Since the account of wiki can be controlled by jira, we will install jira-software first

Host IP:10.0.0.25

1. Jira-software

Jira-mysql 192.168.0.10

Confluence-jira 192.168.0.100

2. Confluence

Wiki-mysql 192.168.0.20

Confluence-wiki 192.168.0.200

I. docker-ce environment configuration

1. Install docker

$sudo yum remove docker\ docker-client\ docker-client-latest\ docker-common\ docker-latest\ docker-latest-logrotate\ docker-logrotate\ docker-engine $sudo yum install-y yum-utils\ device-mapper-persistent-data\ lvm2 $sudo yum-config-manager\-add-repo\ https://download.docker.com/linux/centos/docker-ce.repo $sudo yum install docker -ce docker-ce-cli containerd.io $sudo systemctl enable docker $sudo systemctl start docker

two。 Configure to add a custom bridge to specify the docker container IP

$docker network create\-driver=bridge\-subnet=192.168.0.0/24\-ip-range=192.168.0.0/24\-gateway=192.168.0.254\ br-custom

3. Download the container basic image provided by the government

Docker pull centos:7.5.1511docker pull mysql:5.7.26

4. Default storage directory for migrating docker containers

Systemctl stop dockermv / var/lib/docker / data/dockerln-s / data/docker / var/lib/dockersystemctl start docker

II. Jira-software deployment

Create a directory:

Mkdir-p / docker-storage/confluence/jira/ {etc,data,mysql}

Interpretation:

/ docker-storage/confluence/jira/mysql: data directory of the MySQL container

/ docker-storage/confluence/jira/etc: the installation directory of the jira-software container

/ docker-storage/confluence/jira/data: data directory of the jira-software container

1. Deploy and configure the MySQL required by jira

# launch container docker run-- name jira-mysql-- network br-custom-- ip 192.168.0.10\-v / docker-storage/confluence/jira/mysql:/var/lib/mysql\-e MYSQLING ROOTROOTOR password 123456QR configuration'\-d mysql:5.7.26 # enter the container to modify the MySQL configuration And create the database docker exec-it jira-mysql "/ bin/bash" apt update apt-get install vim vim / etc/mysql/mysql.conf.d/mysqld.cnf [mysqld] default-storage-engine=INNODB character_set_server=utf8mb4 innodb_default_row_format=DYNAMIC innodb_large_prefix=ON innodb_file_format=Barracuda innodb_log_file_size=2G sql_mode = NO_AUTO_VALUE_ON_ZERO mysql-uroot-p123456Qr required by jira-software! CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,ALTER,INDEX on jiradb.* TO 'confluence-jira'@'192.168.0.%' IDENTIFIED BY' 123456QR configuration; flush privileges; # restart the container to make the MySQL configuration take effect docker restart jira-mysql

two。 Deploy jira-software

# four important options for installing jira-software installation Type-Select option 2 (Custom) for maximum control. Target directory-this is where Jira is installed. Home directory-this is where Jira data such as logs, search indexes and files are stored. TCP ports-these are the HTTP connector ports and the control ports on which Jira will run. Unless you are running another application on the same port, use the default value. Install as a service-use the / etc/init.d/jira [stop | start] command to control the jira service. # deploy the container and install jira-software docker run-dit-- name confluence-jira-- network br-custom-- ip 192.168.0.100-p 10.0.0.25 purge 10010purl 8080\-v / docker-storage/confluence/jira/:/usr/local/confluence/\-v / docker-storage/confluence/jira/etc/:/usr/local/confluence/etc/\-v / docker-storage/confluence/jira/data/: / usr/local/confluence/data/\ centos:7.2.1511 "/ bin/bash" docker exec-it confluence-jira "/ bin/bash" yum-y install epel-release yum-y install libffi-devel gcc gcc-c++ make automake zlib zlib-devel openssl-devel wget gcc gcc-c++ make automake zlib zlib-devel openssl-devel dejavu-sans-fonts vim lrzsz wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.2.1 -x64.bin chmod axix atlassian-jira-software-8.2.1-x64.bin. / atlassian-jira-software-8.2.1-x64.bin > Interactive installation process: Unpacking JRE... Starting Installer. > this will install jira software on your computer and enter This will install JIRA Software 8.2.1 on your computer. OK [o, Enter], Cancel [c] Click Next to continue, or Cancel to exit Setup. Enter 1 here for default installation, 2 for custom installation, 3 for update, select 2 Choose the appropriate installation or upgrade option. Please choose one of the following: Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing JIRA installation [3] 2 > Select your jira installation directory Select the folder where you would like JIRA Software to be installed. Where should JIRA Software be installed? [/ opt/atlassian/jira] / usr/local/confluence/etc > Select your jira data directory Default location for JIRA Software data [/ var/atlassian/application-data/jira] / usr/local/confluence/data > you can specify the service port, here is the default Configure which ports JIRA Software will use. JIRA requires two TCP ports that are not being used by any other applications on this machine. The HTTP port is where you will access JIRA through your browser. The Control port is used to startup and shutdown JIRA. Use default ports (HTTP: 8080, Control: 8005)-Recommended [1, Enter], Set custom value for HTTP and Control ports [2] > whether or not to install jira as a service, use "/ etc/init.d/jira [stop | start]" to control the stop and start of jira. JIRA can be run in the background. You may choose to run JIRA as a service, which means it will start automatically whenever the computer restarts. Install JIRA as Service? Yes [y, Enter], No [n] y > the configuration information you entered before is listed here. If you are asked whether to install it, enter Details on where JIRA Software will be installed and the settings that will be used. Installation Directory: / usr/local/confluence/etc Home Directory: / usr/local/confluence/data HTTP Port: 8080 RMI Port: 8005 Install as service: Yes Install [i, Enter], Exit [e] Extracting files... Please wait a few moments while JIRA Software is configured. > jira software has been installed successfully. Do you want to start Installation of JIRA Software 8.2.1 is complete Start JIRA Software 8.2.1 now now? Yes [y, Enter], No [n] y Please wait a few moments while JIRA Software starts up. Launching JIRA Software... Installation of JIRA Software 8.2.1 is complete Your installation of JIRA Software 8.2.1 is now ready and can be accessed via your browser. JIRA Software 8.2.1 can be accessed at http://localhost:8080 Finishing installation. # because jira does not have a drive with java to connect to mysql, you need to download it and put it in the corresponding directory. Wget https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.47.tar.gz tar zxf mysql-connector-java-5.1.47.tar.gz cp mysql-connector-java-5.1.47/mysql-connector-java-5.1.47-bin.jar / usr/local/confluence/etc/lib/ / etc/init.d/jira stop / etc/init.d/jira start # that's it Initialize your jira-software configuration by visiting "http://10.0.0.25:10010"" Temporarily use jira's trial license (regular version) # crack jira-software > back up the original file mv / usr/local/confluence/etc/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar / root/ > move the cracked file to the source location cp atlassian-extras-3.2.jar / usr/local/confluence/etc/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar > restart service / etc/init.d/jira stop / etc/init.d/jira start > View license expiration time license status view http://10.0.0.25:10010/plugins/servlet/applications/versions-licenses

Third, deal with the problems after jira-software is started.

Handle / usr/local/confluence/etc/logs/catalina.out warnings:

Fri May 31 12:05:49 UTC 2019 WARN: Establishing SSL connection without server's identity verification is

Not recommended. According to MySQL 5.5.45mm, 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.

problem

Vim / usr/local/confluence/data/dbconfig.xml jdbc:mysql://address= (protocol=tcp) (host=192.168.0.10) (port=3306) / jiradb?sessionVariables=default_storage_engine=InnoDB

Change to

Jdbc:mysql://address= (protocol=tcp) (host=192.168.0.10) (port=3306) / jiradb?useSSL=false&sessionVariables=default_storage_engine=InnoDB

Restart jira

/ etc/init.d/jira stop / etc/init.d/jira start

IV. Confluence deployment

Create a directory:

Mkdir-p / docker-storage/confluence/wiki/ {etc,data,mysql}

Interpretation:

/ docker-storage/confluence/wiki/mysql: data directory of the MySQL container

/ docker-storage/confluence/wiki/etc: the installation directory of the wiki container

/ docker-storage/confluence/wiki/data: data directory of the wiki container

1. Deploy and configure the MySQL required by wiki

# launch container docker run-- name wiki-mysql-- network br-custom-- ip 192.168.0.20\-v / docker-storage/confluence/wiki/mysql:/var/lib/mysql\-e MYSQLING ROOTROOTOR password 123456QR configuration'\-d mysql:5.7.26 # enter the container to modify the MySQL configuration And create the database docker exec-it wiki-mysql "/ bin/bash" apt update apt-get install vim vim / etc/mysql/mysql.conf.d/mysqld.cnf [mysqld] character-set-server=utf8 collation-server=utf8_bin default-storage-engine=INNODB max_allowed_packet=256M innodb_log_file_size=2GB sql_mode = NO_AUTO_VALUE_ON_ZERO transaction-isolation=READ-COMMITTED binlog_format=row mysql-uroot-p123456Qr required by jira-software! CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin; GRANT ALL PRIVILEGES ON confluence.* TO 'confluence_user'@'192.168.0.%' IDENTIFIED BY' 123456QR configuration; flush privileges; # restart the container to make the MySQL configuration take effect docker restart wiki-mysql

two。 Deploy wiki

# the options for installing wiki are almost the same as jira # deploy the container and install wiki docker run-dit-- name confluence-wiki-- network br-custom-- ip 192.168.0.200-p 10.0.0.25 wiki docker run 10020 wiki docker run 8090\-v / docker-storage/confluence/wiki/:/usr/local/confluence/\-v / docker-storage/confluence/wiki/etc/:/usr/local/confluence/etc/\- V / docker-storage/confluence/wiki/data/:/usr/local/confluence/data/\ centos:7.2.1511 "/ bin/bash" docker exec-it confluence-wiki "/ bin/bash" yum-y install epel-release yum-y install libffi-devel gcc gcc-c++ make automake zlib zlib-devel openssl-devel wget gcc gcc-c++ make automake zlib zlib-devel openssl-devel dejavu-sans-fonts vim lrzsz # wiki requires manual configuration of jdk wget https://download. Oracle.com/otn/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-linux-x64.tar.gz tar zxf jdk-8u202-linux-x64.tar.gz mv jdk1.8.0_202 / usr/local/jdk1.8 vim / etc/profile export JAVA_HOME=/usr/local/jdk1.8 export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME / bin source / etc/profile # install wiki wget https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-6.15.4-x64.bin chmod atlassian-confluence-6.15.4-x64.bin. / atlassian-confluence-6.15.4-x64.bin > Interactive installation process: This will install Confluence 6.15.4 on your computer. OK [o, Enter], Cancel [c] Click Next to continue, or Cancel to exit Setup. Choose the appropriate installation or upgrade option. Please choose one of the following: Express Install (uses default settings) [1], Quick install Custom Install (recommended for advanced users) [2, Enter], Custom installation-Upgrade an existing Confluence installation [3] upgrade 2 Select the folder where you would like Confluence 6.15.4 to be installed, select the folder where you want to install Confluence 6.15.4, then click Next. Then click Next. Where should Where should Confluence 6.15.4 be installed? 6.15.4 be installed? [/ opt/atlassian/confluence] / default location of usr/local/confluence/etc Default location for Confluence data confluence data [/ var/atlassian/application-data/confluence] / usr/local/confluence/data Configure which ports Confluence will use. Confluence requires two TCP ports that are not being used by any other applications on this machine. The HTTP port is where you will access Confluence through your browser. The Control port is used to Startup and Shutdown Confluence. Use default ports (HTTP: 8090, Control: 8000)-Recommended [1, Enter], Set custom value for HTTP and Control ports [2] 1 = default, 2 = custom 1 Confluence can be run in the background. You can run Confluence in the background. You may choose to run Confluence as a service, which means it will start you can choose to run Confluence as a service, which means that it will start automatically whenever the computer restarts. Automatically whenever the computer restarts. Install Confluence as Service? Install Confluence as a service? Yes [y, Enter], No [n] Yes [y, Enter], No [n] y Extracting files... Please wait a few moments while we configure Confluence. Installation of Confluence 6.15.4 is complete Confluence 6.15.4 installation completed Start Confluence now? Start Confluence now? Yes [y, Enter], No [n] y Please wait a few moments while Confluence starts up. Launching Confluence... Installation of Confluence 6.15.4 is complete Your installation of Confluence 6.15.4 is now ready and can be accessed via your browser. Confluence 6.15.4 can be accessed at http://localhost:8090 Finishing installation. # wiki, like jira, does not have a drive with java connection mysql, so you need to download it yourself and put it in the corresponding directory. Wget https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.47.tar.gz tar zxf mysql-connector-java-5.1.47.tar.gz cp mysql-connector-java-5.1.47/mysql-connector-java-5.1.47-bin.jar / usr/local/confluence/etc/confluence/WEB-INF/lib/ / etc/init.d/confluence restart # at this point you can access "http" : / / 10.0.0.25 10020 "initialize your wiki configuration Do not select the component for the time being, configure it directly to the page with server ID # cracking wiki and jira is completely different, it takes two steps: one is to crack the file, the other is to get the authorization code > download wiki's / usr/local/confluence/etc/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar file locally and rename it to atlassian-extras-2.4.jar > find the cracking software Right-click confluence_keygen.jar to run using java (you need to install java on windows) > Select ".patch" to find the file you just downloaded from wiki and renamed open > Note that the cracker does not close temporarily > then open the file directory of the cracker package you downloaded, you can see atlassian-extras-2.4.jar and atlassian-extras-2.4.bak files. Here atlassian-extras-2.4.jar has been cracked > change the name of atlassian-extras-2.4.jar back to atlassian-extras-decoder-v2-3.4.1.jar and then transfer it to wiki / usr/local/confluence/etc/confluence/WEB-INF/lib/ / etc/init.d/confluence restart > copy the server ID in the web page, then return to your cracking program, fill in server ID into the cracking program, and fill in other information (feel free to fill in Email format should be correct) > Click the cracker ".gen!" Button, and then fill the generated key into the web

V. dealing with confluence problems

Reply to the help of the community of 500 Atlassian for console error report

1. After the confluence configuration is completed, it is found that the css style does not display, and the console reports an error of 500,000.

Atlassian's community help tips like this:

Confluence account must have read / write / execute access to directories and

Solution (do not add-R):

Chmod 755 / usr/local/confluence/data

2. Wiki login prompt: the server SQL mode health check in your system failed.

Enter the wiki-mysql container comments as shown in the following line

Vim / etc/mysql/mysql.conf.d/mysqld.cnf # sql_mode = NO_AUTO_VALUE_ON_ZERO docker restart wiki-mysql

3. Handle catalina.out warnings:

Handle / usr/local/confluence/etc/logs/catalina.out warnings:

Fri May 31 12:16:44 UTC 2019 WARN: Establishing SSL connection without server's identity verification is not recommended.

According to MySQL 5.5.45mm, 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

problem

Vim / usr/local/confluence/data/confluence.cfg.xml jdbc:mysql://192.168.0.20:3306/confluence

Change to

Jdbc:mysql://192.168.0.20:3306/confluence?useSSL=false / etc/init.d/confluence restart above is all the content of the article "how to deploy Confluence and jira-software in Docker". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report