Created
March 6, 2017 20:26
-
-
Save zingmars/285f46fdd9aa85d8cc0880f1f18f420c to your computer and use it in GitHub Desktop.
Gitlab runner passthrough script to docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker exec -i docker_web_1 runuser -l git -c "SSH_CONNECTION='$SSH_CONNECTION' SSH_ORIGINAL_COMMAND='$SSH_ORIGINAL_COMMAND' $0 $1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment