Created
September 23, 2022 14:47
-
-
Save surajp/6c1095b35cbfcb6e582f582f87b3781a to your computer and use it in GitHub Desktop.
VSC Dev Container
This file contains hidden or 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
Show hidden characters
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/ubuntu | |
{ | |
"name": "Ubuntu", | |
"build": { | |
"dockerfile": "Dockerfile", | |
// Update 'VARIANT' to pick an Ubuntu version: jammy / ubuntu-22.04, focal / ubuntu-20.04, bionic /ubuntu-18.04 | |
// Use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon. | |
"args": { "VARIANT": "ubuntu-22.04" } | |
}, | |
// Set *default* container specific settings.json values on container create. | |
"settings": { | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"workbench.editor.enablePreview": false, | |
"salesforcedx-vscode-core.retrieve-test-code-coverage": true, | |
"prettier.resolveGlobalModules": true, | |
"salesforcedx-vscode-core.experimental.deployRetrieve": true, | |
"salesforcedx-vscode-core.telemetry.enabled": false, | |
"salesforcedx-vscode-apex.java.home": "/usr/local/sdkman/candidates/java/current", | |
"java.jdt.ls.home": "/extension-java-home" | |
}, | |
// Add the IDs of extensions you want installed when the container is created. | |
"extensions": ["salesforce.salesforcedx-vscode-expanded"], | |
// Use 'forwardPorts' to make a list of ports inside the container available locally. | |
"forwardPorts": [1717, 8080], | |
// Use 'postCreateCommand' to run commands after the container is created. | |
"postCreateCommand": "npm i -g sfdx-cli && npm install", | |
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | |
"remoteUser": "vscode", | |
"features": { | |
"git": "latest", | |
"node": "lts", | |
"java": "17" | |
} | |
} |
This file contains hidden or 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
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/ubuntu/.devcontainer/base.Dockerfile | |
# [Choice] Ubuntu version (use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon): ubuntu-22.04, ubuntu-20.04, ubuntu-18.04 | |
ARG VARIANT="jammy" | |
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} | |
# [Optional] Uncomment this section to install additional OS packages. | |
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | |
# && apt-get -y install --no-install-recommends <your-package-list-here> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment