naerymdan / docker-compose-phabricator Goto Github PK
View Code? Open in Web Editor NEWExtra light-weight docker installation of Phabricator with 3 containers
License: MIT License
Extra light-weight docker installation of Phabricator with 3 containers
License: MIT License
Hi, thanks for the work.
I have one issue, the daemons don't seem to be up after a docker-compose up
$ docker-compose ps
Name Command State Ports
----------------------------------------------------------------------------------------------------------------------
dockercomposephabricator_mariadb_1 /app-entrypoint.sh /run.sh Up 0.0.0.0:3306->3306/tcp
dockercomposephabricator_phd-pull_1 /entrypoint.sh PULL Exit 255
dockercomposephabricator_phd-task_1 /entrypoint.sh TASK Exit 255
dockercomposephabricator_phd-task_2 /entrypoint.sh TASK Exit 255
dockercomposephabricator_phd-trig_1 /entrypoint.sh TRIG Exit 255
dockercomposephabricator_php_1 /entrypoint.sh FPM Up 9000/tcp
dockercomposephabricator_web_1 nginx -g daemon off; Up 0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
And manually (as in README) running docker-compose scale phd-task=2
doesn't seem to work either as that seems to give the same error:
phd-task_2 | [2017-04-04 08:20:10] EXCEPTION: (PhabricatorClusterStrandedException) Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable. at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:140]
phd-task_2 | arcanist(head=stable, ref.stable=60aaee0ed3f5), phabricator(head=stable, ref.stable=2460755603cb), phutil(head=stable, ref.stable=f568eb7b9542)
phd-task_2 | #0 PhabricatorLiskDAO::raiseUnreachable(string) called at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:111]
phd-task_2 | #1 PhabricatorLiskDAO::newClusterConnection(string, string, string) called at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:64]
phd-task_2 | #2 PhabricatorLiskDAO::establishLiveConnection(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:1008]
phd-task_2 | #3 LiskDAO::establishConnection(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:516]
phd-task_2 | #4 LiskDAO::loadRawDataWhere(string, string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:476]
phd-task_2 | #5 LiskDAO::loadAllWhere(string, string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:18]
phd-task_2 | #6 PhabricatorConfigDatabaseSource::loadConfig(string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:7]
phd-task_2 | #7 PhabricatorConfigDatabaseSource::__construct(string) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:249]
phd-task_2 | #8 PhabricatorEnv::buildConfigurationSourceStack(boolean) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:95]
phd-task_2 | #9 PhabricatorEnv::initializeCommonEnvironment(boolean) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:75]
phd-task_2 | #10 PhabricatorEnv::initializeScriptEnvironment(boolean) called at [<phabricator>/scripts/init/lib.php:22]
phd-task_2 | #11 init_phabricator_script(array) called at [<phabricator>/scripts/init/init-script.php:9]
phd-task_2 | #12 require_once(string) called at [<phabricator>/scripts/__init_script__.php:3]
phd-task_2 | #13 require_once(string) called at [<phabricator>/scripts/daemon/manage_daemons.php:5]
phd-task_2 | Waiting for configuration
phd-task_2 | Bootup Complete
phd-task_2 | [2017-04-04 08:24:11] EXCEPTION: (PhabricatorClusterStrandedException) Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable. at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:140]
phd-task_1 | Waiting for configuration
phd-task_1 | Bootup Complete
phd-task_1 | [2017-04-04 08:20:09] EXCEPTION: (PhabricatorClusterStrandedException) Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable. at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:140]
phd-task_1 | arcanist(head=stable, ref.stable=60aaee0ed3f5), phabricator(head=stable, ref.stable=2460755603cb), phutil(head=stable, ref.stable=f568eb7b9542)
phd-task_1 | #0 PhabricatorLiskDAO::raiseUnreachable(string) called at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:111]
phd-task_1 | #1 PhabricatorLiskDAO::newClusterConnection(string, string, string) called at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:64]
phd-task_1 | #2 PhabricatorLiskDAO::establishLiveConnection(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:1008]
phd-task_1 | #3 LiskDAO::establishConnection(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:516]
phd-task_1 | #4 LiskDAO::loadRawDataWhere(string, string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:476]
phd-task_1 | #5 LiskDAO::loadAllWhere(string, string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:18]
phd-task_1 | #6 PhabricatorConfigDatabaseSource::loadConfig(string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:7]
phd-task_1 | #7 PhabricatorConfigDatabaseSource::__construct(string) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:249]
phd-task_1 | #8 PhabricatorEnv::buildConfigurationSourceStack(boolean) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:95]
phd-task_1 | #9 PhabricatorEnv::initializeCommonEnvironment(boolean) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:75]
phd-task_1 | #10 PhabricatorEnv::initializeScriptEnvironment(boolean) called at [<phabricator>/scripts/init/lib.php:22]
phd-task_1 | #11 init_phabricator_script(array) called at [<phabricator>/scripts/init/init-script.php:9]
phd-task_1 | #12 require_once(string) called at [<phabricator>/scripts/__init_script__.php:3]
phd-task_1 | #13 require_once(string) called at [<phabricator>/scripts/daemon/manage_daemons.php:5]
phd-task_1 | Waiting for configurati
docker exec -it dockercomposephabricator_php_1 sh
/ # ping mariadb
PING mariadb (172.19.0.2): 56 data bytes
64 bytes from 172.19.0.2: seq=0 ttl=64 time=0.100 ms
64 bytes from 172.19.0.2: seq=1 ttl=64 time=0.112 ms
64 bytes from 172.19.0.2: seq=2 ttl=64 time=0.146 ms
my db seems to be up and the deamon configs have 'mariadb' as their db host but they don't seem to be able to ping the db.
This repo is slightly outdated so maybe I am missing something.
Any idea?
Thanks
Hi,
I've downloaded your docker compose file (the whole project), and while running docker-compose up
I get the following error:
ERROR: Service 'php' failed to build: The command '/bin/sh -c ln -s /usr/bin/php7 /usr/bin/php && rm -rf /etc/php7/php-fpm.d && mkdir -p /srv && mkdir -p /data && mkdir -p /repo && mkdir -p /usr/local/sbin && mkdir -p /var/tmp/phd/log && ln -fs /proc/self/fd/2 /var/tmp/phd/log/daemons.log && chmod +x /entrypoint.sh' returned a non-zero code: 1```
It looks like php gets installed twice.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.