0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/.docker
Chris Raible fa377b5ac0
Configured ssh agent forwarding for docker compose (#22232)
no issue

- Currently running any `git` commands in the docker container (i.e.
updating submodules) that use ssh are failing because the container
can't see your ssh keys. This commit adds a volume & environment
variable to enable forwarding your local ssh agent into the container.
As long as you've got an ssh agent running locally with your keys
enabled, this will allow you to e.g. push to a remote over ssh from
inside the container.
- It also mounts your local `.gitconfig` file into the container, so
your git configuration (i.e. name & email address) will also work inside
the container
- Finally, it adds githubs ssh keys to known_hosts in the development
target of the Dockerfile to avoid the prompt, which only works in
interactive environments and fails in any kind of script (like `yarn
main:submodules`).
2025-02-19 09:38:05 -08:00
..
grafana
mysql-preload
prometheus
development.entrypoint.sh Improved configuration setup for Docker development (#22224) 2025-02-18 17:49:18 -08:00
Dockerfile Configured ssh agent forwarding for docker compose (#22232) 2025-02-19 09:38:05 -08:00