Giter Club home page Giter Club logo

docker-phabricator's Introduction

phabricator on docker

This is a set of docker and docker-compose configuration for running phabricator.

Quick start

# clone this repository
git clone https://github.com/philpep/docker-phabricator
cd docker-phabricator

# clone phabricator repositories in ./src
git clone -b stable https://github.com/phacility/phabricator src/phabricator
git clone -b stable https://github.com/phacility/arcanist src/arcanist
git clone -b stable https://github.com/phacility/libphutil src/libphutil

# edit the .env file and change UID / GID to your own user and group id
# (this is required to have docker processes running with your uid/gid)
edit .env

# edit etc/local.json and set phabricator.base-uri security.alternate-file-domain as appropriate
edit etc/local.json

# then build docker images
docker-compose build

# then start php and mysql containers
docker-compose up -d php mysql

# then initialize the database
./bin/storage upgrade

# then start nginx and phd (phabricator daemons)
docker-compose up -d

# your phabricator instance is now running on port 8080 and you can point
# your ssl/reverse proxy on it.

Upgrades

# This will pull repositories, stop, upgrade database and start phabricator
./bin/upgrade

aphlict (aka notification server)

You should configure `notifications.servers`:

[
  {
    "type": "client",
    "host": "phab.example.com"
    "port": 8080,
    "protocol": "https",
    "path": "/ws/"
  },
  {
    "type": "admin",
    "host": "aphlict",
    "port": 22281,
    "protocol": "http"
  }
]

docker-phabricator's People

Contributors

arthurzenika avatar philpep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-phabricator's Issues

mysql error

i'm run docker build on mysql folder, error
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)

Cannot get it to work in Docker for Windows

I am trying to run it in windows 10. The containers for phd, mysql and aphlict cannot seem to start. I tried manually starting them using docker run and with that i could start phd and aphlict, but the mysql didnt start. I got the following error message:
standard_init_linux.go:207: exec user process caused "no such file or directory"

db not starting successfully

I noticed that on my installation (Docker version 19.03.3, build a872fc2f86) on Ubuntu 19.10, the db container kept failing. Examining the logs showed:

[ERROR] Could not open mysql.plugin table. Some plugins may be not loaded

After some digging, I found removing the --rpm option on mysql_install_db fixed this issue. Not sure what --rpm is needed for, so will look out for further issues.

Daemons not running

Hi, why my daemon not running shown on {url}/config/issue/daemons.not-running/
It said

The Phabricator daemons are not running, so Phabricator will not be able to perform background processing (including sending email, rebuilding search indexes, importing commits, cleaning up old data, and running builds).

Use bin/phd start to start daemons. See Managing Daemons with phd for more information.
Run this command:

phabricator/ $ ./bin/phd start

and when i try to start. it got -bash: ./bin/phd: No such file or directory coz there is no file.

how make it works? thanks

php image slight issues

A couple of things with the php image that I had to fix:

Firstly the directory for the tail didn't exist, so I added a mkdir -p to the ./php/phd

d=/var/tmp/phd/log
f=daemons.log
/src/phabricator/bin/phd start
mkdir -p $d
touch $d/$f
exec tail -F $d/$f

Secondly, phab daemons weren't started correctly. Logs showed a problem with the ps process:

COMMAND
ps -o pid,command -a -x -w -w -w

STDOUT
(empty)

STDERR
ps: unrecognized option: x
BusyBox v1.28.4 (2018-12-31 18:05:13 UTC) multi-call binary.

Simple fix, just added the procps to the ./php/Dockerfile :

    git \
    ...
    procps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.