erigon-pulse/hooks/build

19 lines
536 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
# This is needed to pass build ARGs to Dockerfile.
# see https://docs.docker.com/docker-hub/builds/advanced/
set -o errexit # exit on error
set -o nounset # disallow unset variables
set -o pipefail # fail if anything in pipe fails
# $(id -u) and $(id -g) will be 0
#
# so we need to specify the erigon user uid/gid in the image
2022-07-25 05:49:29 +00:00
# choose 1000 matching defaults in .env.example
DOCKER_FLAGS="-t ${IMAGE_NAME}" \
2022-07-25 05:49:29 +00:00
DOCKER_UID=1000 \
DOCKER_GID=1000 \
GIT_TAG=$(git describe --tags '--match=v*' --dirty) \
make docker