From ac6297eae6c51ab2f13a96978abaaa10cb46e3d6 Mon Sep 17 00:00:00 2001 From: Kaspars Skels Date: Wed, 5 Sep 2018 14:36:24 -0500 Subject: [PATCH] Add ~/.ssh mount to pegleg.sh New Pegleg supports feature of pulling git repos. This mount passes SSH keys to the container. Change-Id: I6606ac44469099d8560e89482bba98d7bb9c8dbf --- tools/pegleg.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/pegleg.sh b/tools/pegleg.sh index f7eae955..2153ecef 100755 --- a/tools/pegleg.sh +++ b/tools/pegleg.sh @@ -13,9 +13,10 @@ echo # host OS container_workspace_path='/workspace' -docker run --rm -t \ +docker run --rm -it \ --net=host \ --workdir="$container_workspace_path" \ + -v "${HOME}/.ssh:${container_workspace_path}/.ssh" \ -v "${WORKSPACE}:$container_workspace_path" \ "${IMAGE}" \ pegleg "${@}"