Code Monkey home page Code Monkey logo

docker-phabricator's Introduction

Docker container for Phabricator

This image is based on dockerfiles/centos-lamp and provides a working instance of phabricator.

A built image is available on the public docker registry with the name fredericlb/phabricator.

Features

  • Check if MySQL database is instanciated and run the db upgrade script if it's not
  • Automatically runs the phd daemon with supervisord

Ports and mounts points

  • Apache is running on port 80
  • You need to pass three env vars :
    • MYSQL_HOST
    • MYSQL_USER
    • MYSQL_PASS

Configuration

You shouldn't need to change the image to configure phabricator as nearly everything can be done from the UI.

docker-phabricator's People

Contributors

fredericlb avatar

Stargazers

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

Watchers

 avatar  avatar

docker-phabricator's Issues

Problem when mounting dirs

My container fails when I mount directories, but works fine when I don't mount any. When I try to access phabricator, it fails to connect to mysql and I get this error:

Attempt to connect to root@localhost failed with error #2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111).

Any ideas of how to fix this? Below is the output of running my container.

core@core-01 ~/share/docker-phabricator $ sudo docker run -p 80:80 -v $PWD/mysql:/var/lib/mysql -v $PWD/repo:/var/repo test-phab
/usr/lib/python2.6/site-packages/supervisor/options.py:295: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  'Supervisord is running as root and it is searching '
2014-05-24 14:27:05,434 CRIT Supervisor running as root (no user in config file)
2014-05-24 14:27:05,469 INFO RPC interface 'supervisor' initialized
2014-05-24 14:27:05,469 CRIT Server 'inet_http_server' running without any HTTP authentication checking
2014-05-24 14:27:05,470 INFO supervisord started with pid 1
2014-05-24 14:27:06,473 INFO spawned: 'check_db' with pid 15
2014-05-24 14:27:06,477 INFO spawned: 'sshd' with pid 16
2014-05-24 14:27:06,482 INFO spawned: 'mysql' with pid 17
2014-05-24 14:27:06,489 INFO spawned: 'phd_daemons' with pid 18
2014-05-24 14:27:06,494 INFO spawned: 'httpd' with pid 19
2014-05-24 14:27:07,286 INFO exited: check_db (exit status 1; not expected)
2014-05-24 14:27:07,298 INFO exited: phd_daemons (exit status 255; not expected)
2014-05-24 14:27:07,601 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-05-24 14:27:07,602 INFO success: mysql entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-05-24 14:27:07,604 INFO success: httpd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-05-24 14:27:07,607 INFO exited: mysql (exit status 0; expected)
2014-05-24 14:27:08,610 INFO spawned: 'check_db' with pid 127
2014-05-24 14:27:08,613 INFO spawned: 'phd_daemons' with pid 128
2014-05-24 14:27:08,874 INFO exited: check_db (exit status 1; not expected)
2014-05-24 14:27:08,880 INFO exited: phd_daemons (exit status 255; not expected)
2014-05-24 14:27:10,886 INFO spawned: 'check_db' with pid 130
2014-05-24 14:27:10,888 INFO spawned: 'phd_daemons' with pid 131
2014-05-24 14:27:11,129 INFO exited: phd_daemons (exit status 255; not expected)
2014-05-24 14:27:11,134 INFO exited: check_db (exit status 1; not expected)
2014-05-24 14:27:14,141 INFO spawned: 'check_db' with pid 133
2014-05-24 14:27:14,145 INFO spawned: 'phd_daemons' with pid 134
2014-05-24 14:27:14,385 INFO exited: check_db (exit status 1; not expected)
2014-05-24 14:27:14,388 INFO gave up: check_db entered FATAL state, too many start retries too quickly
2014-05-24 14:27:14,388 INFO exited: phd_daemons (exit status 255; not expected)
2014-05-24 14:27:15,391 INFO gave up: phd_daemons entered FATAL state, too many start retries too quickly
^C2014-05-24 14:28:46,333 WARN received SIGINT indicating exit request
2014-05-24 14:28:46,373 INFO waiting for sshd, httpd to die
2014-05-24 14:28:46,438 INFO stopped: httpd (exit status 0)
2014-05-24 14:28:48,446 INFO stopped: sshd (exit status 255)

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.