Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lean_client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
FROM ubuntu:22.04

ARG COMMIT_SHA
ARG BUILD_DATE

LABEL org.opencontainers.image.title="grandine"
LABEL org.opencontainers.image.description="High performance Ethereum lean client"
LABEL org.opencontainers.image.authors="Grandine <[email protected]>"
LABEL org.opencontainers.image.source=https://github.com/grandinetech/lean
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.revision=$COMMIT_SHA
LABEL org.opencontainers.image.created=$BUILD_DATE

ARG TARGETARCH

COPY ./bin/$TARGETARCH/lean_client /usr/local/bin/lean_client
Expand Down
4 changes: 4 additions & 0 deletions lean_client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ aarch64-unknown-linux-gnu: ./target/aarch64-unknown-linux-gnu/release/lean_clien

DOCKER_REPO ?= sifrai/lean
DOCKER_TAG ?= unstable
COMMIT_SHA := $(shell git rev-parse HEAD)
BUILD_DATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')

.PHONY: release
release: docker
Expand All @@ -43,6 +45,8 @@ docker: ./target/x86_64-unknown-linux-gnu/release/lean_client ./target/aarch64-u
docker buildx build \
--file Dockerfile \
--platform linux/amd64,linux/arm64 \
--build-arg COMMIT_SHA=$(COMMIT_SHA) \
--build-arg BUILD_DATE=$(BUILD_DATE) \
--tag $(DOCKER_REPO):$(DOCKER_TAG) \
--push \
.