2022-05-25 01:12:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This is needed to pass build ARGs to Dockerfile.
|
|
|
|
# see https://docs.docker.com/docker-hub/builds/advanced/
|
|
|
|
|
2022-06-30 10:11:37 +00:00
|
|
|
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
|
|
|
|
# choose 3473 matching defaults in .env.example
|
|
|
|
DOCKER_FLAGS="-t ${IMAGE_NAME}" \
|
|
|
|
DOCKER_UID=3473 \
|
|
|
|
DOCKER_GID=3473 \
|
2022-05-25 01:12:40 +00:00
|
|
|
GIT_TAG=$(git describe --tags '--match=v*' --dirty) \
|
|
|
|
make docker
|