-
Hey folk, We're beginning to evaluate moving over to porter, but we've got a use case which I'm not sure how best to address. The intent is to make use of porter internally. One of our requirements is the ability to pull in terraform modules from a private git repo as part of the porter build. At the moment we make use of an SSH key + the ssh terraform module reference. As part of the porter dockerfile template, I'm struggling to figure out how to achieve this in a way which doesn't involve storing the SSH key within the git repo and without storing the key within the built image. With pure docker I'd probably pass it through as a build arg and use a multistage build, only publishing the final image. Wondering if anyone has any tips/suggestions on how to achieve something similar. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @obowersa, in the v1 alpha of Porter we now have support for Docker buildkit. You should be able to use a ssh mount to load your private repos and then perform any additional steps in a custom dockerfile for porter. |
Beta Was this translation helpful? Give feedback.
Hey @obowersa, in the v1 alpha of Porter we now have support for Docker buildkit. You should be able to use a ssh mount to load your private repos and then perform any additional steps in a custom dockerfile for porter.