代碼評審平臺 phabricator-docker/phabricator docker 服務搭建及配置

項目地址

https://github.com/phabricator-docker/phabricator

下載docker相關源碼

[yeqiang@localhost src]$ git clone https://github.com/phabricator-docker/phabricator.git
Cloning into 'phabricator'...
remote: Enumerating objects: 96, done.
remote: Counting objects: 100% (96/96), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 1402 (delta 39), reused 26 (delta 9), pack-reused 1306
Receiving objects: 100% (1402/1402), 195.34 KiB | 343.00 KiB/s, done.
Resolving deltas: 100% (686/686), done.

注意不能下載zip包,必須git clone !!!

 

查看拉下來的代碼

[yeqiang@localhost src]$ cd phabricator/
[yeqiang@localhost phabricator]$ ll
total 44
drwxrwxr-x. 2 yeqiang yeqiang  4096 Dec  4 10:20 arcanist
-rw-rw-r--. 1 yeqiang yeqiang   647 Dec  4 10:20 docker-compose.yml
-rw-rw-r--. 1 yeqiang yeqiang  3071 Dec  4 10:20 Dockerfile
-rw-rw-r--. 1 yeqiang yeqiang  3276 Dec  4 10:20 Dockerfile.aphlict
-rw-rw-r--. 1 yeqiang yeqiang  2863 Dec  4 10:20 Dockerfile.daemon
drwxrwxr-x. 2 yeqiang yeqiang  4096 Dec  4 10:20 libphutil
-rw-rw-r--. 1 yeqiang yeqiang 11357 Dec  4 10:20 LICENSE
drwxrwxr-x. 2 yeqiang yeqiang  4096 Dec  4 10:20 phabricator
-rw-rw-r--. 1 yeqiang yeqiang   193 Dec  4 10:20 README.md

執行docker-compose up

[yeqiang@localhost phabricator]$ docker-compose up
Creating network "phabricator_default" with the default driver
Creating volume "phabricator_config" with default driver
Creating volume "phabricator_repo" with default driver
Creating volume "phabricator_db-data" with default driver
Pulling database (mariadb:10.2)...
10.2: Pulling from library/mariadb
7ddbc47eeb70: Pull complete
c1bbdc448b72: Pull complete
8c3b70e39044: Pull complete
45d437916d57: Pull complete
215d801d0263: Pull complete
59feacde9e08: Pull complete
741aa98d779c: Pull complete
e3f771d07df1: Pull complete
38be307a8063: Pull complete
5ef9df553f6d: Pull complete
b992a7b096c0: Pull complete
8b3816f00fec: Pull complete
f9f7909c7c2d: Pull complete
7e9709bbb356: Pull complete
Digest: sha256:1f0c428294323ad2ec3884f99dbdff54f99d43ebdb5335aab237ae4e9c0e829b
Status: Downloaded newer image for mariadb:10.2
Building daemon
Step 1/14 : FROM php:7.2-cli-stretch
7.2-cli-stretch: Pulling from library/php
d599a449871e: Pull complete
1a363f133ddd: Pull complete
dd6ffd5f60d7: Pull complete
515e48bcd87c: Pull complete
112574b1a09e: Pull complete
1df6bd76e8c9: Pull complete
1c8cc7f291b4: Pull complete
fb7c106d3f3f: Pull complete
f06a6d5d6588: Pull complete
Digest: sha256:9297c9c8ce6061674f50200ed3dbda42bb980001288f7d20ed501f3a4036dfdd
Status: Downloaded newer image for php:7.2-cli-stretch
 ---> 9fd38246df78
Step 2/14 : RUN apt-get update   && apt-get install -y --no-install-recommends     git     mercurial     subversion     ca-certificates     python-pygments     imagemagick     procps   && rm -rf /var/lib/apt/lists/*
 ---> Running in 05c0522cfe2d
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian buster InRelease [122 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [27.9 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7908 kB]
Get:8 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:9 http://security-cdn.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:10 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [508 kB]
Get:11 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [159 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2365 B]
Get:13 http://cdn-fastly.deb.debian.org/debian buster-updates/main amd64 Packages [5792 B]
Get:14 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7086 kB]
Fetched 16.2 MB in 17s (943 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20161130+nmu1+deb9u1).
The following additional packages will be installed:
  fontconfig-config fonts-dejavu-core git-man hicolor-icon-theme
  imagemagick-6-common imagemagick-6.q16 libapr1 libaprutil1 libcurl3-gnutls
  liberror-perl libexpat1 libfftw3-double3 libfontconfig1 libfreetype6
  libjbig0 libjpeg62-turbo libjs-excanvas liblcms2-2 liblqr-1-0 libltdl7
  libmagickcore-6.q16-3 libmagickwand-6.q16-3 libopenjp2-7 libpng16-16
  libprocps6 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib
  libreadline7 libserf-1-1 libsvn1 libtiff5 libx11-6 libx11-data libxau6
  libxcb1 libxdmcp6 libxext6 mercurial-common mime-support python
  python-minimal python2.7 python2.7-minimal readline-common ucf
Suggested packages:
  gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
  git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn imagemagick-doc
  autotrace cups-bsd | lpr | lprng enscript ffmpeg gimp gnuplot grads graphviz
  groff-base hp2xx html2ps libwmf-bin mplayer povray radiance sane-utils
  texlive-base-bin transfig ufraw-batch xdg-utils libfftw3-bin libfftw3-dev
  liblcms2-utils libmagickcore-6.q16-3-extra qct kdiff3 | kdiff3-qt | kompare
  | meld | tkcvs | mgdiff wish python-mysqldb python-openssl python-doc
  python-tk ttf-bitstream-vera python2.7-doc binfmt-support readline-doc
  db5.3-util subversion-tools
Recommended packages:
  less rsync ssh-client libmagickcore-6.q16-3-extra ghostscript netpbm
  javascript-common gsfonts openssh-client psmisc python-chardet
  python-pkg-resources
The following NEW packages will be installed:
  fontconfig-config fonts-dejavu-core git git-man hicolor-icon-theme
  imagemagick imagemagick-6-common imagemagick-6.q16 libapr1 libaprutil1
  libcurl3-gnutls liberror-perl libexpat1 libfftw3-double3 libfontconfig1
  libfreetype6 libjbig0 libjpeg62-turbo libjs-excanvas liblcms2-2 liblqr-1-0
  libltdl7 libmagickcore-6.q16-3 libmagickwand-6.q16-3 libopenjp2-7
  libpng16-16 libprocps6 libpython-stdlib libpython2.7-minimal
  libpython2.7-stdlib libreadline7 libserf-1-1 libsvn1 libtiff5 libx11-6
  libx11-data libxau6 libxcb1 libxdmcp6 libxext6 mercurial mercurial-common
  mime-support procps python python-minimal python-pygments python2.7
  python2.7-minimal readline-common subversion ucf
0 upgraded, 52 newly installed, 0 to remove and 1 not upgraded.
Need to get 24.6 MB of archives.
After this operation, 98.2 MB of additional disk space will be used.
Get:1 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 libexpat1 amd64 2.2.0-2+deb9u3 [83.7 kB]
Get:2 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 libsvn1 amd64 1.9.5-1+deb9u5 [1319 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython2.7-minimal amd64 2.7.13-2+deb9u3 [389 kB]
Get:3 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 subversion amd64 1.9.5-1+deb9u5 [994 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python2.7-minimal amd64 2.7.13-2+deb9u3 [1382 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python-minimal amd64 2.7.13-2 [40.5 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 mime-support all 3.60 [36.7 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 readline-common all 7.0-3 [70.4 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libreadline7 amd64 7.0-3 [151 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython2.7-stdlib amd64 2.7.13-2+deb9u3 [1897 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python2.7 amd64 2.7.13-2+deb9u3 [285 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython-stdlib amd64 2.7.13-2 [20.0 kB]
Get:13 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python amd64 2.7.13-2 [154 kB]
Get:14 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libcurl3-gnutls amd64 7.52.1-5+deb9u9 [290 kB]
Get:15 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 liberror-perl all 0.17024-1 [26.9 kB]
Get:16 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 git-man all 1:2.11.0-3+deb9u4 [1433 kB]
Get:17 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 git amd64 1:2.11.0-3+deb9u4 [4167 kB]
Get:18 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 liblqr-1-0 amd64 0.4.2-2+b2 [24.8 kB]
Get:19 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libfftw3-double3 amd64 3.3.5-3 [731 kB]
Get:20 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpng16-16 amd64 1.6.28-1+deb9u1 [280 kB]
Get:21 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libfreetype6 amd64 2.6.3-3.2 [438 kB]
Get:22 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 ucf all 3.0036 [70.2 kB]
Get:23 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 fonts-dejavu-core all 2.37-1 [1068 kB]
Get:24 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 fontconfig-config all 2.11.0-6.7 [271 kB]
Get:25 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libfontconfig1 amd64 2.11.0-6.7+b1 [331 kB]
Get:26 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libjbig0 amd64 2.1-3.1+b2 [31.0 kB]
Get:27 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libjpeg62-turbo amd64 1:1.5.1-2 [134 kB]
Get:28 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 liblcms2-2 amd64 2.8-4+deb9u1 [143 kB]
Get:29 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libltdl7 amd64 2.4.6-2 [389 kB]
Get:30 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libopenjp2-7 amd64 2.1.2-1.1+deb9u3 [122 kB]
Get:31 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libtiff5 amd64 4.0.8-2+deb9u4 [238 kB]
Get:32 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxau6 amd64 1:1.0.8-1 [20.7 kB]
Get:33 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxdmcp6 amd64 1:1.1.2-3 [26.3 kB]
Get:34 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxcb1 amd64 1.12-1 [133 kB]
Get:35 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libx11-data all 2:1.6.4-3+deb9u1 [287 kB]
Get:36 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libx11-6 amd64 2:1.6.4-3+deb9u1 [748 kB]
Get:37 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxext6 amd64 2:1.3.3-1+b2 [52.5 kB]
Get:38 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 imagemagick-6-common all 8:6.9.7.4+dfsg-11+deb9u7 [184 kB]
Get:39 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libmagickcore-6.q16-3 amd64 8:6.9.7.4+dfsg-11+deb9u7 [1743 kB]
Get:40 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libmagickwand-6.q16-3 amd64 8:6.9.7.4+dfsg-11+deb9u7 [422 kB]
Get:41 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libprocps6 amd64 2:3.3.12-3+deb9u1 [58.5 kB]
Get:42 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 procps amd64 2:3.3.12-3+deb9u1 [250 kB]
Get:43 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 hicolor-icon-theme all 0.15-1 [9550 B]
Get:44 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 imagemagick-6.q16 amd64 8:6.9.7.4+dfsg-11+deb9u7 [563 kB]
Get:45 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 imagemagick amd64 8:6.9.7.4+dfsg-11+deb9u7 [141 kB]
Get:46 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libapr1 amd64 1.5.2-5 [96.6 kB]
Get:47 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libaprutil1 amd64 1.5.4-3 [85.8 kB]
Get:48 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libjs-excanvas all 0.r3-4 [45.3 kB]
Get:49 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libserf-1-1 amd64 1.3.9-3+deb9u1 [52.5 kB]
Get:50 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 mercurial-common all 4.0-1+deb9u1 [1962 kB]
Get:51 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 mercurial amd64 4.0-1+deb9u1 [75.5 kB]
Get:52 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python-pygments all 2.2.0+dfsg-1 [590 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 24.6 MB in 7min 11s (56.9 kB/s)
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database ... 12315 files and directories currently installed.)
Preparing to unpack .../0-libpython2.7-minimal_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.13-2+deb9u3) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../1-python2.7-minimal_2.7.13-2+deb9u3_amd64.deb ...
Unpacking python2.7-minimal (2.7.13-2+deb9u3) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../2-python-minimal_2.7.13-2_amd64.deb ...
Unpacking python-minimal (2.7.13-2) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../3-mime-support_3.60_all.deb ...
Unpacking mime-support (3.60) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../4-libexpat1_2.2.0-2+deb9u3_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.0-2+deb9u3) ...
Selecting previously unselected package readline-common.
Preparing to unpack .../5-readline-common_7.0-3_all.deb ...
Unpacking readline-common (7.0-3) ...
Selecting previously unselected package libreadline7:amd64.
Preparing to unpack .../6-libreadline7_7.0-3_amd64.deb ...
Unpacking libreadline7:amd64 (7.0-3) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../7-libpython2.7-stdlib_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.13-2+deb9u3) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../8-python2.7_2.7.13-2+deb9u3_amd64.deb ...
Unpacking python2.7 (2.7.13-2+deb9u3) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../9-libpython-stdlib_2.7.13-2_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.13-2) ...
Setting up libpython2.7-minimal:amd64 (2.7.13-2+deb9u3) ...
Setting up python2.7-minimal (2.7.13-2+deb9u3) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python-minimal (2.7.13-2) ...
Selecting previously unselected package python.
(Reading database ... 13119 files and directories currently installed.)
Preparing to unpack .../00-python_2.7.13-2_amd64.deb ...
Unpacking python (2.7.13-2) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../01-libcurl3-gnutls_7.52.1-5+deb9u9_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.52.1-5+deb9u9) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../02-liberror-perl_0.17024-1_all.deb ...
Unpacking liberror-perl (0.17024-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../03-git-man_1%3a2.11.0-3+deb9u4_all.deb ...
Unpacking git-man (1:2.11.0-3+deb9u4) ...
Selecting previously unselected package git.
Preparing to unpack .../04-git_1%3a2.11.0-3+deb9u4_amd64.deb ...
Unpacking git (1:2.11.0-3+deb9u4) ...
Selecting previously unselected package liblqr-1-0:amd64.
Preparing to unpack .../05-liblqr-1-0_0.4.2-2+b2_amd64.deb ...
Unpacking liblqr-1-0:amd64 (0.4.2-2+b2) ...
Selecting previously unselected package libfftw3-double3:amd64.
Preparing to unpack .../06-libfftw3-double3_3.3.5-3_amd64.deb ...
Unpacking libfftw3-double3:amd64 (3.3.5-3) ...
Selecting previously unselected package libpng16-16:amd64.
Preparing to unpack .../07-libpng16-16_1.6.28-1+deb9u1_amd64.deb ...
Unpacking libpng16-16:amd64 (1.6.28-1+deb9u1) ...
Selecting previously unselected package libfreetype6:amd64.
Preparing to unpack .../08-libfreetype6_2.6.3-3.2_amd64.deb ...
Unpacking libfreetype6:amd64 (2.6.3-3.2) ...
Selecting previously unselected package ucf.
Preparing to unpack .../09-ucf_3.0036_all.deb ...
Moving old data out of the way
Unpacking ucf (3.0036) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../10-fonts-dejavu-core_2.37-1_all.deb ...
Unpacking fonts-dejavu-core (2.37-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../11-fontconfig-config_2.11.0-6.7_all.deb ...
Unpacking fontconfig-config (2.11.0-6.7) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../12-libfontconfig1_2.11.0-6.7+b1_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.11.0-6.7+b1) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../13-libjbig0_2.1-3.1+b2_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-3.1+b2) ...
Selecting previously unselected package libjpeg62-turbo:amd64.
Preparing to unpack .../14-libjpeg62-turbo_1%3a1.5.1-2_amd64.deb ...
Unpacking libjpeg62-turbo:amd64 (1:1.5.1-2) ...
Selecting previously unselected package liblcms2-2:amd64.
Preparing to unpack .../15-liblcms2-2_2.8-4+deb9u1_amd64.deb ...
Unpacking liblcms2-2:amd64 (2.8-4+deb9u1) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../16-libltdl7_2.4.6-2_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-2) ...
Selecting previously unselected package libopenjp2-7:amd64.
Preparing to unpack .../17-libopenjp2-7_2.1.2-1.1+deb9u3_amd64.deb ...
Unpacking libopenjp2-7:amd64 (2.1.2-1.1+deb9u3) ...
Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../18-libtiff5_4.0.8-2+deb9u4_amd64.deb ...
Unpacking libtiff5:amd64 (4.0.8-2+deb9u4) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../19-libxau6_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../20-libxdmcp6_1%3a1.1.2-3_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.2-3) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../21-libxcb1_1.12-1_amd64.deb ...
Unpacking libxcb1:amd64 (1.12-1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../22-libx11-data_2%3a1.6.4-3+deb9u1_all.deb ...
Unpacking libx11-data (2:1.6.4-3+deb9u1) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../23-libx11-6_2%3a1.6.4-3+deb9u1_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.4-3+deb9u1) ...
Selecting previously unselected package libxext6:amd64.
Preparing to unpack .../24-libxext6_2%3a1.3.3-1+b2_amd64.deb ...
Unpacking libxext6:amd64 (2:1.3.3-1+b2) ...
Selecting previously unselected package imagemagick-6-common.
Preparing to unpack .../25-imagemagick-6-common_8%3a6.9.7.4+dfsg-11+deb9u7_all.deb ...
Unpacking imagemagick-6-common (8:6.9.7.4+dfsg-11+deb9u7) ...
Selecting previously unselected package libmagickcore-6.q16-3:amd64.
Preparing to unpack .../26-libmagickcore-6.q16-3_8%3a6.9.7.4+dfsg-11+deb9u7_amd64.deb ...
Unpacking libmagickcore-6.q16-3:amd64 (8:6.9.7.4+dfsg-11+deb9u7) ...
Selecting previously unselected package libmagickwand-6.q16-3:amd64.
Preparing to unpack .../27-libmagickwand-6.q16-3_8%3a6.9.7.4+dfsg-11+deb9u7_amd64.deb ...
Unpacking libmagickwand-6.q16-3:amd64 (8:6.9.7.4+dfsg-11+deb9u7) ...
Selecting previously unselected package libprocps6:amd64.
Preparing to unpack .../28-libprocps6_2%3a3.3.12-3+deb9u1_amd64.deb ...
Unpacking libprocps6:amd64 (2:3.3.12-3+deb9u1) ...
Selecting previously unselected package procps.
Preparing to unpack .../29-procps_2%3a3.3.12-3+deb9u1_amd64.deb ...
Unpacking procps (2:3.3.12-3+deb9u1) ...
Selecting previously unselected package hicolor-icon-theme.
Preparing to unpack .../30-hicolor-icon-theme_0.15-1_all.deb ...
Unpacking hicolor-icon-theme (0.15-1) ...
Selecting previously unselected package imagemagick-6.q16.
Preparing to unpack .../31-imagemagick-6.q16_8%3a6.9.7.4+dfsg-11+deb9u7_amd64.deb ...
Unpacking imagemagick-6.q16 (8:6.9.7.4+dfsg-11+deb9u7) ...
Selecting previously unselected package imagemagick.
Preparing to unpack .../32-imagemagick_8%3a6.9.7.4+dfsg-11+deb9u7_amd64.deb ...
Unpacking imagemagick (8:6.9.7.4+dfsg-11+deb9u7) ...
Selecting previously unselected package libapr1:amd64.
Preparing to unpack .../33-libapr1_1.5.2-5_amd64.deb ...
Unpacking libapr1:amd64 (1.5.2-5) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../34-libaprutil1_1.5.4-3_amd64.deb ...
Unpacking libaprutil1:amd64 (1.5.4-3) ...
Selecting previously unselected package libjs-excanvas.
Preparing to unpack .../35-libjs-excanvas_0.r3-4_all.deb ...
Unpacking libjs-excanvas (0.r3-4) ...
Selecting previously unselected package libserf-1-1:amd64.
Preparing to unpack .../36-libserf-1-1_1.3.9-3+deb9u1_amd64.deb ...
Unpacking libserf-1-1:amd64 (1.3.9-3+deb9u1) ...
Selecting previously unselected package libsvn1:amd64.
Preparing to unpack .../37-libsvn1_1.9.5-1+deb9u5_amd64.deb ...
Unpacking libsvn1:amd64 (1.9.5-1+deb9u5) ...
Selecting previously unselected package mercurial-common.
Preparing to unpack .../38-mercurial-common_4.0-1+deb9u1_all.deb ...
Unpacking mercurial-common (4.0-1+deb9u1) ...
Selecting previously unselected package mercurial.
Preparing to unpack .../39-mercurial_4.0-1+deb9u1_amd64.deb ...
Unpacking mercurial (4.0-1+deb9u1) ...
Selecting previously unselected package python-pygments.
Preparing to unpack .../40-python-pygments_2.2.0+dfsg-1_all.deb ...
Unpacking python-pygments (2.2.0+dfsg-1) ...
Selecting previously unselected package subversion.
Preparing to unpack .../41-subversion_1.9.5-1+deb9u5_amd64.deb ...
Unpacking subversion (1.9.5-1+deb9u5) ...
Setting up libapr1:amd64 (1.5.2-5) ...
Setting up imagemagick-6-common (8:6.9.7.4+dfsg-11+deb9u7) ...
Setting up readline-common (7.0-3) ...
Setting up git-man (1:2.11.0-3+deb9u4) ...
Setting up libexpat1:amd64 (2.2.0-2+deb9u3) ...
Setting up libopenjp2-7:amd64 (2.1.2-1.1+deb9u3) ...
Setting up libjpeg62-turbo:amd64 (1:1.5.1-2) ...
Setting up mime-support (3.60) ...
Setting up libpng16-16:amd64 (1.6.28-1+deb9u1) ...
Setting up liberror-perl (0.17024-1) ...
Setting up liblcms2-2:amd64 (2.8-4+deb9u1) ...
Setting up libjbig0:amd64 (2.1-3.1+b2) ...
Setting up fonts-dejavu-core (2.37-1) ...
Setting up libreadline7:amd64 (7.0-3) ...
Setting up libcurl3-gnutls:amd64 (7.52.1-5+deb9u9) ...
Setting up libjs-excanvas (0.r3-4) ...
Setting up libtiff5:amd64 (4.0.8-2+deb9u4) ...
Setting up libfftw3-double3:amd64 (3.3.5-3) ...
Setting up libprocps6:amd64 (2:3.3.12-3+deb9u1) ...
Setting up ucf (3.0036) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up libfreetype6:amd64 (2.6.3-3.2) ...
Setting up procps (2:3.3.12-3+deb9u1) ...
update-alternatives: using /usr/bin/w.procps to provide /usr/bin/w (w) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/w.1.gz because associated file /usr/share/man/man1/w.procps.1.gz (of link group w) doesn't exist
Setting up liblqr-1-0:amd64 (0.4.2-2+b2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libaprutil1:amd64 (1.5.4-3) ...
Setting up libltdl7:amd64 (2.4.6-2) ...
Setting up libxdmcp6:amd64 (1:1.1.2-3) ...
Setting up hicolor-icon-theme (0.15-1) ...
Setting up git (1:2.11.0-3+deb9u4) ...
Setting up libx11-data (2:1.6.4-3+deb9u1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.13-2+deb9u3) ...
Setting up libxau6:amd64 (1:1.0.8-1) ...
Setting up fontconfig-config (2.11.0-6.7) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up python2.7 (2.7.13-2+deb9u3) ...
Setting up libpython-stdlib:amd64 (2.7.13-2) ...
Setting up libserf-1-1:amd64 (1.3.9-3+deb9u1) ...
Setting up libsvn1:amd64 (1.9.5-1+deb9u5) ...
Setting up libxcb1:amd64 (1.12-1) ...
Setting up python (2.7.13-2) ...
Setting up libfontconfig1:amd64 (2.11.0-6.7+b1) ...
Setting up libx11-6:amd64 (2:1.6.4-3+deb9u1) ...
Setting up mercurial-common (4.0-1+deb9u1) ...
Setting up mercurial (4.0-1+deb9u1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline

Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version
Setting up python-pygments (2.2.0+dfsg-1) ...
Setting up subversion (1.9.5-1+deb9u5) ...
Setting up libxext6:amd64 (2:1.3.3-1+b2) ...
Setting up libmagickcore-6.q16-3:amd64 (8:6.9.7.4+dfsg-11+deb9u7) ...
Setting up libmagickwand-6.q16-3:amd64 (8:6.9.7.4+dfsg-11+deb9u7) ...
Setting up imagemagick-6.q16 (8:6.9.7.4+dfsg-11+deb9u7) ...
update-alternatives: using /usr/bin/compare-im6.q16 to provide /usr/bin/compare (compare) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/compare.1.gz because associated file /usr/share/man/man1/compare-im6.q16.1.gz (of link group compare) doesn't exist
update-alternatives: using /usr/bin/compare-im6.q16 to provide /usr/bin/compare-im6 (compare-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/compare-im6.1.gz because associated file /usr/share/man/man1/compare-im6.q16.1.gz (of link group compare-im6) doesn't exist
update-alternatives: using /usr/bin/animate-im6.q16 to provide /usr/bin/animate (animate) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/animate.1.gz because associated file /usr/share/man/man1/animate-im6.q16.1.gz (of link group animate) doesn't exist
update-alternatives: using /usr/bin/animate-im6.q16 to provide /usr/bin/animate-im6 (animate-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/animate-im6.1.gz because associated file /usr/share/man/man1/animate-im6.q16.1.gz (of link group animate-im6) doesn't exist
update-alternatives: using /usr/bin/convert-im6.q16 to provide /usr/bin/convert (convert) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/convert.1.gz because associated file /usr/share/man/man1/convert-im6.q16.1.gz (of link group convert) doesn't exist
update-alternatives: using /usr/bin/convert-im6.q16 to provide /usr/bin/convert-im6 (convert-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/convert-im6.1.gz because associated file /usr/share/man/man1/convert-im6.q16.1.gz (of link group convert-im6) doesn't exist
update-alternatives: using /usr/bin/composite-im6.q16 to provide /usr/bin/composite (composite) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/composite.1.gz because associated file /usr/share/man/man1/composite-im6.q16.1.gz (of link group composite) doesn't exist
update-alternatives: using /usr/bin/composite-im6.q16 to provide /usr/bin/composite-im6 (composite-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/composite-im6.1.gz because associated file /usr/share/man/man1/composite-im6.q16.1.gz (of link group composite-im6) doesn't exist
update-alternatives: using /usr/bin/conjure-im6.q16 to provide /usr/bin/conjure (conjure) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/conjure.1.gz because associated file /usr/share/man/man1/conjure-im6.q16.1.gz (of link group conjure) doesn't exist
update-alternatives: using /usr/bin/conjure-im6.q16 to provide /usr/bin/conjure-im6 (conjure-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/conjure-im6.1.gz because associated file /usr/share/man/man1/conjure-im6.q16.1.gz (of link group conjure-im6) doesn't exist
update-alternatives: using /usr/bin/import-im6.q16 to provide /usr/bin/import (import) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/import.1.gz because associated file /usr/share/man/man1/import-im6.q16.1.gz (of link group import) doesn't exist
update-alternatives: using /usr/bin/import-im6.q16 to provide /usr/bin/import-im6 (import-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/import-im6.1.gz because associated file /usr/share/man/man1/import-im6.q16.1.gz (of link group import-im6) doesn't exist
update-alternatives: using /usr/bin/identify-im6.q16 to provide /usr/bin/identify (identify) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/identify.1.gz because associated file /usr/share/man/man1/identify-im6.q16.1.gz (of link group identify) doesn't exist
update-alternatives: using /usr/bin/identify-im6.q16 to provide /usr/bin/identify-im6 (identify-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/identify-im6.1.gz because associated file /usr/share/man/man1/identify-im6.q16.1.gz (of link group identify-im6) doesn't exist
update-alternatives: using /usr/bin/stream-im6.q16 to provide /usr/bin/stream (stream) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/stream.1.gz because associated file /usr/share/man/man1/stream-im6.q16.1.gz (of link group stream) doesn't exist
update-alternatives: using /usr/bin/stream-im6.q16 to provide /usr/bin/stream-im6 (stream-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/stream-im6.1.gz because associated file /usr/share/man/man1/stream-im6.q16.1.gz (of link group stream-im6) doesn't exist
update-alternatives: using /usr/bin/display-im6.q16 to provide /usr/bin/display (display) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/display.1.gz because associated file /usr/share/man/man1/display-im6.q16.1.gz (of link group display) doesn't exist
update-alternatives: using /usr/bin/display-im6.q16 to provide /usr/bin/display-im6 (display-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/display-im6.1.gz because associated file /usr/share/man/man1/display-im6.q16.1.gz (of link group display-im6) doesn't exist
update-alternatives: using /usr/bin/montage-im6.q16 to provide /usr/bin/montage (montage) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/montage.1.gz because associated file /usr/share/man/man1/montage-im6.q16.1.gz (of link group montage) doesn't exist
update-alternatives: using /usr/bin/montage-im6.q16 to provide /usr/bin/montage-im6 (montage-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/montage-im6.1.gz because associated file /usr/share/man/man1/montage-im6.q16.1.gz (of link group montage-im6) doesn't exist
update-alternatives: using /usr/bin/mogrify-im6.q16 to provide /usr/bin/mogrify (mogrify) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/mogrify.1.gz because associated file /usr/share/man/man1/mogrify-im6.q16.1.gz (of link group mogrify) doesn't exist
update-alternatives: using /usr/bin/mogrify-im6.q16 to provide /usr/bin/mogrify-im6 (mogrify-im6) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/mogrify-im6.1.gz because associated file /usr/share/man/man1/mogrify-im6.q16.1.gz (of link group mogrify-im6) doesn't exist
Setting up imagemagick (8:6.9.7.4+dfsg-11+deb9u7) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Removing intermediate container 05c0522cfe2d
 ---> c18872f066d7
Step 3/14 : RUN set -ex;         if command -v a2enmod; then         a2enmod rewrite;     fi;         savedAptMark="$(apt-mark showmanual)";         apt-get update;     apt-get install -y --no-install-recommends         libcurl4-gnutls-dev     libjpeg62-turbo-dev         libpng-dev     libfreetype6-dev     ;       docker-php-ext-configure gd         --with-jpeg-dir=/usr         --with-png-dir=/usr     --with-freetype-dir=/usr   ;       docker-php-ext-install -j "$(nproc)"     gd     opcache     mbstring     iconv     mysqli     curl     pcntl     zip     ;       apt-mark auto '.*' > /dev/null;     apt-mark manual $savedAptMark;     ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so         | awk '/=>/ { print $3 }'         | sort -u         | xargs -r dpkg-query -S         | cut -d: -f1         | sort -u         | xargs -rt apt-mark manual;         apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false;     rm -rf /var/lib/apt/lists/*
 ---> Running in 7d01f2180ee8
+ command -v a2enmod
+ apt-mark showmanual
+ savedAptMark=autoconf
ca-certificates
curl
dpkg-dev
file
g++
gcc
git
imagemagick
libargon2-1
libbsd0
libc6
libc6-dev
libcomerr2
libcurl3
libedit2
libffi6
libgcc1
libgcrypt20
libgmp10
libgnutls30
libgpg-error0
libgssapi-krb5-2
libhogweed4
libicu57
libidn11
libidn2-0
libk5crypto3
libkeyutils1
libkrb5-3
libkrb5support0
libldap-2.4-2
liblzma5
libncurses5
libnettle6
libnghttp2-14
libp11-kit0
libpsl5
librtmp1
libsasl2-2
libsodium18
libsqlite3-0
libssh2-1
libssl1.0.2
libssl1.1
libstdc++6
libtasn1-6
libtinfo5
libunistring0
libxml2
make
mercurial
pkg-config
procps
python-pygments
re2c
subversion
xz-utils
zlib1g
+ apt-get update
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian buster InRelease [122 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [27.9 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7908 kB]
Get:8 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:9 http://security-cdn.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:10 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [508 kB]
Get:11 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [159 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian buster-updates/main amd64 Packages [5792 B]
Get:13 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2365 B]
Get:14 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7086 kB]
Fetched 16.2 MB in 4min 33s (59.3 kB/s)
Reading package lists...
+ apt-get install -y --no-install-recommends libcurl4-gnutls-dev libjpeg62-turbo-dev libpng-dev libfreetype6-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  zlib1g-dev
Suggested packages:
  libcurl4-doc libcurl3-dbg libgnutls28-dev libidn11-dev libkrb5-dev
  libldap2-dev librtmp-dev libssh2-1-dev
Recommended packages:
  libpng-tools
The following NEW packages will be installed:
  libcurl4-gnutls-dev libfreetype6-dev libjpeg62-turbo-dev libpng-dev
  zlib1g-dev
0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
Need to get 6853 kB of archives.
After this operation, 12.5 MB of additional disk space will be used.
Err:1 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libcurl4-gnutls-dev amd64 7.52.1-5+deb9u9
  Could not resolve 'cdn-fastly.deb.debian.org'
Err:2 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 zlib1g-dev amd64 1:1.2.8.dfsg-5
  Could not resolve 'cdn-fastly.deb.debian.org'
Ign:3 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpng-dev amd64 1.6.28-1+deb9u1
Err:4 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libfreetype6-dev amd64 2.6.3-3.2
  Could not resolve 'cdn-fastly.deb.debian.org'
Err:5 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libjpeg62-turbo-dev amd64 1:1.5.1-2
  Could not resolve 'cdn-fastly.deb.debian.org'
Get:1 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 libcurl4-gnutls-dev amd64 7.52.1-5+deb9u9 [373 kB]
Get:3 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 libpng-dev amd64 1.6.28-1+deb9u1 [250 kB]
E: Failed to fetch http://cdn-fastly.deb.debian.org/debian/pool/main/z/zlib/zlib1g-dev_1.2.8.dfsg-5_amd64.deb  Could not resolve 'cdn-fastly.deb.debian.org'
E: Failed to fetch http://cdn-fastly.deb.debian.org/debian/pool/main/f/freetype/libfreetype6-dev_2.6.3-3.2_amd64.deb  Could not resolve 'cdn-fastly.deb.debian.org'
E: Failed to fetch http://cdn-fastly.deb.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo-dev_1.5.1-2_amd64.deb  Could not resolve 'cdn-fastly.deb.debian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Fetched 623 kB in 58s (10.6 kB/s)
ERROR: Service 'daemon' failed to build: The command '/bin/sh -c set -ex;         if command -v a2enmod; then         a2enmod rewrite;     fi;         savedAptMark="$(apt-mark showmanual)";         apt-get update;     apt-get install -y --no-install-recommends         libcurl4-gnutls-dev     libjpeg62-turbo-dev         libpng-dev     libfreetype6-dev     ;       docker-php-ext-configure gd         --with-jpeg-dir=/usr         --with-png-dir=/usr     --with-freetype-dir=/usr   ;       docker-php-ext-install -j "$(nproc)"     gd     opcache     mbstring     iconv     mysqli     curl     pcntl     zip     ;       apt-mark auto '.*' > /dev/null;     apt-mark manual $savedAptMark;     ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so         | awk '/=>/ { print $3 }'         | sort -u         | xargs -r dpkg-query -S         | cut -d: -f1         | sort -u         | xargs -rt apt-mark manual;         apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false;     rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

 

庫下載失敗,重新構建

略。。。
Submodule 'arcanist' (https://github.com/phacility/arcanist.git) registered for path 'arcanist'
Submodule 'libphutil' (https://github.com/phacility/libphutil.git) registered for path 'libphutil'
Submodule 'phabricator' (https://github.com/phacility/phabricator.git) registered for path 'phabricator'
Cloning into '/var/www/arcanist'...
Cloning into '/var/www/libphutil'...
Cloning into '/var/www/phabricator'...
Submodule path 'arcanist': checked out 'cc850163f30c4697e925df0d6212469679600a2c'
Submodule path 'libphutil': checked out '39ed96cd818aae761ec92613a9ba0800824d0ab0'
Submodule path 'phabricator': checked out '33c534f9b74f5aa8c9491c875292ca31a4bdc84f'
Removing intermediate container e04cfef7d893
 ---> 00b9f283813b
Step 14/14 : ENV PATH "$PATH:/var/www/phabricator/bin"
 ---> Running in 5139e3dcf362
Removing intermediate container 5139e3dcf362
 ---> 394cd0b82c1f
Successfully built 394cd0b82c1f
Successfully tagged phabricator/phabricator:latest
WARNING: Image for service phabricator was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating phabricator_database_1 ... error

ERROR: for phabricator_database_1  Cannot start service database: driver failed programming external connectivity on endpoint phabricator_database_1 (acda7775d7f7a038bbc7d6602f26f316a8842e455043ede2989eeddc7794015d): Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use

ERROR: for database  Cannot start service database: driver failed programming external connectivity on endpoint phabricator_database_1 (acda7775d7f7a038bbc7d6602f26f316a8842e455043ede2989eeddc7794015d): Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use
ERROR: Encountered errors while bringing up the project.
[yeqiang@localhost phabricator]$ 
[yeqiang@localhost phabricator]$ docker images
REPOSITORY                TAG                  IMAGE ID            CREATED             SIZE
phabricator/phabricator   latest               394cd0b82c1f        30 seconds ago      686MB
phabricator/daemon        latest               409a17a7afbc        24 minutes ago      677MB
php                       7.2-apache-stretch   87811f8bfc2b        5 days ago          374MB
php                       7.2-cli-stretch      9fd38246df78        11 days ago         364MB
mariadb                   10.2                 2c326f321617        3 weeks ago         340MB
centos                    latest               0f3e07c0138f        2 months ago        220MB

終於構建成功,不過本地因爲安裝啓動了mysql導致端口衝突

 

創建docker-compose2.yml

version: '3'
services:
  phabricator:
    image: phabricator/phabricator
    volumes:
       - /usr/local/phabricator/config:/var/www/phabricator/conf/local
       - /usr/local/phabricator/repo:/var/repo
    ports:
       - 8888:8888
       - 81:80
    links:
      - database
  daemon:
    image: phabricator/daemon
    volumes:
       - /usr/local/phabricator/config:/var/www/phabricator/conf/local
       - /usr/local/phabricator/repo:/var/repo
    links:
      - database
  database:
    image: mariadb:10.2
    volumes:
       - /usr/local/phabricator/db-data:/var/lib/mysql
    ports:
      - 3307:3306
    environment:
      MYSQL_ROOT_PASSWORD: AhghaeG5 
volumes:
  config:
  repo:
  db-data:

創建對應目錄

sudo mkdir -p /usr/local/phabricator/config
sudo mkdir -p /usr/local/phabricator/db-data
sudo mkdir -p /usr/local/phabricator/repo

刪除掉之前啓動失敗的容器

[yeqiang@localhost phabricator]$ docker ps  -a
CONTAINER ID        IMAGE                     COMMAND                  CREATED             STATUS                        PORTS                                        NAMES
8485d6a7b367        phabricator/daemon        "docker-php-entrypoi…"   12 minutes ago      Exited (255) 12 minutes ago                                                phabricator_daemon_1
0c547bdb3667        phabricator/phabricator   "docker-php-entrypoi…"   12 minutes ago      Up 12 minutes                 0.0.0.0:8888->8888/tcp, 0.0.0.0:81->80/tcp   phabricator_phabricator_1
e20771d87a03        mariadb:10.2              "docker-entrypoint.s…"   12 minutes ago      Up 12 minutes                 0.0.0.0:3307->3306/tcp                       phabricator_database_1
[yeqiang@localhost phabricator]$ docker rm -f 8485d6a7b367
8485d6a7b367
[yeqiang@localhost phabricator]$ docker rm -f 0c547bdb3667
0c547bdb3667
[yeqiang@localhost phabricator]$ docker rm -f e20771d87a03
e20771d87a03
[yeqiang@localhost phabricator]$ 

創建配置內容如下

[yeqiang@localhost phabricator]$ cat config/exampleconfig.conf.php 
<?php

return array(
  'mysql.host' => 'database',
  'mysql.user' => 'root',
  'mysql.pass' => 'AhghaeG5',
);
?>
[yeqiang@localhost phabricator]$ cat config/ENVIRONMENT 
local/exampleconfig

啓動容器

[yeqiang@localhost phabricator]$ docker-compose -f docker-compose2.yml up
Creating phabricator_database_1 ... done
Creating phabricator_phabricator_1 ... done
Creating phabricator_daemon_1      ... done
Attaching to phabricator_database_1, phabricator_daemon_1, phabricator_phabricator_1
database_1     | 2019-12-04 08:53:29+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server  started.
database_1     | 2019-12-04 08:53:29+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
daemon_1       | [2019-12-04 08:53:29] PHLOG: 'Retrying database connection to "database" after connection failure (attempt 1; "AphrontConnectionQueryException"; error #2002): Attempt to connect to root@database failed with error #2002: Connection refused.' at [/var/www/phabricator/src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:135]
daemon_1       | [2019-12-04 08:53:29] PHLOG: 'Retrying database connection to "database" after connection failure (attempt 2; "AphrontConnectionQueryException"; error #2002): Attempt to connect to root@database failed with error #2002: Connection refused.' at [/var/www/phabricator/src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:135]
database_1     | 2019-12-04 08:53:29+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server  started.
daemon_1       | [2019-12-04 08:53:29] EXCEPTION: (PhabricatorClusterStrandedException) Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable.
daemon_1       | 
daemon_1       | AphrontConnectionQueryException: Attempt to connect to root@database failed with error #2002: Connection refused. at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:177]
daemon_1       | arcanist(), phabricator(), phutil()
daemon_1       |   #0 PhabricatorLiskDAO::raiseUnreachable(string, AphrontConnectionQueryException) called at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:134]
daemon_1       |   #1 PhabricatorLiskDAO::newClusterConnection(string, string, string) called at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:72]
daemon_1       |   #2 PhabricatorLiskDAO::establishLiveConnection(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:841]
daemon_1       |   #3 LiskDAO::establishConnection(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:518]
daemon_1       |   #4 LiskDAO::loadRawDataWhere(string, string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:478]
daemon_1       |   #5 LiskDAO::loadAllWhere(string, string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:19]
daemon_1       |   #6 PhabricatorConfigDatabaseSource::loadConfig(string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:7]
daemon_1       |   #7 PhabricatorConfigDatabaseSource::__construct(string) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:262]
daemon_1       |   #8 PhabricatorEnv::buildConfigurationSourceStack(boolean) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:95]
daemon_1       |   #9 PhabricatorEnv::initializeCommonEnvironment(boolean) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:75]
daemon_1       |   #10 PhabricatorEnv::initializeScriptEnvironment(boolean) called at [<phabricator>/scripts/init/lib.php:22]
daemon_1       |   #11 init_phabricator_script(array) called at [<phabricator>/scripts/init/init-script.php:9]
daemon_1       |   #12 require_once(string) called at [<phabricator>/scripts/__init_script__.php:3]
daemon_1       |   #13 require_once(string) called at [<phabricator>/scripts/daemon/manage_daemons.php:5]
phabricator_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
phabricator_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
phabricator_1  | [Wed Dec 04 08:53:29.907613 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.2.25 configured -- resuming normal operations
phabricator_1  | [Wed Dec 04 08:53:29.907637 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
phabricator_daemon_1 exited with code 255
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] mysqld (mysqld 10.2.29-MariaDB-1:10.2.29+maria~bionic) starting as process 1 ...
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Uses event mutexes
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Compressed tables use zlib 1.2.11
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Using Linux native AIO
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Number of pools: 1
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Using SSE2 crc32 instructions
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Completed initialization of buffer pool
database_1     | 2019-12-04  8:53:30 140126320637696 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Highest supported file format is Barracuda.
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: 128 out of 128 rollback segments are active.
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Creating shared tablespace for temporary tables
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: Waiting for purge to start
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] InnoDB: 5.7.28 started; log sequence number 17723340
database_1     | 2019-12-04  8:53:30 140126151747328 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
database_1     | 2019-12-04  8:53:30 140126151747328 [Note] InnoDB: Buffer pool(s) load completed at 191204  8:53:30
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] Plugin 'FEEDBACK' is disabled.
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] Server socket created on IP: '::'.
database_1     | 2019-12-04  8:53:30 140127042716992 [Warning] 'proxies_priv' entry '@% root@b3086ffb5e3a' ignored in --skip-name-resolve mode.
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] Reading of all Master_info entries succeeded
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] Added new Master_info '' to hash table
database_1     | 2019-12-04  8:53:30 140127042716992 [Note] mysqld: ready for connections.
database_1     | Version: '10.2.29-MariaDB-1:10.2.29+maria~bionic'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
phabricator_1  | 172.19.0.3:80 172.19.0.1 - - [04/Dec/2019:08:54:03 +0000] "GET / HTTP/1.1" 500 1715 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"
phabricator_1  | 172.19.0.3:80 172.19.0.1 - - [04/Dec/2019:08:54:03 +0000] "GET /favicon.ico HTTP/1.1" 500 1715 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"


 

訪問效果

未完待續。。。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章