Commit 545849f9534634934d1354436367327c5f4cd7eb

Authored by Philippe Hamy
1 parent 5eefbe5f
Exists in master

beta clé privé..

Showing 1 changed file with 11 additions and 0 deletions   Show diff stats
conf/docker-entrypoint.sh
... ... @@ -14,3 +14,14 @@ done
14 14 dachs serve restart
15 15  
16 16 service apache2 restart
  17 +service ssh restart
  18 +
  19 +#block a tester pour l'accès aux depots privé
  20 +#fonctionne avec la clé privé ssh (secrets dans docker compose)
  21 +eval "$(ssh-agent -s)"
  22 +if [ ! -d "/root/.ssh/" ]; then
  23 + ssh-add -k /run/secrets/id_rsa
  24 + mkdir /root/.ssh
  25 + ssh-keyscan github.com > /root/.ssh/known_hosts
  26 + # now execute command which require authentication via ssh (example, git clone from a private repo)
  27 +fi
... ...