mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-16 01:44:51 +03:00
add ssh client
This commit is contained in:
parent
b181eb1d81
commit
e8464b01ba
|
@ -14,3 +14,7 @@ source /entrypoint
|
||||||
set +o errexit
|
set +o errexit
|
||||||
set +o pipefail
|
set +o pipefail
|
||||||
set +o nounset
|
set +o nounset
|
||||||
|
|
||||||
|
# start ssh-agent
|
||||||
|
# https://code.visualstudio.com/docs/remote/troubleshooting
|
||||||
|
eval "$(ssh-agent -s)"
|
||||||
|
|
|
@ -12,9 +12,14 @@
|
||||||
"type": "bind"
|
"type": "bind"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "/tmp",
|
"source": "~/.ssh",
|
||||||
"target": "/tmp",
|
"target": "/tmp",
|
||||||
"type": "bind"
|
"type": "bind"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "~/.ssh",
|
||||||
|
"target": "/home/dev-user/.ssh",
|
||||||
|
"type": "bind"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// Tells devcontainer.json supporting services / tools whether they should run
|
// Tells devcontainer.json supporting services / tools whether they should run
|
||||||
|
|
|
@ -38,7 +38,7 @@ WORKDIR ${APP_HOME}
|
||||||
{% if cookiecutter.use_docker == "y" %}
|
{% if cookiecutter.use_docker == "y" %}
|
||||||
# devcontainer dependencies and utils
|
# devcontainer dependencies and utils
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y \
|
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
|
# Create devcontainer user and add it to sudoers
|
||||||
RUN groupadd --gid 1000 dev-user \
|
RUN groupadd --gid 1000 dev-user \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user