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.
KPWMZFHZXW5CEWXXTB4JDAJLOX42UNGKFULA3FAGQJAPSTSTFNKAC hydra-server: ./scripts/start-hydra.shhydra-queue-runner: ./scripts/start-queue-runner.shhydra-evaluator: ./scripts/start-evaluator.shpostgres: ./scripts/start-postgres.sh
{ foreman, mkShell, hydra, netcat, postgresql95 }:{ doCheck ? true }:mkShell {buildInputs = [foreman (hydra.overrideAttrs (_: { inherit doCheck; })) netcat postgresql95];shellHook = ''export HYDRA_HOME="src/"mkdir -p .hydra-dataexport HYDRA_DATA="$(pwd)/.hydra-data"export HYDRA_DBI='dbi:Pg:dbname=hydra;host=localhost;'exec foreman start'';}
#!/bin/sh# wait for hydra-server to listenwhile ! nc -z localhost 3000; do sleep 1; doneexec hydra-evaluator
#!/bin/sh# wait for postgresql to listenwhile ! nc -z localhost 5432; do sleep 1; donecreatedb -h $(pwd)/.hydra-data/postgres hydrahydra-inithydra-create-user alice --password foobar --role adminexec hydra-server
#!/bin/shinitdb ./.hydra-data/postgresexec postgres -D ./.hydra-data/postgres -k $(pwd)/.hydra-data/postgres
#!/bin/sh# wait until hydra is listening on port 3000while ! nc -z localhost 3000; do sleep 1; donehydra-queue-runner