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
Statically Linked Binary and MultiArch Docker images for ARM64 and AMD64 Architectures #23
Comments
The docker image is based on alpine, because of an issue in gitlab to use single binary images, see: #9 (comment) . We can probably build for multiple architectures using images based on https://github.com/rust-embedded/cross. |
I can get it working for you if you are OK with using my Setting up a job on Github actions is also quite easy, I have a bash script that you can use in Github actions to build the image using docker |
I am open for a pull request. I had trouble to cross compile using cross (linker problems). |
OK. I will open a pr tmrw |
Currently the build fails, because the version of curl should be updated.
It still worked locally, but |
@hdevalke That's something I have been struggling with. |
I removed the versions, but now the build was stuck: https://github.com/convco/convco/runs/3645509471?check_suite_focus=true#step:6:808 I can't reproduce it locally though. I could remove the upx step, but I don't think the issue is caused by it. |
I will explore this a bit and get back to you |
I think we can drop patch-releases and use this approach hadolint/hadolint#204 (comment) I will commit a fix soon The problem of freezing might be due to build cache ( |
I removed the upx step and the build was successfully. https://github.com/convco/convco/actions/runs/1296474571 |
Is there an update to this? I'd love to use |
The docker image already contains statically linked binaries. You should be able to use |
Oh, great! Thank you so much! |
Is your feature request related to a problem? Please describe.
deb
package. this can make it difficult to use in non-Debian environments, such as Alpine based Docker images, which is the base image I use most often with Visual Studio Code Remote - Containers to set up my development environmentaarch64
as their CPU architecture, especially after Apple released the M1 chip. I have a Surface Pro X and it is based on aarch64 and I have to compile Convco from the source there, which as you know, is a CPU-intensive task.Describe the solution you'd like
aarch64
andamd64
architectureCOPY
directive in my own Dockerfiles, likeCOPY --from=convco/convco:latest /usr/bin/convco /usr/local/bin/convco
to add Convco to my image.Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: