Use custom ports so hydra and postgres can run in environments where the default ports are in use already.
LEQWZ3IJUNYXLBLYGRS5MJMXLSM5YHTMC2GJLVLHVLQGXMKUHADAC
RXJZO7EV5JTZHFIVF7Y3B5A3NIGOPOQQHBWMVFSJFLBDS6MJL6HAC
RWNXH3H26EQHKJNMP4DUJCJKUYQBMV347234ZLE26SIFTVLSUWXQC
KPWMZFHZXW5CEWXXTB4JDAJLOX42UNGKFULA3FAGQJAPSTSTFNKAC
export HYDRA_DBI='dbi:Pg:dbname=hydra;host=localhost;'
export HYDRA_DBI='dbi:Pg:dbname=hydra;host=localhost;port=64444'
while ! nc -z localhost 3000; do sleep 1; done
while ! nc -z localhost 63333; do sleep 1; done
exec hydra-evaluator
touch .hydra-data/hydra.confHYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-evaluator
touch .hydra-data/hydra.conf
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-evaluator
while ! nc -z localhost 5432; do sleep 1; done
while ! nc -z localhost 64444; do sleep 1; done
createdb -h $(pwd)/.hydra-data/postgres hydra
createdb -h $(pwd)/.hydra-data/postgres -p 64444 hydra
exec hydra-server
touch .hydra-data/hydra.confHYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-server --port 63333
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-server --port 63333
exec postgres -D ./.hydra-data/postgres -k $(pwd)/.hydra-data/postgres
exec postgres -D ./.hydra-data/postgres -k $(pwd)/.hydra-data/postgres -p 64444
# wait until hydra is listening on port 3000while ! nc -z localhost 3000; do sleep 1; done
# wait until hydra is listening on port 3000
# wait until hydra is listening on port 63333while ! nc -z localhost 63333; do sleep 1; done
# wait until hydra is listening on port 63333
hydra-queue-runner
touch .hydra-data/hydra.confHYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-queue-runner
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-queue-runner