mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-27 05:57:28 +00:00
19 lines
536 B
Bash
Executable File
19 lines
536 B
Bash
Executable File
#!/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
|
|
# choose 1000 matching defaults in .env.example
|
|
DOCKER_FLAGS="-t ${IMAGE_NAME}" \
|
|
DOCKER_UID=1000 \
|
|
DOCKER_GID=1000 \
|
|
GIT_TAG=$(git describe --tags '--match=v*' --dirty) \
|
|
make docker
|