Skip to content

Using Probot with Docker Secrets #1247

Answered by kjc17710
kjc17710 asked this question in General
Discussion options

You must be logged in to vote

The only way I was able to get secrets to work for the pem key was using the below links and script:

I created the secret from the pem file directly on the docker machine
Then utilized the script mentioned below in my compose file to grab the secret and put it into the environment variable

https://www.reddit.com/r/docker/comments/9k4tdi/using_docker_secrets_to_replace_environment_vars/e6yb8bt/?context=8&depth=9
https://medium.com/@adrian.gheorghe.dev/using-docker-secrets-in-your-environment-variables-7a0609659aab
https://gist.github.com/kevb/e0bef6549d0af12170b0beaeb736371d

It seems a little wonky, but it works and this way I don't have to include the pem file in my docker image.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@kjc17710
Comment options

@gr2m
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kjc17710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants