image: "fdiotools/builder-debian10:prod-x86_64"
labels: "builder-debian10-prod-x86_64"
prefix: "builder-debian10-prod-x86_64"
- hostVolumes: "/tmp/ccache.debian10:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.debian10:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-debian10:sandbox-x86_64"
labels: "builder-debian10-sandbox-x86_64"
prefix: "builder-debian10-sandbox-x86_64"
- hostVolumes: "/tmp/ccache.debian10:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.debian10:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-debian11:prod-x86_64"
labels: "builder-debian11-prod-x86_64"
prefix: "builder-debian11-prod-x86_64"
- hostVolumes: "/tmp/ccache.debian11:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.debian11:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-debian11:sandbox-x86_64"
labels: "builder-debian11-sandbox-x86_64"
prefix: "builder-debian11-sandbox-x86_64"
- hostVolumes: "/tmp/ccache.debian11:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.debian11:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
- image: "fdiotools/builder-ubuntu2004:prod-aarch64"
labels: "builder-ubuntu2004-prod-aarch64"
prefix: "builder-ubuntu2004-prod-aarch64"
- hostVolumes: "/tmp/ccache.ubuntu2004:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2004:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2004:prod-x86_64"
labels: "builder-ubuntu2004-prod-x86_64"
prefix: "builder-ubuntu2004-prod-x86_64"
- hostVolumes: "/tmp/ccache.ubuntu2004:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2004:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
- image: "fdiotools/builder-ubuntu2004:sandbox-aarch64"
labels: "builder-ubuntu2004-sandbox-aarch64"
prefix: "builder-ubuntu2004-sandbox-aarch64"
- hostVolumes: "/tmp/ccache.ubuntu2004:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2004:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2004:sandbox-x86_64"
labels: "builder-ubuntu2004-sandbox-x86_64"
prefix: "builder-ubuntu2004-sandbox-x86_64"
- hostVolumes: "/tmp/ccache.ubuntu2004:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2004:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
- image: "fdiotools/builder-ubuntu2204:prod-aarch64"
labels: "builder-ubuntu2204-prod-aarch64"
prefix: "builder-ubuntu2204-prod-aarch64"
- hostVolumes: "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2204:prod-x86_64"
labels: "builder-ubuntu2204-prod-x86_64"
prefix: "builder-ubuntu2204-prod-x86_64"
- hostVolumes: "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
- image: "fdiotools/builder-ubuntu2204:sandbox-aarch64"
labels: "builder-ubuntu2204-sandbox-aarch64"
prefix: "builder-ubuntu2204-sandbox-aarch64"
- hostVolumes: "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2204:sandbox-x86_64"
labels: "builder-ubuntu2204-sandbox-x86_64"
prefix: "builder-ubuntu2204-sandbox-x86_64"
- hostVolumes: "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2004:prod-aarch64"
labels: "csit-builder-ubuntu2004-prod-aarch64"
prefix: "csit-builder-ubuntu2004-prod-aarch64"
+ hostVolumes: "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2004:prod-x86_64"
labels: "csit-builder-ubuntu2004-prod-x86_64"
prefix: "csit-builder-ubuntu2004-prod-x86_64"
+ hostVolumes: "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2004:sandbox-aarch64"
labels: "csit-builder-ubuntu2004-sandbox-aarch64"
prefix: "csit-builder-ubuntu2004-sandbox-aarch64"
+ hostVolumes: "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2004:sandbox-x86_64"
labels: "csit-builder-ubuntu2004-sandbox-x86_64"
prefix: "csit-builder-ubuntu2004-sandbox-x86_64"
+ hostVolumes: "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2204:prod-aarch64"
labels: "csit-builder-ubuntu2204-prod-aarch64"
prefix: "csit-builder-ubuntu2204-prod-aarch64"
- hostVolumes: "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2204:prod-x86_64"
labels: "csit-builder-ubuntu2204-prod-x86_64"
prefix: "csit-builder-ubuntu2204-prod-x86_64"
- hostVolumes: "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2204:sandbox-aarch64"
labels: "csit-builder-ubuntu2204-sandbox-aarch64"
prefix: "csit-builder-ubuntu2204-sandbox-aarch64"
- hostVolumes: "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
image: "fdiotools/builder-ubuntu2204:sandbox-x86_64"
labels: "csit-builder-ubuntu2204-sandbox-x86_64"
prefix: "csit-builder-ubuntu2204-sandbox-x86_64"
- hostVolumes: "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ hostVolumes:
+ - "/tmp/ccache.ubuntu2204:/scratch/ccache"
+ - "/scratch/nomad:/scratch/nomad"
long_line="************************************************************************"
downloads_cache="/root/Downloads"
+# Requires all nomad client machines to run the following command
+# and mount /scratch/nomad into the docker container:
+# sudo mkdir -p /scratch/nomad && echo "$(hostname)-$(uname -m)" | sudo tee /scratch/nomad/nomad-client
+nomad_client_file="/scratch/nomad/nomad-client"
+if [ -f "$nomad_client_file" ] ; then
+ NOMAD_CLIENT="$(cat $nomad_client_file)"
+else
+ NOMAD_CLIENT="Unknown"
+fi
+
# Node info
echo "$long_line"
echo "Executor Runtime Attributes:"
echo "OS: $OS_ID-$OS_VERSION_ID"
echo "Arch: $OS_ARCH"
-echo "Nomad Hostname: $(grep search /etc/resolv.conf | cut -d' ' -f2 | head -1)"
+echo "Nomad Client Hostname: $NOMAD_CLIENT"
echo "Container ID: $(hostname)"
echo "$long_line"