Docker---Docker-compose 安装部署 zentao 禅道
禅道项目管理系统(ZenTaoPMS)是一款国产的,基于LGPL协议,开源免费的项目管理软件,它集产品管理、项目管理、测试管理于一体,同时还包含了事务管理、组织管理等诸多功能,是中小型企业项目管理的首选。禅道项目管理软件使用PHP + MySQL开发,基于自主的PHP开发框架──ZenTaoPHP而成。第三方开发者或者企业可以非常方便的开发插件或者进行定制。
·
Docker-compose 安装部署 zentao 禅道
目录
一、环境准备
1.更换国内源
CentOS7 Base源:
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
epel源:
wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
docker源:
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
生成yum源缓存:
yum clean all && yum makecache
2.拉取zentao的docker镜像
镜像网址:https://registry.hub.docker.com/r/idoop/zentao
[root@localhost zentao]# docker pull idoop/zentao
Using default tag: latest
Trying to pull repository docker.io/idoop/zentao ...
latest: Pulling from docker.io/idoop/zentao
7b1a6ab2e44d: Pull complete
e5d2365e1e08: Pull complete
577c425bc292: Pull complete
b6e991281388: Pull complete
ff3089e41891: Pull complete
aa60445e5dd6: Pull complete
Digest: sha256:f55abdcde0756efd1927e27531134414238a5320cee7c49da31c0a45bb5390a4
Status: Downloaded newer image for docker.io/idoop/zentao:latest
[root@localhost zentao]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/idoop/zentao latest 2ae7bbc90175 6 weeks ago 201 MB
3.关闭防火墙
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld
[root@localhost ~]# setenforce 0
setenforce: SELinux is disabled
4.安装启动docker、docker-compose
安装docker、docker-compose:
[root@localhost yum.repos.d]# yum -y install docker
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
docker-ce-stable | 3.5 kB 00:00:00
(1/2): docker-ce-stable/7/x86_64/updateinfo | 55 B 00:00:05
(2/2): docker-ce-stable/7/x86_64/primary_db | 88 kB 00:00:06
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.13.1-209.git7d71120.el7.centos will be installed
--> Processing Dependency: docker-common = 2:1.13.1-209.git7d71120.el7.centos for package: 2:docker-1.13.1-209.git7d71120.el7.centos.x86_64
--> Processing Dependency: docker-client = 2:1.13.1-209.git7d71120.el7.centos for package: 2:docker-1.13.1-209.git7d71120.el7.centos.x86_64
--> Processing Dependency: subscription-manager-rhsm-certificates for package: 2:docker-1.13.1-209.git7d71120.el7.centos.x86_64
--> Running transaction check
---> Package docker-client.x86_64 2:1.13.1-209.git7d71120.el7.centos will be installed
---> Package docker-common.x86_64 2:1.13.1-209.git7d71120.el7.centos will be installed
--> Processing Dependency: skopeo-containers >= 1:0.1.26-2 for package: 2:docker-common-1.13.1-209.git7d71120.el7.centos.x86_64
--> Processing Dependency: oci-umount >= 2:2.3.3-3 for package: 2:docker-common-1.13.1-209.git7d71120.el7.centos.x86_64
--> Processing Dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-common-1.13.1-209.git7d71120.el7.centos.x86_64
--> Processing Dependency: oci-register-machine >= 1:0-5.13 for package: 2:docker-common-1.13.1-209.git7d71120.el7.centos.x86_64
--> Processing Dependency: container-storage-setup >= 0.9.0-1 for package: 2:docker-common-1.13.1-209.git7d71120.el7.centos.x86_64
--> Processing Dependency: container-selinux >= 2:2.51-1 for package: 2:docker-common-1.13.1-209.git7d71120.el7.centos.x86_64
--> Processing Dependency: atomic-registries for package: 2:docker-common-1.13.1-209.git7d71120.el7.centos.x86_64
---> Package subscription-manager-rhsm-certificates.x86_64 0:1.24.51-1.el7.centos will be installed
--> Running transaction check
---> Package atomic-registries.x86_64 1:1.22.1-33.gitb507039.el7_8 will be installed
--> Processing Dependency: python-pytoml for package: 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64
---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be installed
--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch
---> Package container-storage-setup.noarch 0:0.11.0-2.git5eaf76c.el7 will be installed
---> Package containers-common.x86_64 1:0.1.40-11.el7_8 will be installed
--> Processing Dependency: subscription-manager for package: 1:containers-common-0.1.40-11.el7_8.x86_64
--> Processing Dependency: slirp4netns for package: 1:containers-common-0.1.40-11.el7_8.x86_64
--> Processing Dependency: fuse-overlayfs for package: 1:containers-common-0.1.40-11.el7_8.x86_64
---> Package oci-register-machine.x86_64 1:0-6.git2b44233.el7 will be installed
---> Package oci-systemd-hook.x86_64 1:0.2.0-1.git05e6923.el7_6 will be installed
---> Package oci-umount.x86_64 2:2.5-3.el7 will be installed
--> Running transaction check
---> Package fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 will be installed
--> Processing Dependency: libfuse3.so.3(FUSE_3.2)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
--> Processing Dependency: libfuse3.so.3(FUSE_3.0)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
--> Processing Dependency: libfuse3.so.3()(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
---> Package policycoreutils-python.x86_64 0:2.5-34.el7 will be installed
--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-14 for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64
---> Package python-pytoml.noarch 0:0.1.14-1.git7dea353.el7 will be installed
---> Package slirp4netns.x86_64 0:0.4.3-4.el7_8 will be installed
---> Package subscription-manager.x86_64 0:1.24.51-1.el7.centos will be installed
--> Processing Dependency: subscription-manager-rhsm = 1.24.51 for package: subscription-manager-1.24.51-1.el7.centos.x86_64
--> Processing Dependency: python-dmidecode >= 3.12.2-2 for package: subscription-manager-1.24.51-1.el7.centos.x86_64
--> Processing Dependency: python-syspurpose for package: subscription-manager-1.24.51-1.el7.centos.x86_64
--> Processing Dependency: python-inotify for package: subscription-manager-1.24.51-1.el7.centos.x86_64
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.8.5-4.el7 will be installed
---> Package checkpolicy.x86_64 0:2.5-8.el7 will be installed
---> Package fuse3-libs.x86_64 0:3.6.1-4.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be installed
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package python-dmidecode.x86_64 0:3.12.2-4.el7 will be installed
---> Package python-inotify.noarch 0:0.9.4-4.el7 will be installed
---> Package python-syspurpose.x86_64 0:1.24.51-1.el7.centos will be installed
---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be installed
---> Package subscription-manager-rhsm.x86_64 0:1.24.51-1.el7.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================
Installing:
docker x86_64 2:1.13.1-209.git7d71120.el7.centos extras 17 M
Installing for dependencies:
atomic-registries x86_64 1:1.22.1-33.gitb507039.el7_8 extras 36 k
audit-libs-python x86_64 2.8.5-4.el7 base 76 k
checkpolicy x86_64 2.5-8.el7 base 295 k
container-selinux noarch 2:2.119.2-1.911c772.el7_8 extras 40 k
container-storage-setup noarch 0.11.0-2.git5eaf76c.el7 extras 35 k
containers-common x86_64 1:0.1.40-11.el7_8 extras 43 k
docker-client x86_64 2:1.13.1-209.git7d71120.el7.centos extras 3.9 M
docker-common x86_64 2:1.13.1-209.git7d71120.el7.centos extras 101 k
fuse-overlayfs x86_64 0.7.2-6.el7_8 extras 54 k
fuse3-libs x86_64 3.6.1-4.el7 extras 82 k
libsemanage-python x86_64 2.5-14.el7 base 113 k
oci-register-machine x86_64 1:0-6.git2b44233.el7 extras 1.1 M
oci-systemd-hook x86_64 1:0.2.0-1.git05e6923.el7_6 extras 34 k
oci-umount x86_64 2:2.5-3.el7 extras 33 k
policycoreutils-python x86_64 2.5-34.el7 base 457 k
python-IPy noarch 0.75-6.el7 base 32 k
python-dmidecode x86_64 3.12.2-4.el7 base 83 k
python-inotify noarch 0.9.4-4.el7 base 49 k
python-pytoml noarch 0.1.14-1.git7dea353.el7 extras 18 k
python-syspurpose x86_64 1.24.51-1.el7.centos updates 275 k
setools-libs x86_64 3.3.8-4.el7 base 620 k
slirp4netns x86_64 0.4.3-4.el7_8 extras 81 k
subscription-manager x86_64 1.24.51-1.el7.centos updates 1.1 M
subscription-manager-rhsm x86_64 1.24.51-1.el7.centos updates 334 k
subscription-manager-rhsm-certificates x86_64 1.24.51-1.el7.centos updates 237 k
Transaction Summary
==============================================================================================================================================================
Install 1 Package (+25 Dependent packages)
Total download size: 26 M
Installed size: 91 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/extras/packages/atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64.rpm is not installed
(1/26): atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64.rpm | 36 kB 00:00:05
(2/26): container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch.rpm | 35 kB 00:00:00
Public key for audit-libs-python-2.8.5-4.el7.x86_64.rpm is not installed
(3/26): audit-libs-python-2.8.5-4.el7.x86_64.rpm | 76 kB 00:00:05
(4/26): container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm | 40 kB 00:00:06
(5/26): containers-common-0.1.40-11.el7_8.x86_64.rpm | 43 kB 00:00:00
(6/26): checkpolicy-2.5-8.el7.x86_64.rpm | 295 kB 00:00:07
(7/26): docker-client-1.13.1-209.git7d71120.el7.centos.x86_64.rpm | 3.9 MB 00:00:17
(8/26): docker-common-1.13.1-209.git7d71120.el7.centos.x86_64.rpm | 101 kB 00:00:00
(9/26): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm | 54 kB 00:00:00
(10/26): fuse3-libs-3.6.1-4.el7.x86_64.rpm | 82 kB 00:00:00
(11/26): oci-register-machine-0-6.git2b44233.el7.x86_64.rpm | 1.1 MB 00:00:04
(12/26): oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64.rpm | 34 kB 00:00:00
(13/26): oci-umount-2.5-3.el7.x86_64.rpm | 33 kB 00:00:00
(14/26): libsemanage-python-2.5-14.el7.x86_64.rpm | 113 kB 00:00:06
(15/26): python-IPy-0.75-6.el7.noarch.rpm | 32 kB 00:00:00
(16/26): python-dmidecode-3.12.2-4.el7.x86_64.rpm | 83 kB 00:00:00
(17/26): python-inotify-0.9.4-4.el7.noarch.rpm | 49 kB 00:00:00
(18/26): setools-libs-3.3.8-4.el7.x86_64.rpm | 620 kB 00:00:02
(19/26): python-pytoml-0.1.14-1.git7dea353.el7.noarch.rpm | 18 kB 00:00:05
(20/26): slirp4netns-0.4.3-4.el7_8.x86_64.rpm | 81 kB 00:00:00
(21/26): policycoreutils-python-2.5-34.el7.x86_64.rpm | 457 kB 00:00:07
Public key for python-syspurpose-1.24.51-1.el7.centos.x86_64.rpm is not installed================== ] 477 kB/s | 14 MB 00:00:25 ETA
(22/26): python-syspurpose-1.24.51-1.el7.centos.x86_64.rpm | 275 kB 00:00:06
(23/26): subscription-manager-rhsm-1.24.51-1.el7.centos.x86_64.rpm | 334 kB 00:00:01
(24/26): subscription-manager-rhsm-certificates-1.24.51-1.el7.centos.x86_64.rpm | 237 kB 00:00:01
(25/26): subscription-manager-1.24.51-1.el7.centos.x86_64.rpm | 1.1 MB 00:00:10
(26/26): docker-1.13.1-209.git7d71120.el7.centos.x86_64.rpm | 17 MB 00:01:15
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 332 kB/s | 26 MB 00:01:21
Retrieving key from http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
From : http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : subscription-manager-rhsm-certificates-1.24.51-1.el7.centos.x86_64 1/26
Installing : subscription-manager-rhsm-1.24.51-1.el7.centos.x86_64 2/26
Installing : python-dmidecode-3.12.2-4.el7.x86_64 3/26
Installing : audit-libs-python-2.8.5-4.el7.x86_64 4/26
Installing : slirp4netns-0.4.3-4.el7_8.x86_64 5/26
Installing : 1:oci-register-machine-0-6.git2b44233.el7.x86_64 6/26
Installing : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64 7/26
Installing : libsemanage-python-2.5-14.el7.x86_64 8/26
Installing : fuse3-libs-3.6.1-4.el7.x86_64 9/26
Installing : fuse-overlayfs-0.7.2-6.el7_8.x86_64 10/26
Installing : setools-libs-3.3.8-4.el7.x86_64 11/26
Installing : python-pytoml-0.1.14-1.git7dea353.el7.noarch 12/26
Installing : 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 13/26
Installing : python-IPy-0.75-6.el7.noarch 14/26
Installing : python-syspurpose-1.24.51-1.el7.centos.x86_64 15/26
Installing : 2:oci-umount-2.5-3.el7.x86_64 16/26
Installing : checkpolicy-2.5-8.el7.x86_64 17/26
Installing : policycoreutils-python-2.5-34.el7.x86_64 18/26
Installing : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 19/26
setsebool: SELinux is disabled.
Installing : python-inotify-0.9.4-4.el7.noarch 20/26
Installing : subscription-manager-1.24.51-1.el7.centos.x86_64 21/26
Installing : 1:containers-common-0.1.40-11.el7_8.x86_64 22/26
Installing : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch 23/26
Installing : 2:docker-common-1.13.1-209.git7d71120.el7.centos.x86_64 24/26
Installing : 2:docker-client-1.13.1-209.git7d71120.el7.centos.x86_64 25/26
Installing : 2:docker-1.13.1-209.git7d71120.el7.centos.x86_64 26/26
Verifying : 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 1/26
Verifying : fuse-overlayfs-0.7.2-6.el7_8.x86_64 2/26
Verifying : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 3/26
Verifying : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch 4/26
Verifying : python-inotify-0.9.4-4.el7.noarch 5/26
Verifying : 2:docker-client-1.13.1-209.git7d71120.el7.centos.x86_64 6/26
Verifying : 1:containers-common-0.1.40-11.el7_8.x86_64 7/26
Verifying : checkpolicy-2.5-8.el7.x86_64 8/26
Verifying : 2:oci-umount-2.5-3.el7.x86_64 9/26
Verifying : 2:docker-common-1.13.1-209.git7d71120.el7.centos.x86_64 10/26
Verifying : python-syspurpose-1.24.51-1.el7.centos.x86_64 11/26
Verifying : python-IPy-0.75-6.el7.noarch 12/26
Verifying : policycoreutils-python-2.5-34.el7.x86_64 13/26
Verifying : python-pytoml-0.1.14-1.git7dea353.el7.noarch 14/26
Verifying : 2:docker-1.13.1-209.git7d71120.el7.centos.x86_64 15/26
Verifying : setools-libs-3.3.8-4.el7.x86_64 16/26
Verifying : fuse3-libs-3.6.1-4.el7.x86_64 17/26
Verifying : libsemanage-python-2.5-14.el7.x86_64 18/26
Verifying : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64 19/26
Verifying : 1:oci-register-machine-0-6.git2b44233.el7.x86_64 20/26
Verifying : slirp4netns-0.4.3-4.el7_8.x86_64 21/26
Verifying : subscription-manager-1.24.51-1.el7.centos.x86_64 22/26
Verifying : audit-libs-python-2.8.5-4.el7.x86_64 23/26
Verifying : subscription-manager-rhsm-1.24.51-1.el7.centos.x86_64 24/26
Verifying : python-dmidecode-3.12.2-4.el7.x86_64 25/26
Verifying : subscription-manager-rhsm-certificates-1.24.51-1.el7.centos.x86_64 26/26
Installed:
docker.x86_64 2:1.13.1-209.git7d71120.el7.centos
Dependency Installed:
atomic-registries.x86_64 1:1.22.1-33.gitb507039.el7_8 audit-libs-python.x86_64 0:2.8.5-4.el7
checkpolicy.x86_64 0:2.5-8.el7 container-selinux.noarch 2:2.119.2-1.911c772.el7_8
container-storage-setup.noarch 0:0.11.0-2.git5eaf76c.el7 containers-common.x86_64 1:0.1.40-11.el7_8
docker-client.x86_64 2:1.13.1-209.git7d71120.el7.centos docker-common.x86_64 2:1.13.1-209.git7d71120.el7.centos
fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 fuse3-libs.x86_64 0:3.6.1-4.el7
libsemanage-python.x86_64 0:2.5-14.el7 oci-register-machine.x86_64 1:0-6.git2b44233.el7
oci-systemd-hook.x86_64 1:0.2.0-1.git05e6923.el7_6 oci-umount.x86_64 2:2.5-3.el7
policycoreutils-python.x86_64 0:2.5-34.el7 python-IPy.noarch 0:0.75-6.el7
python-dmidecode.x86_64 0:3.12.2-4.el7 python-inotify.noarch 0:0.9.4-4.el7
python-pytoml.noarch 0:0.1.14-1.git7dea353.el7 python-syspurpose.x86_64 0:1.24.51-1.el7.centos
setools-libs.x86_64 0:3.3.8-4.el7 slirp4netns.x86_64 0:0.4.3-4.el7_8
subscription-manager.x86_64 0:1.24.51-1.el7.centos subscription-manager-rhsm.x86_64 0:1.24.51-1.el7.centos
subscription-manager-rhsm-certificates.x86_64 0:1.24.51-1.el7.centos
Complete!
[root@localhost yum.repos.d]# yum -y install docker-compose
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
epel | 4.7 kB 00:00:00
(1/3): epel/x86_64/group_gz | 98 kB 00:00:08
(2/3): epel/x86_64/updateinfo | 1.0 MB 00:00:29
(3/3): epel/x86_64/primary_db | 7.0 MB 00:00:39
Resolving Dependencies
--> Running transaction check
---> Package docker-compose.noarch 0:1.18.0-4.el7 will be installed
--> Processing Dependency: python36-cached_property >= 1.2.0 for package: docker-compose-1.18.0-4.el7.noarch
--> Processing Dependency: python36-docker >= 2.6.1 for package: docker-compose-1.18.0-4.el7.noarch
--> Processing Dependency: python36-dockerpty >= 0.4.1 for package: docker-compose-1.18.0-4.el7.noarch
--> Processing Dependency: python36-docopt >= 0.6.1 for package: docker-compose-1.18.0-4.el7.noarch
--> Processing Dependency: python36-jsonschema >= 2.5.1 for package: docker-compose-1.18.0-4.el7.noarch
--> Processing Dependency: python36-pysocks >= 1.5.6 for package: docker-compose-1.18.0-4.el7.noarch
--> Processing Dependency: python36-requests >= 2.6.1 for package: docker-compose-1.18.0-4.el7.noarch
--> Processing Dependency: python36-six >= 1.3.0 for package: docker-compose-1.18.0-4.el7.noarch
--> Processing Dependency: python36-texttable >= 0.9.0 for package: docker-compose-1.18.0-4.el7.noarch
--> Processing Dependency: python36-websocket-client >= 0.32.0 for package: docker-compose-1.18.0-4.el7.noarch
--> Processing Dependency: python36-yaml >= 3.10 for package: docker-compose-1.18.0-4.el7.noarch
--> Running transaction check
---> Package python36-PyYAML.x86_64 0:3.13-1.el7 will be installed
---> Package python36-cached_property.noarch 0:1.5.1-2.el7 will be installed
---> Package python36-docker.noarch 0:2.6.1-3.el7 will be installed
--> Processing Dependency: python36-docker-pycreds >= 0.2.1 for package: python36-docker-2.6.1-3.el7.noarch
---> Package python36-dockerpty.noarch 0:0.4.1-18.el7 will be installed
---> Package python36-docopt.noarch 0:0.6.2-8.el7 will be installed
---> Package python36-jsonschema.noarch 0:2.5.1-4.el7 will be installed
---> Package python36-pysocks.noarch 0:1.6.8-7.el7 will be installed
---> Package python36-requests.noarch 0:2.14.2-2.el7 will be installed
--> Processing Dependency: python36-chardet for package: python36-requests-2.14.2-2.el7.noarch
--> Processing Dependency: python36-idna for package: python36-requests-2.14.2-2.el7.noarch
--> Processing Dependency: python36-urllib3 for package: python36-requests-2.14.2-2.el7.noarch
---> Package python36-six.noarch 0:1.14.0-3.el7 will be installed
---> Package python36-texttable.noarch 0:1.6.2-1.el7 will be installed
---> Package python36-websocket-client.noarch 0:0.47.0-2.el7 will be installed
--> Running transaction check
---> Package python36-chardet.noarch 0:3.0.4-1.el7 will be installed
---> Package python36-docker-pycreds.noarch 0:0.2.1-2.el7 will be installed
---> Package python36-idna.noarch 0:2.10-1.el7 will be installed
---> Package python36-urllib3.noarch 0:1.25.6-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================
Installing:
docker-compose noarch 1.18.0-4.el7 epel 222 k
Installing for dependencies:
python36-PyYAML x86_64 3.13-1.el7 epel 149 k
python36-cached_property noarch 1.5.1-2.el7 epel 18 k
python36-chardet noarch 3.0.4-1.el7 epel 190 k
python36-docker noarch 2.6.1-3.el7 epel 180 k
python36-docker-pycreds noarch 0.2.1-2.el7 epel 15 k
python36-dockerpty noarch 0.4.1-18.el7 epel 30 k
python36-docopt noarch 0.6.2-8.el7 epel 29 k
python36-idna noarch 2.10-1.el7 epel 99 k
python36-jsonschema noarch 2.5.1-4.el7 epel 76 k
python36-pysocks noarch 1.6.8-7.el7 epel 30 k
python36-requests noarch 2.14.2-2.el7 epel 112 k
python36-six noarch 1.14.0-3.el7 epel 34 k
python36-texttable noarch 1.6.2-1.el7 epel 23 k
python36-urllib3 noarch 1.25.6-2.el7 epel 178 k
python36-websocket-client noarch 0.47.0-2.el7 epel 59 k
Transaction Summary
==============================================================================================================================================================
Install 1 Package (+15 Dependent packages)
Total download size: 1.4 M
Installed size: 7.6 M
Downloading packages:
(1/16): python36-PyYAML-3.13-1.el7.x86_64.rpm | 149 kB 00:00:06
(2/16): python36-cached_property-1.5.1-2.el7.noarch.rpm | 18 kB 00:00:00
(3/16): docker-compose-1.18.0-4.el7.noarch.rpm | 222 kB 00:00:06
(4/16): python36-chardet-3.0.4-1.el7.noarch.rpm | 190 kB 00:00:01
(5/16): python36-docker-2.6.1-3.el7.noarch.rpm | 180 kB 00:00:00
(6/16): python36-docker-pycreds-0.2.1-2.el7.noarch.rpm | 15 kB 00:00:00
(7/16): python36-docopt-0.6.2-8.el7.noarch.rpm | 29 kB 00:00:00
(8/16): python36-dockerpty-0.4.1-18.el7.noarch.rpm | 30 kB 00:00:00
(9/16): python36-jsonschema-2.5.1-4.el7.noarch.rpm | 76 kB 00:00:00
(10/16): python36-idna-2.10-1.el7.noarch.rpm | 99 kB 00:00:00
(11/16): python36-pysocks-1.6.8-7.el7.noarch.rpm | 30 kB 00:00:00
(12/16): python36-six-1.14.0-3.el7.noarch.rpm | 34 kB 00:00:00
(13/16): python36-requests-2.14.2-2.el7.noarch.rpm | 112 kB 00:00:00
(14/16): python36-texttable-1.6.2-1.el7.noarch.rpm | 23 kB 00:00:00
(15/16): python36-websocket-client-0.47.0-2.el7.noarch.rpm | 59 kB 00:00:00
(16/16): python36-urllib3-1.25.6-2.el7.noarch.rpm | 178 kB 00:00:01
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 139 kB/s | 1.4 MB 00:00:10
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python36-six-1.14.0-3.el7.noarch 1/16
Installing : python36-websocket-client-0.47.0-2.el7.noarch 2/16
Installing : python36-pysocks-1.6.8-7.el7.noarch 3/16
Installing : python36-urllib3-1.25.6-2.el7.noarch 4/16
Installing : python36-dockerpty-0.4.1-18.el7.noarch 5/16
Installing : python36-docker-pycreds-0.2.1-2.el7.noarch 6/16
Installing : python36-cached_property-1.5.1-2.el7.noarch 7/16
Installing : python36-docopt-0.6.2-8.el7.noarch 8/16
Installing : python36-idna-2.10-1.el7.noarch 9/16
Installing : python36-chardet-3.0.4-1.el7.noarch 10/16
Installing : python36-requests-2.14.2-2.el7.noarch 11/16
Installing : python36-docker-2.6.1-3.el7.noarch 12/16
Installing : python36-jsonschema-2.5.1-4.el7.noarch 13/16
Installing : python36-texttable-1.6.2-1.el7.noarch 14/16
Installing : python36-PyYAML-3.13-1.el7.x86_64 15/16
Installing : docker-compose-1.18.0-4.el7.noarch 16/16
Verifying : python36-requests-2.14.2-2.el7.noarch 1/16
Verifying : python36-PyYAML-3.13-1.el7.x86_64 2/16
Verifying : python36-texttable-1.6.2-1.el7.noarch 3/16
Verifying : python36-jsonschema-2.5.1-4.el7.noarch 4/16
Verifying : python36-pysocks-1.6.8-7.el7.noarch 5/16
Verifying : python36-dockerpty-0.4.1-18.el7.noarch 6/16
Verifying : python36-docker-2.6.1-3.el7.noarch 7/16
Verifying : python36-chardet-3.0.4-1.el7.noarch 8/16
Verifying : docker-compose-1.18.0-4.el7.noarch 9/16
Verifying : python36-idna-2.10-1.el7.noarch 10/16
Verifying : python36-docker-pycreds-0.2.1-2.el7.noarch 11/16
Verifying : python36-urllib3-1.25.6-2.el7.noarch 12/16
Verifying : python36-docopt-0.6.2-8.el7.noarch 13/16
Verifying : python36-cached_property-1.5.1-2.el7.noarch 14/16
Verifying : python36-six-1.14.0-3.el7.noarch 15/16
Verifying : python36-websocket-client-0.47.0-2.el7.noarch 16/16
Installed:
docker-compose.noarch 0:1.18.0-4.el7
Dependency Installed:
python36-PyYAML.x86_64 0:3.13-1.el7 python36-cached_property.noarch 0:1.5.1-2.el7 python36-chardet.noarch 0:3.0.4-1.el7
python36-docker.noarch 0:2.6.1-3.el7 python36-docker-pycreds.noarch 0:0.2.1-2.el7 python36-dockerpty.noarch 0:0.4.1-18.el7
python36-docopt.noarch 0:0.6.2-8.el7 python36-idna.noarch 0:2.10-1.el7 python36-jsonschema.noarch 0:2.5.1-4.el7
python36-pysocks.noarch 0:1.6.8-7.el7 python36-requests.noarch 0:2.14.2-2.el7 python36-six.noarch 0:1.14.0-3.el7
python36-texttable.noarch 0:1.6.2-1.el7 python36-urllib3.noarch 0:1.25.6-2.el7 python36-websocket-client.noarch 0:0.47.0-2.el7
Complete!
启动docker:
[root@localhost yum.repos.d]# systemctl start docker
[root@localhost yum.repos.d]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
二、通过yml文件进行部署
docker-compose.yml
文件内容如下:
[root@localhost zentao]# cat docker-compose.yml
version: '3.1'
services:
zendao:
image: docker.io/idoop/zentao:latest
restart: always
container_name: zendao
environment:
MYSQL_ROOT_PASSWORD: 123456
ports:
- 8000:80
volumes:
- ./app:/app/zentaopms
- ./data:/var/lib/mysql
创建容器启动:
[root@localhost zentao]# docker-compose up -d
Creating network "zentao_default" with the default driver
Creating zendao ... done
[root@localhost zentao]# ls
app data docker-compose.yml
[root@localhost zentao]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ab27f9eb5452 docker.io/idoop/zentao:latest "docker-entrypoint" 4 seconds ago Up 2 seconds (health: starting) 3306/tcp, 0.0.0.0:8000->80/tcp zendao
启动成功后,浏览器访问 ip:端口号,输入默认账户admin,默认密码123456,成功登录及部署成功。
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献2条内容
所有评论(0)