add ssh client

This commit is contained in:
Matteo Savini 2023-03-26 03:04:30 +02:00
parent b181eb1d81
commit e8464b01ba
3 changed files with 11 additions and 2 deletions

View File

@ -14,3 +14,7 @@ source /entrypoint
set +o errexit
set +o pipefail
set +o nounset
# start ssh-agent
# https://code.visualstudio.com/docs/remote/troubleshooting
eval "$(ssh-agent -s)"

View File

@ -12,9 +12,14 @@
"type": "bind"
},
{
"source": "/tmp",
"source": "~/.ssh",
"target": "/tmp",
"type": "bind"
},
{
"source": "~/.ssh",
"target": "/home/dev-user/.ssh",
"type": "bind"
}
],
// Tells devcontainer.json supporting services / tools whether they should run

View File

@ -38,7 +38,7 @@ WORKDIR ${APP_HOME}
{% if cookiecutter.use_docker == "y" %}
# devcontainer dependencies and utils
RUN apt-get update && apt-get install --no-install-recommends -y \
sudo git bash-completion nano
sudo git bash-completion nano ssh
# Create devcontainer user and add it to sudoers
RUN groupadd --gid 1000 dev-user \