diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e7b8817..d7bcee2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,23 +1,26 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the -// README at: https://github.com/devcontainers/templates/tree/main/src/debian +// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu { - "name": "devcontainer", + "name": "Ubuntu", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/base:bullseye", + "image": "mcr.microsoft.com/devcontainers/base:jammy", + "settings": { + "terminal.integrated.shell.linux": "/bin/bash" + }, + "extensions": [ + "ms-azuretools.vscode-docker", + "ms-vscode-remote.remote-containers" + ], + "mounts": [ + "source=${localEnv:HOME}/.gitconfig,target=/root/.gitconfig,type=bind,consistency=cached,required=false", + "source=${localEnv:SSH_AUTH_SOCK},target=/ssh-agent,type=bind" + ], + "remoteEnv": { + "SSH_AUTH_SOCK": "/ssh-agent" + }, + "forwardPorts": [], + "postCreateCommand": "mkdir -p ${env:HOME} && touch ${env:HOME}/.gitconfig && git config --global --add safe.directory /workspaces/${localWorkspaceFolderBasename}", "features": { - "ghcr.io/devcontainers/features/azure-cli:1": {}, - "ghcr.io/devcontainers-extra/features/devcontainers-cli:1": {} + "ghcr.io/devcontainers/features/azure-cli:1": {} } - - // 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": [], - - // Configure tool-specific properties. - // "customizations": {}, - - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" }