Skip to content

docker-compose environment for hotcrp#140

Open
mthz wants to merge 1 commit intokohler:masterfrom
mthz:ft_docker
Open

docker-compose environment for hotcrp#140
mthz wants to merge 1 commit intokohler:masterfrom
mthz:ft_docker

Conversation

@mthz
Copy link
Copy Markdown

@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
Copy Markdown
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