Browse Source

devcontainer fixes (#688)

* adding runargs section to fix docker access from devcontainer to host

* updating integrated terminal settings to match with the most recent settings.json scheme

* updating base image to most recent dotnet sdk version

Co-authored-by: Steve Smith <steve@kentsmiths.com>
main
Engin Polat 3 years ago
committed by GitHub
parent
commit
303f145ad3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .devcontainer/Dockerfile
  2. 12
      .devcontainer/devcontainer.json

1
.devcontainer/Dockerfile

@ -5,6 +5,7 @@
#-------------------------------------------------------------------------------------------------------------
FROM mcr.microsoft.com/dotnet/sdk:7.0
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).

12
.devcontainer/devcontainer.json

@ -15,10 +15,18 @@
// Comment out to connect as root user. See https://aka.ms/vscode-remote/containers/non-root.
// make sure this is the same as USERNAME above
"remoteUser": "vscode",
"runArgs": [
"-v",
"/var/run/docker.sock:/var/run/docker.sock"
],
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
"icon": "terminal-bash"
},
},
},
// Add the IDs of extensions you want installed when the container is created.

Loading…
Cancel
Save