Container with a Git client.
A container with a Git client.
Note: This is probably a bad idea. Since it builds a Docker container with your SSH private key and private key password.
- Copy your SSH private key into the repository directory with a name
of
ssh_private_key
in the - Set the following environment variables:
SSH_NAME
: Your nameSSH_EMAIL
: Your emailSSH_PASSWORD
: Private key password
- Run
make build
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NEVER push this container to a registry. As it will contain your SSH
private key and password.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
./bin/git-container