Skip to content

Commit

Permalink
Merge pull request #2 from drifter089/devcontainer
Browse files Browse the repository at this point in the history
adding workfolder mount in local image
  • Loading branch information
drifter089 authored Jul 22, 2024
2 parents 9209a16 + 2b47721 commit 2f5eca8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 52 deletions.
53 changes: 3 additions & 50 deletions .devcontainer/devcontainer.json
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"
}
2 changes: 0 additions & 2 deletions .github/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
"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'"
}

0 comments on commit 2f5eca8

Please sign in to comment.