Skip to content

Commit 0c3aba5

Browse files
author
Tom Augspurger
authored
Added devcontainer (microsoft#72)
1 parent da3f328 commit 0c3aba5

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM mcr.microsoft.com/planetary-computer/python:2021.07.08.0

.devcontainer/devcontainer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "Planetary Computer (Python)",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": "..",
6+
},
7+
8+
// Set *default* container specific settings.json values on container create.
9+
"settings": {
10+
"python.pythonPath": "/srv/conda/envs/notebook/bin/python",
11+
"python.languageServer": "Pylance",
12+
"python.linting.enabled": true,
13+
},
14+
15+
// Add the IDs of extensions you want installed when the container is created.
16+
"extensions": [
17+
"ms-python.python",
18+
"ms-python.vscode-pylance",
19+
"ms-toolsai.jupyter"
20+
],
21+
22+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
23+
// "forwardPorts": [],
24+
25+
// Use 'postCreateCommand' to run commands after the container is created.
26+
// "postCreateCommand": "pip3 install --user -r requirements.txt",
27+
28+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
29+
"remoteUser": "jovyan",
30+
"containerEnv": {
31+
"DASK_GATEWAY__ADDRESS": "https://pccompute.westeurope.cloudapp.azure.com/compute/services/dask-gateway",
32+
"DASK_GATEWAY__AUTH__TYPE": "jupyterhub",
33+
"DASK_GATEWAY__PROXY_ADDRESS": "gateway://pccompute-dask.westeurope.cloudapp.azure.com:80",
34+
"DASK_GATEWAY__CLUSTER__OPTIONS__IMAGE": "pcccr.azurecr.io/public/planetary-computer/python:latest",
35+
}
36+
}

0 commit comments

Comments
 (0)