Skip to content

Commit

Permalink
Update devcontainer.json to use pixi
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Nov 12, 2024
1 parent 598ab20 commit a85a1a9
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"build": {
"context": "..",
"dockerfile": "Dockerfile",
"dockerfile": "Dockerfile"
},

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/mamba-org/devcontainer-features/micromamba:1": {
"envFile": "/opt/environment.yml",
},
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},

// Put `.pixi` folder in a mounted volume of a case-insensitive filesystem.
"mounts": ["source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume"],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
"postCreateCommand": "sudo chown vscode .pixi && git lfs pull --include='pixi.lock' && pixi install --environment=test-cpu",

// Configure tool-specific properties.
// "customizations": {},
Expand All @@ -28,7 +29,23 @@
// "remoteUser": "root"

// VSCode extensions
"extensions": [
"ms-python.python",
],
"customizations": {
"vscode": {
"settings": {
"python.pythonPath": "/workspaces/jaxsim/.pixi/envs/test-cpu/bin/python",
"python.defaultInterpreterPath": "/workspaces/jaxsim/.pixi/envs/test-cpu/bin/python",
"python.terminal.activateEnvironment": true,
"python.terminal.activateEnvInCurrentTerminal": true
},
"extensions": [
"ms-python.python",
"donjayamanne.python-extension-pack",
"ms-toolsai.jupyter",
"GitHub.codespaces",
"GitHub.copilot",
"ms-azuretools.vscode-docker",
"charliermarsh.ruff"
]
}
}
}

0 comments on commit a85a1a9

Please sign in to comment.