forked from lix-project/hydra
07a4465260
Use custom ports so hydra and postgres can run in environments where the default ports are in use already.
12 lines
318 B
Bash
Executable file
12 lines
318 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# wait for postgresql to listen
|
|
while ! nc -z localhost 64444; do sleep 1; done
|
|
|
|
createdb -h $(pwd)/.hydra-data/postgres -p 64444 hydra
|
|
|
|
hydra-init
|
|
hydra-create-user alice --password foobar --role admin
|
|
|
|
touch .hydra-data/hydra.conf
|
|
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-server --port 63333
|