Page tree


Skip to end of metadata
Go to start of metadata


Jire install 8.11.0

MySQL install

通过容器部署 MySQL:

$ docker run -d --name mysql -p 3306:3306 -v /data/mysql:/var/lib/mysql -e slzcc/mysql:5.6-custom

创建 Database:

$ docker exec -it mysql mysql -uroot -e "CREATE DATABASE jire CHARACTER SET 'UTF8' COLLATE 'utf8_bin';"

Jira install

下载 Jire bin package:

$ wget
$ chmod +x atlassian-jira-software-8.11.0-x64.bin


$ ./atlassian-jira-software-8.11.0-x64.bin
We couldn't find fontconfig, which is required to use OpenJDK. Press [y, Enter] to install it.
For more info, see

Installing fontconfig...
Hit:1 focal InRelease
Get:2 focal-updates InRelease [111 kB]
Get:3 focal-backports InRelease [98.3 kB]
Hit:4 focal InRelease
Get:5 focal-updates/main amd64 Packages [315 kB]
Get:6 focal-updates/main Translation-en [118 kB]
Get:7 focal-updates/main amd64 c-n-f Metadata [7964 B]
Get:8 focal-updates/restricted amd64 Packages [29.2 kB]
Get:9 focal-updates/restricted Translation-en [7732 B]
Get:10 focal-updates/universe amd64 Packages [146 kB]
Get:11 focal-updates/universe Translation-en [73.9 kB]
Get:12 focal-updates/universe amd64 c-n-f Metadata [4920 B]
Hit:13 focal InRelease
Get:14 focal-security InRelease [107 kB]
Get:15 focal-security/main amd64 Packages [148 kB]
Get:16 focal-security/main Translation-en [52.0 kB]
Get:17 focal-security/main amd64 c-n-f Metadata [3428 B]
Get:18 focal-security/restricted amd64 Packages [29.2 kB]
Get:19 focal-security/restricted Translation-en [7732 B]
Get:20 focal-security/universe amd64 Packages [44.4 kB]
Get:21 focal-security/universe Translation-en [23.6 kB]
Get:22 focal-security/universe amd64 c-n-f Metadata [1832 B]
Fetched 1329 kB in 2s (609 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
19 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1
The following NEW packages will be installed:
  fontconfig fontconfig-config fonts-dejavu-core libfontconfig1
0 upgraded, 4 newly installed, 0 to remove and 19 not upgraded.
Need to get 1355 kB of archives.
After this operation, 3902 kB of additional disk space will be used.
Get:1 focal/main amd64 fonts-dejavu-core all 2.37-1 [1041 kB]
Get:2 focal/main amd64 fontconfig-config all 2.13.1-2ubuntu3 [28.8 kB]
Get:3 focal/main amd64 libfontconfig1 amd64 2.13.1-2ubuntu3 [114 kB]
Get:4 focal/main amd64 fontconfig amd64 2.13.1-2ubuntu3 [171 kB]
Fetched 1355 kB in 0s (5301 kB/s)
Selecting previously unselected package fonts-dejavu-core.
(Reading database ... 63081 files and directories currently installed.)
Preparing to unpack .../fonts-dejavu-core_2.37-1_all.deb ...
Unpacking fonts-dejavu-core (2.37-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../fontconfig-config_2.13.1-2ubuntu3_all.deb ...
Unpacking fontconfig-config (2.13.1-2ubuntu3) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../libfontconfig1_2.13.1-2ubuntu3_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.13.1-2ubuntu3) ...
Selecting previously unselected package fontconfig.
Preparing to unpack .../fontconfig_2.13.1-2ubuntu3_amd64.deb ...
Unpacking fontconfig (2.13.1-2ubuntu3) ...
Setting up fonts-dejavu-core (2.37-1) ...
Setting up fontconfig-config (2.13.1-2ubuntu3) ...
Setting up libfontconfig1:amd64 (2.13.1-2ubuntu3) ...
Setting up fontconfig (2.13.1-2ubuntu3) ...
Regenerating fonts cache... done.
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Unpacking JRE ...
Starting Installer ...

This will install Jira Software 8.11.0 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 (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing Jira installation [3]

Select the folder where you would like Jira Software to be installed.
Where should Jira Software be installed?

Default location for Jira Software data

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]

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]

Details on where Jira Software will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/jira
Home Directory: /var/atlassian/application-data/jira
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.

Installation of Jira Software 8.11.0 is complete
Start Jira Software 8.11.0 now?
Yes [y, Enter], No [n]

Please wait a few moments while Jira Software starts up.
Launching Jira Software ...

Installation of Jira Software 8.11.0 is complete
Your installation of Jira Software 8.11.0 is now ready and can be accessed
via your browser.
Jira Software 8.11.0 can be accessed at http://localhost:8080
Finishing installation ...

访问 http://ip:8080 通过 UI 安装。

安装 MySQL 驱动:

$ wget -qO- >  /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/mysql-connector-java-5.1.48-bin.jar

重启 Jira:

$ /opt/atlassian/jira/bin/
$ /opt/atlassian/jira/bin/


初始化数据完毕后配置 BaseURL:






需要创建一个项目才可以看到 Settings。



$ wget
$ unzip
$ mv /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar.back
$ cp -a jira7.2/atlassian-extras-3.1.2.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar

重启 Jire 即可生效:

$ /opt/atlassian/jira/bin/
$ /opt/atlassian/jira/bin/


容器化,停止 Jira:

$ /opt/atlassian/jira/bin/


$ docker exec -it mysql sh -c "mysqldump -uroot  jire > /var/lib/mysql/jire_`date +%F_%R`.sql"
$  mv /data/mysql/jire_2020-07-30_13\:07.sql /mnt/


$ cp -a /var/atlassian/application-data /mnt/
$ cp -a /opt/atlassian /mnt/
$ rm -rf /mnt/atlassian/jira/logs/*
$ cd /mnt

创建 Dockerfile:

FROM ubuntu:18.04

LABEL AuthorEmail \
      Domain \
      CreateTime 2020年 07月 30日 星期四

RUN apt update && \
    echo "Asia/Shanghai" > /etc/timezone && \
    apt install -y tzdata && \
    dpkg-reconfigure -f noninteractive tzdata && \
    apt install -y net-tools openssh-server fonts-baekmuk fonts-nanum language-pack-zh-hans && \
    rm -rf  /var/cache/apt/archives/* && \
    apt clean

COPY atlassian /opt/atlassian
COPY application-data /var/atlassian/application-data
COPY *.sql /

ENV TZ="Asia/Shanghai"
EXPOSE 8090 8000
CMD ["/"]
set -e
# Start Server
exec tailf /opt/atlassian/jira/logs/catalina.out


$ chmod +x
$ docker build -t slzcc/jira:8.11.0 .

文档创建于 最后一次更新于  , 文档当前的状态 正式版 , 当前编写页面的版本 V1.3.1 。

  • No labels