forked from c3d2/nix-config
flake.nix: parallelize copying in nomad-job-*
This commit is contained in:
parent
93fc2736bb
commit
52dd8af180
|
@ -435,7 +435,7 @@
|
|||
for h in server9 server10 ; do
|
||||
echo Sharing with $h
|
||||
ssh root@$h.cluster.zentralwerk.org -- \
|
||||
bash -e <<EOF
|
||||
bash -e <<EOF &
|
||||
nix copy --from https://hydra.hq.c3d2.de $JOB
|
||||
mkdir -p /glusterfs/fast/microvms/${name}
|
||||
chown microvm:kvm /glusterfs/fast/microvms/${name}
|
||||
|
@ -445,6 +445,7 @@
|
|||
ln -sfT $JOB /nix/var/nix/gcroots/microvm/${name}
|
||||
EOF
|
||||
done
|
||||
wait
|
||||
|
||||
echo Now starting the job
|
||||
ssh root@hydra.serv.zentralwerk.org -- \
|
||||
|
|
Loading…
Reference in New Issue
Block a user