Comments (5)
This is how I made a working ARM64 image:
- I changed the GOARCH to arm64 in the multistage dockerfile
- I changed the images of golang and alpine to: arm64v8/golang and arm64v8/alpine (this shouldn't be needed, see next step)
- I ran the build using the following command:
docker buildx build --tag registry.xxx.nl/request-baskets:latest --tag registry.xxx.nl/request-baskets:1.2.3 --platform linux/arm64 --file docker/multistage/Dockerfile --push .
From the root directory of the repository. By specifying the --platform linux/arm64 flag, it should automatically choose the correct arm64 images when pulling the base images to build and publish with.
So basically the only change I would assume to be needed is the GOARCH value in the dockerfile. Is setting this value actually needed, or could this be retrieved from the operating system? If this is the case then you can easily make multiplatform builds using this command:
docker buildx build --tag registry.xxx.nl/request-baskets:latest --tag registry.xxx.nl/request-baskets:1.2.3 --platform linux/arm64 --platform linux/amd64 --progress=plain --file docker/multistage/Dockerfile --push .
from request-baskets.
that make sense 👍
do you have any hints on how to achieve that or any article that descries how to do it right with docker hub?
from request-baskets.
You could look into how I did it with a DockerHub based build here: https://github.com/trion-development/docker-ng-cli A (german, but google translate should work) description is here: https://www.trion.de/news/2019/10/14/docker-multi-arch-dockerhub.html
from request-baskets.
I'm also interested in this, is there any progress on it?
I could send you a sample command to build for arm64 if needed, I just have a startup issue with it
from request-baskets.
I wonder if all that can be automated via GitHub actions and results are hosted on GitHub container registry.
Unfortunately dont have time to look at it, but PR or a link to a simple example are highly appreciated :)
from request-baskets.
Related Issues (20)
- Please add dockerhub build to this repo HOT 1
- getAndAuthBasket should be called getAuthenticatedBasket HOT 1
- add ability to get full raw GET parameters in the "GET" green header HOT 4
- SSL Support HOT 1
- Provide parameter to instantiate basket on startup HOT 8
- Add 'copy to clipboard' button to UI HOT 1
- Host header is missing from the Headers section HOT 1
- Running using docker run and setting a custom master token HOT 1
- Migrate to go modules HOT 1
- basket expiration HOT 1
- Restrict creation of new baskets HOT 3
- Allow hosting the webapp as non-root HOT 2
- Error installing version 1.2.0 HOT 3
- Add support for SPRIG template functions HOT 4
- Add allow/deny feature for forward URLs HOT 4
- Bootstrap Upgrade/Dark Mode HOT 9
- [Feature] Support create basket and configure response HOT 1
- Handling Multipart HOT 1
- [SSRF] CVE-2023-27163 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from request-baskets.