Commands for passing ssh keys for yarn install.
Steps:
- Create a folder
.ssh
in the root of the repo (this is already .gitignored so don't worry) - Copy your bitbucket keys from
%USERPROFILE%/.ssh
(windows) or$HOME/.ssh
(*nix) folder (2 files:id_rsa
andid_rsa.pub
) to the newly created.ssh
folder in repo root in previous step. - Get access to
dev
container (container name:serverless
) defined in docker-compose.yml file. - In the interactive terminal run the following commands.
ssh-keyscan -H bitbucket.org >> ~/.ssh/known_hosts
chmod 700 ~/.ssh/id_rsa
chmod 700 ~/.ssh/id_rsa.pub
The beauty of ephemeral environments is that they are expandable (you can get rid of the them and recreate them as many times as you like). In order to cleanup we just need to do the following.
- Run
docker-compose down
from repo root to clean up all the networks and containers. - Delete the
.ssh
folder from repo root. - Follow the steps defined in Dev Environment Setup.