forked from lix-project/hydra
Merge pull request #802 from grahamc/run-command-hacking
Development-time improvements
This commit is contained in:
commit
dd0145a7f4
|
@ -100,7 +100,7 @@ $ foreman start
|
||||||
Have a look at the [Procfile](./Procfile) if you want to see how the processes are being started. In order to avoid
|
Have a look at the [Procfile](./Procfile) if you want to see how the processes are being started. In order to avoid
|
||||||
conflicts with services that might be running on your host, hydra and postgress are started on custom ports:
|
conflicts with services that might be running on your host, hydra and postgress are started on custom ports:
|
||||||
|
|
||||||
- hydra-server: 63333
|
- hydra-server: 63333 with the username "alice" and the password "foobar"
|
||||||
- postgresql: 64444
|
- postgresql: 64444
|
||||||
|
|
||||||
Note that this is only ever meant as an ad-hoc way of executing Hydra during development. Please make use of the
|
Note that this is only ever meant as an ad-hoc way of executing Hydra during development. Please make use of the
|
||||||
|
|
|
@ -3,5 +3,4 @@
|
||||||
# wait for hydra-server to listen
|
# wait for hydra-server to listen
|
||||||
while ! nc -z localhost 63333; do sleep 1; done
|
while ! nc -z localhost 63333; do sleep 1; done
|
||||||
|
|
||||||
touch .hydra-data/hydra.conf
|
|
||||||
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-evaluator
|
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-evaluator
|
||||||
|
|
|
@ -8,5 +8,11 @@ createdb -h $(pwd)/.hydra-data/postgres -p 64444 hydra
|
||||||
hydra-init
|
hydra-init
|
||||||
hydra-create-user alice --password foobar --role admin
|
hydra-create-user alice --password foobar --role admin
|
||||||
|
|
||||||
touch .hydra-data/hydra.conf
|
if [ ! -f ./.hydra-data/hydra.conf ]; then
|
||||||
|
echo "Creating a default hydra.conf"
|
||||||
|
cat << EOF > .hydra-data/hydra.conf
|
||||||
|
# test-time instances likely don't want to bootstrap nixpkgs from scratch
|
||||||
|
use-substitutes = true
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-dev-server --port 63333
|
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-dev-server --port 63333
|
||||||
|
|
|
@ -3,5 +3,4 @@
|
||||||
# wait for hydra-server to listen
|
# wait for hydra-server to listen
|
||||||
while ! nc -z localhost 63333; do sleep 1; done
|
while ! nc -z localhost 63333; do sleep 1; done
|
||||||
|
|
||||||
touch .hydra-data/hydra.conf
|
|
||||||
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-notify
|
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-notify
|
||||||
|
|
|
@ -3,5 +3,4 @@
|
||||||
# wait until hydra is listening on port 63333
|
# wait until hydra is listening on port 63333
|
||||||
while ! nc -z localhost 63333; do sleep 1; done
|
while ! nc -z localhost 63333; do sleep 1; done
|
||||||
|
|
||||||
touch .hydra-data/hydra.conf
|
NIX_REMOTE_SYSTEMS="" HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-queue-runner
|
||||||
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-queue-runner
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ use Hydra::Helper::AddBuilds;
|
||||||
use IO::Select;
|
use IO::Select;
|
||||||
|
|
||||||
STDERR->autoflush(1);
|
STDERR->autoflush(1);
|
||||||
|
STDOUT->autoflush(1);
|
||||||
binmode STDERR, ":encoding(utf8)";
|
binmode STDERR, ":encoding(utf8)";
|
||||||
|
|
||||||
my $config = getHydraConfig();
|
my $config = getHydraConfig();
|
||||||
|
|
Loading…
Reference in a new issue