-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
I think usability could be greatly improved here.
Here's what I have in mind:
- User has a wrapper script for her project,
run.sh - User copies scripts from this project to her project.
- User modifies
run.shscript to have this:
cd ssh-agent-forward
. ./ssh-agent-forward.sh
cd ..
docker-compose up ...
- User creates an ssh script
./docker/ssh_keysto be run inside a targeted docker container:
cat <<EOF >> ~/.ssh/config
Host *
User $SSH_USER
EOF
- User modifies
docker-compose.ymlto have this:
environment:
SSH_AUTH_SOCK: $SSH_AUTH_SOCK
SSH_USER: $USER # can override in docker-compose.override.yml
command: sh -c "./docker/ssh_keys"
For this to work, SSH forward script should run the thing (skip if it's already done) and export SSH_AUTH_SOCK variable.
Metadata
Metadata
Assignees
Labels
No labels