It is recommended to get the fully setup up version from docker hub by running
docker pull kwarc/mathhub
For the web server (will start on localhost:9999)
docker run -d -p 9999:80 kwarc/mathhub start-mh
For internal configuration/access (i.e. bash)
docker run -t -i kwarc/mathhub /bin/bash
For developing on the machine directly while server is active (to see results of changes immediately)
docker run -ti -p 9999:80 kwarc/mathhub start-mhd
An alternative option is to use shared files, and develop on the local machine, e.g.:
docker run -d -p 9999:80 -v ~/MathHub/sites/all/modules/:/var/www/MathHub/sites/all/modules/ kwarc/mathhub start-mh
The preconfigured administration account is admin
with default password admin
(please change the password if making the instance publicly accessible).
Do
docker build .
in the top directory.
Then run the web server (see above) and go to localhost:9999/install.php to finish setup.
Finally, configure as described here.