-
Notifications
You must be signed in to change notification settings - Fork 38
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
Arm64 build? #41
Comments
Thanks for the request @tiagoposse We have added linux-arm64 support in v0.3.1, can you give it a try? Thanks again! |
I will close this out, if you find any problems with this image we can reopen this. |
Hi @jimsheldon, apologies for the delay on testing this, always on the back of my mind but never really had time to test it. I can confirm that the main binary works, but trying to execute anything else inside the container fails.
Fails:
I'm running this on kubernetes and would love to copy a .env file into |
You found a bug @tiagoposse! I ran this on my macbook pro: $ docker run -ti --rm --entrypoint sh meltwater/drone-convert-pathschanged:0.4.0-linux-arm64
Unable to find image 'meltwater/drone-convert-pathschanged:0.4.0-linux-arm64' locally
0.4.0-linux-arm64: Pulling from meltwater/drone-convert-pathschanged
21c83c524219: Already exists
66205347a480: Pull complete
fbf185e11599: Pull complete
Digest: sha256:c753df6728b3deff178f2f937c106f0aa291b0b74ffc6c8ac3b5b66b2376e311
Status: Downloaded newer image for meltwater/drone-convert-pathschanged:0.4.0-linux-arm64
/ # apk add file
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
(1/2) Installing libmagic (5.37-r1)
(2/2) Installing file (5.37-r1)
Executing busybox-1.30.1-r3.trigger
OK: 11 MiB in 16 packages
/ # file /bin/drone-convert-pathschanged
/bin/drone-convert-pathschanged: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=P4UyAsezFydLhZ9DoyiS/6XclKVXfEkchm5Y2M0h2/ODgYFy1l-eEhezHntOh-/Cjro6c_dsV0QEGJfaCUt, not stripped
/ # file /bin/busybox
/bin/busybox: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, stripped The We based our build process on https://github.com/drone/drone-convert-starlark which appears to have the same issue. I will reopen this and work on a fix. |
@tiagoposse I have good news and bad news :) The good news is I have a fix in #47, the bad news is it won't help your use case. I think we should be building our images off the 'scratch' image, same as the docker runner (see Dockerfile.linux.arm64). For more info on the 'scratch' image see https://docs.docker.com/develop/develop-images/baseimages/#create-a-simple-parent-image-using-scratch. This will increase the security for this docker image, since any potential exploit wouldn't have access to other binaries in the image (like What environment variables are you trying to pass to this plugin? |
I'm using Hashicorp Vault to distribute secrets in the cluster and I want to include drone in this, which means I want to load the following variables from files:
Drone supports this by running I fully support the move to scratch and will just deal with building upon the image locally if this behaviour is not supported. Hope this is clear! I also could not find a helm chart for this, is there one at all/is there one in the plans/is it open for contribution? |
Interesting, so Providing a A helm chart would be another good feature, I'll create something for that as well. |
I built 0.4.0 locally, not the current official image. Full of good news today :) If you're interested in a PR for the chart at all, I have a working one that supports multiple use cases. |
Version 0.5.0 has been pushed using 'scratch' for base images https://github.com/meltwater/drone-convert-pathschanged/releases/tag/v0.5.0 I created issues for the Feel free to subscribe to them and add any additional information. Thanks for contributing! I'll close this out. |
Thanks for the amazing work with this extension!
Any chance you'll make an arm64 image available?
The text was updated successfully, but these errors were encountered: