hotcrp icon indicating copy to clipboard operation
hotcrp copied to clipboard

docker-compose environment for hotcrp

Open mthz opened this issue 6 years ago • 1 comments

Allows to run hotcrp within an docker environment. As docker basis phpdocker.io is used.

Start hotcrp in docker-environment

  1. Start docker compse

docker-compose up

  1. Only on first run: Initialize database
# attach to mysql docker 
docker exec -i -t hotcrp-database /bin/bash

# create database
# select no when asked for database creation, only fill database with scheme!!!!!
# ok -> hotcrp -> n -> Y
./lib/createdb.sh --dbuser=hotcrp,hotcrppwd --user=root --password=rootpwd
  1. control conf/options.php may add:
$Opt["dsn"] = "mysql://hotcrp:hotcrppwd@hotcrp-mysql:3306/hotcrp";
  1. Check connection

http://localhost:9000

mthz avatar Jul 09 '18 10:07 mthz

Hi,

Thanks for this. I generally don't accept features into hotcrp that I would not test or use, but I do appreciate that you've made a pull request. In this case, since no changes to hotcrp itself are required, why not make a separate repo? I could link there from the README.

Eddie

kohler avatar Jul 09 '18 13:07 kohler