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
This commit is contained in:
parent
6a7c61e094
commit
ac6297eae6
@ -13,9 +13,10 @@ echo
|
|||||||
# host OS
|
# host OS
|
||||||
container_workspace_path='/workspace'
|
container_workspace_path='/workspace'
|
||||||
|
|
||||||
docker run --rm -t \
|
docker run --rm -it \
|
||||||
--net=host \
|
--net=host \
|
||||||
--workdir="$container_workspace_path" \
|
--workdir="$container_workspace_path" \
|
||||||
|
-v "${HOME}/.ssh:${container_workspace_path}/.ssh" \
|
||||||
-v "${WORKSPACE}:$container_workspace_path" \
|
-v "${WORKSPACE}:$container_workspace_path" \
|
||||||
"${IMAGE}" \
|
"${IMAGE}" \
|
||||||
pegleg "${@}"
|
pegleg "${@}"
|
||||||
|
Loading…
Reference in New Issue
Block a user