GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
2
Releases
Issues
3
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
docker-analytics
Browse code
Switched to containerised builder
master
spark3
1 parent
976f29f
commit
5f3d69d5df392b8549193540cdc6a2b9e82995b9
Nigel Stanger
authored
on 25 Sep 2022
Patch
Showing
1 changed file
docker.make
Ignore Space
Show notes
View
docker.make
# Common rules & variables for building Docker images. # Calling makefiles just need to set IMAGE then include this file, e.g.,: # IMAGE = foobar # include ../docker.make ARM=arm64 INTEL=amd64 image: Dockerfile docker buildx create --use docker buildx build --tag $(IMAGE):latest --platform linux/$(ARM),linux/$(INTEL) --push . docker buildx rm @touch $@ debug: @echo "IMAGE=$(IMAGE)" @echo "ARM=$(ARM)" @echo "INTEL=$(INTEL)"
# Common rules & variables for building Docker images. # Calling makefiles just need to set IMAGE then include this file, e.g.,: # IMAGE = foobar # include ../docker.make ARM=arm64 INTEL=amd64 image: image_arm image_intel image_arm: Dockerfile docker buildx build -t $(IMAGE):$(ARM) --platform linux/$(ARM) . @touch $@ image_intel: Dockerfile docker buildx build -t $(IMAGE):$(INTEL) --platform linux/$(INTEL) . @touch $@ manifest: image_arm image_intel - docker manifest rm $(IMAGE) docker manifest create $(IMAGE) $(IMAGE):$(INTEL) $(IMAGE):$(ARM) @touch $@ push: manifest docker push $(IMAGE):$(ARM) docker push $(IMAGE):$(INTEL) docker manifest push $(IMAGE) debug: @echo "IMAGE=$(IMAGE)" @echo "ARM=$(ARM)" @echo "INTEL=$(INTEL)"
Show line notes below