Skip to content

Commit

Permalink
undo accidental delete
Browse files Browse the repository at this point in the history
  • Loading branch information
elazarg committed Aug 6, 2024
1 parent a51ce03 commit a04571f
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 @@ -45,7 +45,7 @@ VENV_BIN="${GUEST_HOME}/.venv/bin"

yaml_file="${INSTANCE_DIR}/user-data.yaml"
cat > ${yaml_file} <<EOF
#D
#cloud-config
# For the password.
# user: "ubuntu"
Expand Down Expand Up @@ -87,6 +87,7 @@ write_files:
cat ${EXPERIMENT_PATH}/args.txt | xargs python ${EXPERIMENT_PATH}/vm.py
runcmd:
- sudo swapoff -a
- sudo chown -R ubuntu:ubuntu ${GUEST_HOME}
- [su, ubuntu, -c, "python3 -m venv ${GUEST_HOME}/.venv"]
- [su, ubuntu, -c, "${VENV_BIN}/pip install -r ${PROJECT_DIR}/checkpoint/requirements.txt"]
Expand Down

0 comments on commit a04571f

Please sign in to comment.