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
|
2022-07-25 05:49:29 +00:00
|
|
|
# choose 1000 matching defaults in .env.example
|
2022-06-30 10:11:37 +00:00
|
|
|
DOCKER_FLAGS="-t ${IMAGE_NAME}" \
|
2022-07-25 05:49:29 +00:00
|
|
|
DOCKER_UID=1000 \
|
|
|
|
DOCKER_GID=1000 \
|
2022-05-25 01:12:40 +00:00
|
|
|
GIT_TAG=$(git describe --tags '--match=v*' --dirty) \
|
|
|
|
make docker
|