Add datacenter node setup scripts (#5517)

automerge
This commit is contained in:
TristanDebrunner
2019-08-22 13:19:49 -06:00
committed by Grimes
parent 63d62c33c6
commit 51cf559ce1
12 changed files with 273 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
HERE="$(dirname "$0")"
# shellcheck source=net/datacenter-node-install/utils.sh
source "$HERE"/utils.sh
ensure_env || exit 1
set -xe
"$HERE"/setup-cuda.sh
# setup persistence mode across reboots
TMPDIR="$(mktemp)"
mkdir -p "$TMPDIR"
if pushd "$TMPDIR"; then
tar -xvf /usr/share/doc/NVIDIA_GLX-1.0/sample/nvidia-persistenced-init.tar.bz2
./nvidia-persistenced-init/install.sh systemd
popd
rm -rf "$TMPDIR"
fi