Skip to content

Commit

Permalink
Build dateilager docker images for both arm and x86 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed Jan 3, 2025
1 parent e4b80ec commit 1c05a74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,15 @@ git push origin v0.0.x

We also need to build the server docker image and push it to Gadget's container registry.

If you haven't already, make sure you're using docker buildx for multi-arch builds.

```bash
docker buildx create --name mybuilder --use
docker buildx install
```

Then build and push the image:

```bash
make upload-container-image version=0.0.x
```
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ upload-container-image:
ifndef version
$(error version variable must be set)
else
docker build --platform linux/amd64 -t gcr.io/gadget-core-production/dateilager:$(version) -t gcr.io/gadget-core-production/dateilager:latest .
docker build --platform linux/arm64,linux/amd64 -t gcr.io/gadget-core-production/dateilager:$(version) -t gcr.io/gadget-core-production/dateilager:latest .
docker push gcr.io/gadget-core-production/dateilager:$(version)
docker push gcr.io/gadget-core-production/dateilager:latest
endif
Expand Down

0 comments on commit 1c05a74

Please sign in to comment.