study-docker-repro-longevity/workflow/scripts/ecg_wrapper.oar.bash
2024-07-21 16:13:52 +02:00

22 lines
384 B
Bash
Executable File

#!/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
cd $1
shift
nix develop --command $@