Skip to content

Commit

Permalink
Update devcontainer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
vgoliber authored Feb 5, 2024
1 parent 8f7e654 commit 4a98297
Showing 1 changed file with 42 additions and 6 deletions.
48 changes: 42 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,50 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/python
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Python 3",
// Licensed under MIT https://github.com/devcontainers/templates/blob/main/LICENSE
"image": "mcr.microsoft.com/devcontainers/python:1-3.11",
"name": "Ocean Development Environment",

// python 3.11 on debian, with latest Ocean and optional packages
// source repo: https://github.com/dwavesystems/ocean-dev-docker
"image": "docker.io/dwavesys/ocean-dev:latest",

// install repo requirements on create and content update
"updateContentCommand": "pip install -r requirements.txt",

// forward/expose container services (relevant only when run locally)
"forwardPorts": [
// dwave-inspector web app
18000, 18001, 18002, 18003, 18004,
// OAuth connect redirect URIs
36000, 36001, 36002, 36003, 36004
],

"portsAttributes": {
"18000-18004": {
"label": "D-Wave Problem Inspector",
"requireLocalPort": true
},
"36000-36004": {
"label": "OAuth 2.0 authorization code redirect URI",
"requireLocalPort": true
}
},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {},
// Set *default* container specific settings.json values on container create.
"settings": {
"workbench": {
"editorAssociations": {
"*.md": "vscode.markdown.preview.editor"
},
"startupEditor": "readme"
}
},
"extensions": [
"ms-python.python"
"ms-python.python",
"ms-toolsai.jupyter"
]
}
}
Expand Down

0 comments on commit 4a98297

Please sign in to comment.