Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
.devcontainer/downstream-archlinux-latest/devcontainer.json: Use onCr…
Browse files Browse the repository at this point in the history
…eateCommand, updateContentCommand
  • Loading branch information
mkoeppe committed Aug 20, 2022
1 parent fbfab5e commit 09289e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .devcontainer/downstream-archlinux-latest/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
{
"name": "archlinux:latest downstream Sage",
"image": "archlinux:latest",
// Run commands after the container is created.
// Create an empty bashrc to avoid the error "No such file or directory" when opening a terminal.
"postCreateCommand": "EXTRA_SYSTEM_PACKAGES='sagemath sagemath-doc' EXTRA_SAGE_PACKAGES='notebook pip' .devcontainer/post_create.sh && touch ~/.bashrc",
"onCreateCommand": "EXTRA_SYSTEM_PACKAGES='sagemath sagemath-doc' EXTRA_SAGE_PACKAGES='notebook pip' .devcontainer/post_create.sh && touch ~/.bashrc",
// Run commands after the container is started.
// There's no SAGE_LOCAL, so remove the symlink 'prefix'.
"postStartCommand": "rm -f prefix && ln -sf /usr venv",
"updateContentCommand": "rm -f prefix && ln -sf /usr venv",
"extensions": [
"ms-python.python"
]
Expand Down

0 comments on commit 09289e5

Please sign in to comment.