study-docker-repro-longevity/workflow/scripts/ecg_wrapper.oar.bash
2024-07-20 15:41:56 +02:00

18 lines
370 B
Bash

#!/bin/bash
set -xe
# To "activate" nix on the node
export PATH=~/.local/bin:$PATH
# Install Docker on the node (-t is to store the images on /tmp because it has more disk)
# https://www.grid5000.fr/w/Docker
g5k-setup-docker -t
handler() {
echo "Caught checkpoint signal at: `date`"; echo "Terminating."; exit 0;
}
trap handler SIGUSR2
nix develop --command $@