Skip to content

Commit a1755e1

Browse files
committed
Update devcontainer
1 parent 9d00e82 commit a1755e1

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"vscode": {
1111
"extensions": [
1212
"james-yu.latex-workshop",
13-
"iterative.dvc",
13+
"lakefs.lakefs-dvc",
1414
"esbenp.pretter-vscode",
1515
"ms-python.vscode-pylance",
1616
"streetsidesoftware.code-spell-checker",
@@ -41,9 +41,8 @@
4141
}
4242
}
4343
},
44-
"mounts": [
45-
"source=${localEnv:HOME}/.calkit,target=/home/vscode/.calkit,type=bind,consistency=cached"
46-
],
47-
"updateContentCommand": "while ! docker info > /dev/null 2>&1; do sleep 1; done && conda init bash && . /opt/conda/bin/activate && calkit check envs",
48-
"postStartCommand": ". /opt/conda/bin/activate; mkdir -p $HOME/.cache; calkit config github-codespace > $HOME/.cache/calkit-config.log 2>&1 || true; calkit pull > $HOME/.cache/calkit-pull.log 2>&1 || true"
44+
"initializeCommand": "mkdir -p .calkit/temp && echo '*' > .calkit/temp/.gitignore && bash -c 'echo \"CALKIT_TOKEN=$(calkit config get token)\" > .calkit/temp/.env' && bash -c 'echo \"CALKIT_DVC_TOKEN=$(calkit config get dvc_token)\" >> .calkit/temp/.env'",
45+
"postCreateCommand": "bash $INIT_SCRIPTS_DIR/post-create.sh",
46+
"updateContentCommand": "bash $INIT_SCRIPTS_DIR/update-content.sh",
47+
"postStartCommand": "bash $INIT_SCRIPTS_DIR/post-start.sh"
4948
}

0 commit comments

Comments
 (0)