Closed ccojocar closed 4 years ago
This is right, the openssl library is dynamically loaded therefore it doesn't need to be added to the build container.
I made the hog binary configurable in the docker image entry point. Unfortunately it requires a custom entrypoint script in order to achieve this, but now it can be built for various hogs as follows:
docker build -t rusty-hog --build-arg HOG=berkshire .
Does these address your concerns?
The image can be run with this command:
docker run -it --rm rusty-hog --help
it should print the helper of the hog used as an entry point, something like:
+ /usr/local/bin/berkshire_hog --help
berkshire_hog 1.0.4
Scott Cutler <scutler@newrelic.com>
S3 secret hunter in Rust. Avoid bandwidth costs, run this within a VPC!
USAGE:
berkshire_hog [FLAGS] [OPTIONS] <S3URI> <S3REGION>
....
That works for me. I'll review and merge it around 11am my time in Portland OR.
On Thu, May 7, 2020, 3:44 AM Cosmin Cojocar notifications@github.com wrote:
The image can be run with this command:
docker run -it --rm rusty-hog --help
it should print the helper of the hog used as an entry point, something like:
- /usr/local/bin/berkshire_hog --help berkshire_hog 1.0.4 Scott Cutler scutler@newrelic.com S3 secret hunter in Rust. Avoid bandwidth costs, run this within a VPC!
USAGE: berkshire_hog [FLAGS] [OPTIONS]
....
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/newrelic/rusty-hog/pull/5#issuecomment-625176545, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALKCTQI77JRQYQFFLF7KNVDRQKGIDANCNFSM4MTUOUBQ .
Thanks! No rush.
@cutler-scott-newrelic It would be great if you could have a look also over this Dockerfile. Thanks!