Ștefan Talpalaru 4a7a62c072
dist: cross-build ARM64 on Debian-10.10 (#2944)
instead of Ubuntu-18.04. This fixes a crash when stress-testing the
metrics HTTP server. We think it was due to gcc-7.4.0 miscompiling
something. The new distro/version gives us gcc-8.3.0, but with the same
old glibc-2.28 we need on Raspbian.
2021-10-03 16:41:35 +02:00

52 lines
1.1 KiB
Makefile

SHELL := bash
IMAGE_TAG := dist_base_$(shell date --utc +"%Y%m%d%H%M%S")
IMAGE_NAME := statusteam/nimbus_beacon_node:$(IMAGE_TAG)
.PHONY: \
build-amd64 \
build-arm64 \
build-arm \
build-win64 \
build-macos \
push-amd64 \
push-arm64 \
push-arm \
push-win64 \
push-macos
build-amd64:
$(CURDIR)/make_base_image.sh amd64 "$(IMAGE_NAME)"
build-arm64:
$(CURDIR)/make_base_image.sh arm64 "$(IMAGE_NAME)_arm64_v4"
build-arm:
$(CURDIR)/make_base_image.sh arm "$(IMAGE_NAME)_arm_v2"
build-win64:
$(CURDIR)/make_base_image.sh win64 "$(IMAGE_NAME)_win64"
build-macos:
$(CURDIR)/make_base_image.sh macos "$(IMAGE_NAME)_macos"
# You probably don't want to recreate and push these base images to Docker Hub,
# because when older images expire and get deleted, it will no longer be possible
# to reproduce old releases.
#push-amd64: build-amd64
# docker push $(IMAGE_NAME)
#push-arm64: build-arm64
# docker push $(IMAGE_NAME)_arm64_v4
#push-arm: build-arm
# docker push $(IMAGE_NAME)_arm_v2
#push-win64: build-win64
# docker push $(IMAGE_NAME)_win64
#push-macos: build-macos
#docker push $(IMAGE_NAME)_macos