Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose environment for hotcrp #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mthz
Copy link

@mthz mthz commented Jul 9, 2018

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

@kohler
Copy link
Owner

kohler commented Jul 9, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants