forked from PyPSA/pypsa-eur
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from drifter089/devcontainer
adding workfolder mount in local image
- Loading branch information
Showing
2 changed files
with
3 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,7 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | ||
// For format details, see https://aka.ms/devcontainer.json. | ||
{ | ||
"name": "pypsa eur dev", | ||
// "image": "mcr.microsoft.com/devcontainers/base:jammy", | ||
// "build": { | ||
// "dockerfile": "Dockerfile" | ||
// }, | ||
"image": "akshatmittaloet/pypsa-eur:v8.0.sol", | ||
|
||
"features": { | ||
"ghcr.io/devcontainers-contrib/features/bash-command:1": {}, | ||
"ghcr.io/eliises/devcontainer-features/bash-profile:1": {} | ||
}, | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "/bin/bash" | ||
} | ||
}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-azuretools.vscode-docker", | ||
"ms-toolsai.jupyter", | ||
"zainchen.json", | ||
"tomoki1207.pdf", | ||
"grapecity.gc-excelviewer" | ||
] | ||
} | ||
}, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// 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": "python -m pip install --upgrade debugpy", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
"image": "ghcr.io/drifter089/pypsa-eur:latest", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces,type=bind,consistency=cached", | ||
"workspaceFolder": "/workspaces", | ||
|
||
"postAttachCommand": "mv ../pypsa-eur/* ./ && echo 'All files from pypsa-eur have been copied to workspaces'" | ||
"workspaceFolder": "/workspaces" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters