From 8e464c9facc3ce0249f1972fa298d8320c1a3b2b Mon Sep 17 00:00:00 2001 From: Eddy Zhou Date: Sat, 14 Sep 2024 18:14:17 -0400 Subject: [PATCH] more one-time setup --- pages/onboarding/asd_watcloud_dev.mdx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pages/onboarding/asd_watcloud_dev.mdx b/pages/onboarding/asd_watcloud_dev.mdx index 2e157e4..a967476 100644 --- a/pages/onboarding/asd_watcloud_dev.mdx +++ b/pages/onboarding/asd_watcloud_dev.mdx @@ -135,6 +135,22 @@ watcloud_slurm_node$ touch ~/.ssh/authorized_keys watcloud_slurm_node$ nano ~/.ssh/authorized_keys (paste you rpublic key into here) ``` +### [Host Machine] Add the following to your bashrc in your SLURM node + +```bash +watcloud_slurm_node$ nano ~/.bashrc +``` + +Add the following to the end of your `~/.bashrc` file. + +```bash +if [[ "$(hostname)" == *"slurm"* ]]; then + export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/tmp/run} + export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-/tmp/config} + export DOCKER_HOST="unix://${XDG_RUNTIME_DIR}/docker.sock" +fi +``` + ### [Local Machine] Build the Computer you desire! Use your favorite text editor to edit `wato_asd_tooling/session_config.sh`.