Skip to content

Instantly share code, notes, and snippets.

@zingmars
Created March 6, 2017 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zingmars/285f46fdd9aa85d8cc0880f1f18f420c to your computer and use it in GitHub Desktop.
Save zingmars/285f46fdd9aa85d8cc0880f1f18f420c to your computer and use it in GitHub Desktop.
Gitlab runner passthrough script to docker
#!/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