Skip to content

Commit 6b9ba27

Browse files
committed
remove the chown, and the Hugging Face mount
Signed-off-by: Keiven Chang <keivenchang@users.noreply.github.com>
1 parent 67a3d78 commit 6b9ba27

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
"source=dynamo-bashhistory,target=/home/ubuntu/.commandhistory,type=volume",
7878
"source=dynamo-precommit-cache,target=/home/ubuntu/.cache/pre-commit,type=volume",
7979
// Default mounts
80-
"source=/tmp/,target=/tmp/,type=bind",
81-
"source=${localEnv:HOME}/.cache/huggingface,target=/home/ubuntu/.cache/huggingface,type=bind"
80+
"source=/tmp/,target=/tmp/,type=bind"
81+
// Uncomment this to reuse your Hugging Face cache
82+
//"source=${localEnv:HOME}/.cache/huggingface,target=/home/ubuntu/.cache/huggingface,type=bind"
8283
]
8384
}

.devcontainer/post-create.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ retry() {
4242

4343
set -x
4444

45-
# Changing permission to match local user since volume mounts default to root ownership
46-
# Note: sudo is used here because the volume mount may have root ownership
47-
mkdir -p $HOME/.cache
48-
sudo chown -R ubuntu:ubuntu $HOME/.cache $HOME/dynamo
49-
5045
# Pre-commit hooks
5146
cd $HOME/dynamo && pre-commit install && retry pre-commit install-hooks
5247
pre-commit run --all-files || true # don't fail the build if pre-commit hooks fail

0 commit comments

Comments
 (0)