Basic Docker Setup
Lukas Mueller edited this page Mar 12, 2024
·
6 revisions
The Docker setup is described on the Breedbase Docker Github page, https://github.com/solgenomics/breedbase_dockerfile/.
When multiple dockers are installed on one system, usually access to more than one GitHub repo using keys needs to be provided. To connect to different repos on GitHub, the following needs to be in place for each repo:
- generate a public/private keypair:
ssh-keygen
name the key according to the repo that you are connecting to, for example, id_rsa_sgn.
- Add the key info to the config file, approximately like this:
Host id_rsa_sgn
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_sgn
IdentitiesOnly yes
- Add the ssh-key command to the .bashrc:
ssh-add /home/production/.ssh/id_rsa_sgn
- Clone the repo:
IMPORTANTLY, the host is now the name you used on the Host line, so to clone this repo, use the following command line:
git clone id_rsa_sgn:solgenomics/sgn
(if the repo is in the solgenomics/sgn dir)