Skip to content

Commit

Permalink
share .ssh folder
Browse files Browse the repository at this point in the history
  • Loading branch information
elazarg committed Aug 4, 2024
1 parent b4d4566 commit 9b7685c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ package_upgrade: false
mounts:
- [${EXPERIMENT_TAG}, /mnt/${EXPERIMENT_TAG}, 9p]
- [${CHECKPOINT_LIB}, /mnt/${CHECKPOINT_LIB}, 9p]
- [ssh, ${GUEST_HOME}/.ssh, 9p]
- [ssh, /mnt/.ssh, 9p]
write_files:
- path: ${GUEST_HOME}/.bashrc
Expand All @@ -78,6 +78,7 @@ write_files:
runcmd:
- sudo chown -R ubuntu:ubuntu ${GUEST_HOME}
- [su, ubuntu, -c, "cp -r /mnt/.ssh ${GUEST_HOME}/.ssh"]
- [su, ubuntu, -c, "cp -r /mnt/${EXPERIMENT_TAG}/* ${GUEST_HOME}/"]
- [su, ubuntu, -c, "python3 -m venv ${GUEST_HOME}/.venv"]
- [su, ubuntu, -c, "${VENV_BIN}/pip install -r /mnt/${CHECKPOINT_LIB}/requirements.txt"]
Expand Down

0 comments on commit 9b7685c

Please sign in to comment.