diff --git a/conf/docker-entrypoint.sh b/conf/docker-entrypoint.sh index ac539e4..39c52c4 100644 --- a/conf/docker-entrypoint.sh +++ b/conf/docker-entrypoint.sh @@ -14,3 +14,14 @@ done dachs serve restart service apache2 restart +service ssh restart + +#block a tester pour l'accès aux depots privé +#fonctionne avec la clé privé ssh (secrets dans docker compose) +eval "$(ssh-agent -s)" +if [ ! -d "/root/.ssh/" ]; then + ssh-add -k /run/secrets/id_rsa + mkdir /root/.ssh + ssh-keyscan github.com > /root/.ssh/known_hosts + # now execute command which require authentication via ssh (example, git clone from a private repo) +fi -- libgit2 0.21.2