jumbojett / docker-elgg-dev

Elgg development environment on docker.
Apache License 2.0
2 stars 4 forks source link

docker-elgg-dev

Elgg development environment on docker.

Quick start

  1. Download or clone the Elgg version you want to work with.
  2. Run the docker image mounting Elgg as the volume /app. If you're on Windows or OS X and use boot2docker, remember it mounts your C:\Users or /Users directory in the dev VM, so adjust paths accordingly.
  3. There are a number of environment variables that affect how the the container is built. See below for a list.
  4. After the container is built, the credentials for Elgg and MySQL are printed if they weren't supplied via enviroment variables.
  5. Depending on how you're running docker, you may need to expose ports. You can easily expose all ports by using docker run -P ....
  6. Open the docker vm's IP address and port in your browser. If you're using Kitematic, just click on the preview image and it will open for you. You can also browse to /phpmyadmin for a phpmyadmin installation. Check the docker screen for the mysql root password.

Environment Vars

Setting environment vars with -e VAR="value" in the run command affects the behavior of the installation. If none are given, defaults are used and output on the screen.

Example

Replace /path/to/elgg/clone/ with the actual path to you Elgg clone. Note that this will overwrite your settings.php and htaccess files!

docker run -p 8080:80 -e REINSTALL=1 -e ELGG_PASSWORD='asdfjkl' -v /path/to/elgg/clone/:/app jumbojett/elgg-dev-environment