Skip to content

Commit

Permalink
fix: devcontainer config
Browse files Browse the repository at this point in the history
Co-authored-by: Sam <[email protected]>
Co-authored-by: vivekpal1 <[email protected]>
  • Loading branch information
vivekpal1 and SAMAD101 committed Dec 24, 2023
1 parent 982e756 commit 1634d78
Showing 1 changed file with 41 additions and 11 deletions.
52 changes: 41 additions & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,49 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "paste.py",
"dockerfile": "Dockerfile",
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "../Dockerfile"
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {
// "ghcr.io/devcontainers/features/python:1": {}
// },

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [9000],

// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "cat /etc/os-release",

// Configure tool-specific properties.
"customizations": {
"extensions": {
"python.pythonPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": ["--max-line-length=88"],
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black"
"python.pythonPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": ["--max-line-length=88"],
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black"
},
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
}
},
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer",

"portsAttributes": {
"9000": {
"label": "paste.py remote",
"onAutoForward": "notify"
}
},
}
}
}
}

0 comments on commit 1634d78

Please sign in to comment.