I found many questions and tutorials before finally putting this all together. Wanted to document it so somebody else can save many hours of frustration.
I am trying to get a private git repository on BitBucket to work with Spring Boot Config Server using deploy keys and have it run in Docker. I am running into many issues.
- How to actually configure using the application.yml files.
I cant seem to figure out where I should put the SSH info. All tutorials seem to be for https.
- How to provide the private key to the configuration. For Dev the syntax for inline in YML is a pain. For production, you have to provide it via an environment variable, which is another syntax chore.
I keep getting an error that the private key is invalid.
- How to get the Docker container to trust the host key without that pesky "do you trust this guy" prompt.
There seems to be several ways to make this work, but only one that worked for me.