Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 2aba7c7

Browse files
authored
Add ocean devcontainer v1.1.0 (#23)
* Add devcontainer.json (ocean-devcontainer v1.1.0) * Update "Open in" badge to use GitHub Codespaces
1 parent a497053 commit 2aba7c7

File tree

2 files changed

+54
-3
lines changed

2 files changed

+54
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![Open in Leap IDE](
2-
https://cdn-assets.cloud.dwavesys.com/shared/latest/badges/leapide.svg)](
3-
https://ide.dwavesys.io/#https://github.com/dwave-examples/simple-ocean-programs)
1+
[![Open in GitHub Codespaces](
2+
https://img.shields.io/badge/Open%20in%20GitHub%20Codespaces-333?logo=github)](
3+
https://codespaces.new/dwave-examples/simple-ocean-programs?quickstart=1)
44
[![Linux/Mac/Windows build status](
55
https://circleci.com/gh/dwave-examples/simple-ocean-programs.svg?style=shield)](
66
https://circleci.com/gh/dwave-examples/simple-ocean-programs)

0 commit comments

Comments
 (0)