Docker---Docker-compose 安装部署 zentao 禅道

news2024/11/18 23:34:55

Docker-compose 安装部署 zentao 禅道

目录

  • Docker-compose 安装部署 zentao 禅道
    • 一、环境准备
      • 1.更换国内源
      • 2.拉取zentao的docker镜像
      • 3.关闭防火墙
      • 4.安装启动docker、docker-compose
    • 二、通过yml文件进行部署


一、环境准备

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,成功登录及部署成功。

在这里插入图片描述



本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/62978.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

技术男的春天:小姐姐求助暖男分析

时光荏苒&#xff0c;这个故事发生在4年前&#xff0c;那时候我头发可真厚&#xff0c;坐地铁也不用戴口罩。 小姐姐求助 友圈一位要做毕设的小姐姐在求助postman怎么用&#xff0c;我就帮她解答了一下。 我知道她并非计算机相关专业&#xff0c;所以很奇怪为什么要用postma…

web安全渗透

自己模拟的环境,要的私信 Web安全渗透 1、通过URL访问http://靶机IP/1,对该页面进行渗透测试,将完成后返回的结果内容作为flag值提交; 修改源码maxlength对应的数值,3+16=19输出的数值是两位数,然后修改完之输入

HTML+CSS+JS网页设计期末课程大作业—— 绿色化妆品HTML+CSS+JavaScript

&#x1f389;精彩专栏推荐 &#x1f4ad;文末获取联系 ✍️ 作者简介: 一个热爱把逻辑思维转变为代码的技术博主 &#x1f482; 作者主页: 【主页——&#x1f680;获取更多优质源码】 &#x1f393; web前端期末大作业&#xff1a; 【&#x1f4da;毕设项目精品实战案例 (10…

Windows搭建web站点:为站点配置二级子域名 2-2

在上一篇文章《Windows搭建Web站点&#xff1a;免费内网穿透发布至公网 1/2》中&#xff0c;我们成功通过cpolar将内网web站点发布到公网可访问&#xff0c;但免费使用cpolar所生成的域名是随机变化的&#xff08;24小时后会变化&#xff09;&#xff0c;这只适合临时测试使用。…

Mysql SQL优化跟踪来看看是如何优化并决策使用哪个索引或者不适用索引

背景 使用索引字段进行筛选数据时&#xff0c;explain查询语句发现MySQL居然没有使用索引&#xff0c;产生疑问&#xff0c;因此决定调查清楚为什么会不用索引&#xff0c;而是走全表扫描 原因调查出的结果是当你要查询的数据量是连续又占整个表五分之一以上那就不会走索引了&a…

Java面试宝典.exe程序成功运行,经典 Java 万字笔记,查漏补缺,备战跳槽面试

现在 java 的面试真的卷到家了&#xff0c;面试前很有必要针对性的多刷题&#xff0c;大部分童鞋实战能力强&#xff0c;理论不行&#xff0c;面试前不做准备很吃亏。这里整理了很多常考面试题&#xff0c;希望对你有帮助。 耗时一个月&#xff0c;我把牛客网上最火的 Java 面…

ZMQ之共享键值缓存(克隆模式)

发布-订阅模式和无线电广播有些类似&#xff0c;在你收听之前发送的消息你将无从得知&#xff0c;收到消息的多少又会取决于你的接收能力。让人吃惊的是&#xff0c;对于那些追求完美的工程师来说&#xff0c;这种机器恰恰符合他们的需求&#xff0c;且广为传播&#xff0c;成为…

导出 txt文件 处理思路和实现流程

1.先看导出目标文件需要的字段都存不存在&#xff0c; 存在继续处理&#xff0c;不存在就添加。 例如&#xff0c;我这里需要在若依的用户表在添加一个银行账户数据&#xff0c; //银行卡号 private String accountNumber; public String getAccountNumber() { r…

Java程序员3个月从月薪6k涨到15k,你知道我是怎么过来的吗?

(一). 基础 1. Java 基本功 Java 入门&#xff08;基础概念与常识&#xff09; Java 语法 基本数据类型 方法&#xff08;函数&#xff09; 2. Java 面向对象 类和对象 面向对象三大特征 修饰符 接口和抽象类 其它重要知识点 3. Java 核心技术 集合 异常 多线程 文…

Python——协程(Coroutine),异步IO

目录 生成器(Generator) yield表达式的使用 生产者和消费者模型 ​编辑 yield from表达式 协程(Coroutine) asyncio.coroutine async/await 总结 由于GIL的存在&#xff0c;导致Python多线程性能甚至比单线程更糟。 于是出现了协程&#xff08;Coroutine&#xff09;这…

Arduino UNO通过PCF8574串行IIC接口驱动LCD1602/LCD2004液晶屏

LCD1602/2004液晶屏简介 LCD1602液晶显示器是广泛使用的一种字符型液晶显示模块。可以显示2行每行16个字符&#xff0c;总共32个字符。字符型液晶显示模块是一种专门用于显示字母、数字和符号等的点阵式LCD&#xff0c;常用161&#xff0c;162&#xff0c;202和402等的模块。不…

Go编程项目实战教程

Go编程项目实战教程 在这个面向初学者的 Go 编程语言课程中&#xff0c;您将通过构建 11 个项目来提高您的 Go 编程技能 课程英文名&#xff1a;Learn Go Programming by Building 11 Projects – Full Course 此视频教程共21.0小时&#xff0c;中英双语字幕&#xff0c;画质…

数据之道读书笔记-07打造“数字孪生”的数据全量感知能力

数据之道读书笔记-07打造“数字孪生”的数据全量感知能力 在信息化时代构建的IT系统&#xff0c;基本上是功能化、烟囱化、封闭式的&#xff0c;只能给企业内部经过培训的专业人员使用&#xff0c;所有的决策数据和我们信任的IT系统基本都是靠人来录入数据。但是&#xff0c;人…

Android移动开发基础——实训项目:个人财务软件

目录 步骤 1. 项目计划 需求分析 程序流程图 2. 实现功能模块 2.1 登录模块 前提 软件&#xff1a;Android Studio开发工具、JDK1.8以上版本 目标&#xff1a;编写个人财务软件 步骤 &#xff08;1&#xff09;根据设计题目要求的指标&#xff0c;通过查阅有关资料…

某学生宿舍楼设计

目 录 1.建筑设计部分 1 1.1工程概况 1 1.2设计依据 2 1.3标高及建筑细部作法 2 1.4平面设计 2 1.4.1建筑方案设计 2 1.4.2建筑做法 4 1.4.3 建筑设计成果 6 2.结构设计部分 7 2.1结构平面设计 7 2.2构件截面尺寸的初步确定 8 2.3荷载统计 10 2.3.1楼屋面及卫生间恒活计算 10 2…

热加载技术:修改Python代码并实时查看结果 ⛵

&#x1f4a1; 作者&#xff1a;韩信子ShowMeAI &#x1f4d8; Python3◉技能提升系列&#xff1a;https://www.showmeai.tech/tutorials/56 &#x1f4d8; 本文地址&#xff1a;https://www.showmeai.tech/article-detail/406 &#x1f4e2; 声明&#xff1a;版权所有&#xf…

基于MindSpore框架的道路场景语义分割方法研究

概述 本文以华为最新国产深度学习框架Mindspore为基础&#xff0c;将城市道路下的实况图片解析作为任务背景&#xff0c;以复杂城市道路进行高精度的语义分割为任务目标&#xff0c;对上述难处进行探究并提出相应方案&#xff0c;成功地在Cityscapes数据集上完成了语义分割任务…

vue3+ts做echarts做一个简单的折线渐变图

vue3做echarts做一个简单的折线渐变图 效果 代码&#xff1a; </template> <div><div class"date-change"><el-date-picker size"small" v-model"dateValue" value-format"YYYY-MM-DD" type"daterange&qu…

Leetcode 72. 编辑距离

最近在写dp问题的时候&#xff0c;写到这个经典题&#xff0c;对于里面三个转换方程没太懂&#xff0c;偶然在评论区找到一个非常非常清楚的解释&#xff0c;顺便就把这道题记录一下&#xff0c;加上自己的理解&#xff0c;方便日后查看! 对于这一类的dp习惯性的都初始化dp的大…

好用的数据恢复软件EasyRecovery2023最新版

实用的数据恢复软件有什么&#xff1f;电脑中的数据文件对很多的小伙伴来说都是非常重要的&#xff0c;在下载安装新的软件设备时都需要非常谨慎&#xff0c;一旦碰到一些病毒就可能会导致文件丢失&#xff0c;想要恢复这些文件并不是很容易&#xff0c;需要使用专业的数据恢复…