-
Notifications
You must be signed in to change notification settings - Fork 36
Basic Docker Setup
Lukas Mueller edited this page Sep 2, 2024
·
8 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
-
Add the key to the github repo in question Go to the website of your github repo, choose settings -> Deploy keys -> add. Add the contents of the file ending in .pub .
-
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)