Sign inSign up

art19/registrator

By art19

Updated almost 6 years ago

Image
1

50K+

art19/registrator repository overview

This repository is a version of gliderlabs/registrator that has been built for x86_64, aarch64, and armv7l using this Makefile target:

registrator:
	@echo $$'\x1b[33m🚧 Building multi-platform Registrator image...\x1b[0m'
	mkdir -pv ../tmp
	rm -rfv ../tmp/registrator
	$(GIT) clone https://github.com/gliderlabs/registrator.git ../tmp/registrator

	# make dep verbose
	sed -i 's/dep ensure -vendor-only/dep ensure -v -vendor-only/' ../tmp/registrator/Dockerfile

	# strip the binaries
	sed -i 's/go build /go build -ldflags="-s -w"/' ../tmp/registrator/Dockerfile

	# build - note armv6 does not build and so we aren't
	cd ../tmp/registrator && \
		$(DOCKER) buildx build \
			--cpu-shares 512 \
			--platform linux/amd64,linux/arm64,linux/arm/v7 \
			--tag art19/registrator:latest \
			--push \
			.
	rm -rfv ../tmp/registrator
	@echo $$'\x1b[32m✔️ Built and pushed multi-platform Registrator image!\x1b[0m'
.PHONY: registrator

Tag summary

Content type

Image

Digest

Size

-

Last updated

almost 6 years ago

docker pull art19/registrator