Skip to content

Commit

Permalink
(CI)(install)[TEMP] print known_hosts content
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed May 2, 2024
1 parent 7a8bd63 commit 81cd8a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ci/install-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,18 @@ then
echo -e "\e[35;1mls -alF ~/.ssh\e[0m"
docker exec -t tue-env bash -c "ls -alF ~/.ssh"

echo -e "\e[35;1mcat ~/.ssh/known_hosts\e[0m"
docker exec -t tue-env bash -c "[[ ! -f ~/.ssh/known_hosts ]] || cat ~/.ssh/known_hosts"

echo -e "\e[35;1mcat ~/.ssh/known_hosts_container\e[0m"
docker exec -t tue-env bash -c "[[ ! -f ~/.ssh/known_hosts_container ]] || cat ~/.ssh/known_hosts_container"

echo -e "\e[35;1m~/.tue/ci/ssh-merge-known_hosts.py ~/.ssh/known_hosts_container ~/.ssh/known_hosts --output ~/.ssh/known_hosts\e[0m"
docker exec -t tue-env bash -c "[[ ! -f ~/.ssh/known_hosts || ! -f ~/.ssh/known_hosts_container ]] || ~/.tue/ci/ssh-merge-known_hosts.py ~/.ssh/known_hosts_container ~/.ssh/known_hosts --output ~/.ssh/known_hosts"

echo -e "\e[35;1mcat ~/.ssh/known_hosts (merged)\e[0m"
docker exec -t tue-env bash -c "[[ ! -f ~/.ssh/known_hosts ]] || cat ~/.ssh/known_hosts"

echo -e "\e[35;1meval \"\$(ssh-agent -s)\" && grep -slR \"PRIVATE\" ~/.ssh/ | xargs ssh-add\e[0m"
docker exec -e DOCKER_SSH_AUTH_SOCK="$DOCKER_SSH_AUTH_SOCK" -t tue-env bash -c 'eval "$(ssh-agent -s)" && ln -sf "$SSH_AUTH_SOCK" "$DOCKER_SSH_AUTH_SOCK" && grep -slR "PRIVATE" ~/.ssh/ | xargs ssh-add'

Expand Down

0 comments on commit 81cd8a5

Please sign in to comment.