forked from lix-project/hydra
d1237c315d
runHyda automatically starts hydra and postgres: ``` $ nix-shell -A runHydra ``` The shell receives hydra from the working copy as buildInput. Running hydra, queue-runner, evaluator and postgres is managed by foreman (https://github.com/ddollar/foreman) and configured in `Procfile`.
12 lines
223 B
Bash
Executable file
12 lines
223 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# wait for postgresql to listen
|
|
while ! nc -z localhost 5432; do sleep 1; done
|
|
|
|
createdb -h $(pwd)/.hydra-data/postgres hydra
|
|
|
|
hydra-init
|
|
hydra-create-user alice --password foobar --role admin
|
|
|
|
exec hydra-server
|