This is the SSH public key stored in this server's ~/.ssh/id_rsa.pub
This key should be used to grant access for this server to the Git repository which holds the Spring Cloud Configuration files.
{{data}}
Here are detailed instruction when using the JHipster Registry Docker image, available at jhipster/jhipster-registry/.
docker exec -it <containerIdOrName> sh
ssh-keygen
/root/.ssh/id_rsa.pub
to the remote Git repository you want to access
(in Github, go to your settings/SSH keys)ssh -T git@github.com
In order not to lose our setup every time you recreate or update the container, you can mount the
/root/.ssh/
folder to a Docker volume.
To setup your own git repo, edit the GIT_URI environment variable passed to your container, for example using Docker Compose:
version: '2' services: jhipster-registry: container_name: jhipster-registry image: jhipster/jhipster-registry volumes: - ./ssh/:/root/.ssh/ environment: - SPRING_PROFILES_ACTIVE=prod - GIT_URI=git@github.com:jhipster/jhipster-registry.git - GIT_SEARCH_PATHS=central-config ports: - 8761:8761