|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/debian |
| 3 | +{ |
| 4 | + "name": "Ocean Development Environment", |
| 5 | + |
| 6 | + // python 3.11 on debian, with latest Ocean and optional packages |
| 7 | + // source repo: https://github.com/dwavesystems/ocean-dev-docker |
| 8 | + "image": "docker.io/dwavesys/ocean-dev:latest", |
| 9 | + |
| 10 | + // install repo requirements on create and content update |
| 11 | + "updateContentCommand": "pip install -r requirements.txt", |
| 12 | + |
| 13 | + // forward/expose container services (relevant only when run locally) |
| 14 | + "forwardPorts": [ |
| 15 | + // dwave-inspector web app |
| 16 | + 18000, 18001, 18002, 18003, 18004, |
| 17 | + // OAuth connect redirect URIs |
| 18 | + 36000, 36001, 36002, 36003, 36004 |
| 19 | + ], |
| 20 | + |
| 21 | + "portsAttributes": { |
| 22 | + "18000-18004": { |
| 23 | + "label": "D-Wave Problem Inspector", |
| 24 | + "requireLocalPort": true |
| 25 | + }, |
| 26 | + "36000-36004": { |
| 27 | + "label": "OAuth 2.0 authorization code redirect URI", |
| 28 | + "requireLocalPort": true |
| 29 | + } |
| 30 | + }, |
| 31 | + |
| 32 | + // Configure tool-specific properties. |
| 33 | + "customizations": { |
| 34 | + // Configure properties specific to VS Code. |
| 35 | + "vscode": { |
| 36 | + // Set *default* container specific settings.json values on container create. |
| 37 | + "settings": { |
| 38 | + "workbench": { |
| 39 | + "editorAssociations": { |
| 40 | + "*.md": "vscode.markdown.preview.editor" |
| 41 | + }, |
| 42 | + "startupEditor": "readme" |
| 43 | + } |
| 44 | + }, |
| 45 | + "extensions": [ |
| 46 | + "ms-python.python", |
| 47 | + "ms-toolsai.jupyter" |
| 48 | + ] |
| 49 | + } |
| 50 | + } |
| 51 | +} |
0 commit comments