-
Notifications
You must be signed in to change notification settings - Fork 84
Dockerized unshield #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Dockerized unshield #201
Conversation
|
Thank you! Maybe there could also be a GitHub Action to build a docker image and create an artifact? |
|
Yeah. That could be done pretty easily. And build artifact could be pushed to hub.docker.com or GitHub Packages. Unfortunatelly i am not proficient with GitHub Actions, but looking at the docs it seems pretty easy. I can try to write something, if you want. |
|
I've added missing |
|
I think that it should be possible to make a static build of unshield? |
|
Yes it is possible. In latest build i've used flag ldd /usr/local/bin/unshield
/lib/ld-musl-x86_64.so.1 (0x78bd930bc000)
libz.so.1 => /usr/lib/libz.so.1 (0x78bd93093000)
libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x78bd92bce000)
libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x78bd930bc000) |
|
Sorry for the delay in feedback, but if the static build worked why do we need the libz and libcrypto libraries? |
|
|
Yes, I only thought that the static linking would also link OpenSSL and zlib statically, not just libunshield... but I had never checked! :) |
|
Oh. I just assumed that you knew that static linking option from cmake only makes it static link of libunshield :) |
|
@DanteyPL thank you for your patience, I think I want to use an official Docker image for building, so that it is less likely that something is inserted in the binary at build time. So maybe use https://hub.docker.com/_/gcc and install cmake if needed? Seems to be Debian-based so should be easy. |
Added dockerized version of unshield that can be run without cluttering disk with dependencies
Final image is using
scratchas dockerized app base and it takes only865kBas built imageOnly small drawback - in help Syntax is showing Basename
/app/unshieldwhich is used in Dockerfile ENTRYPOINT