stagenet bootnode and docker updates (#473)

This commit is contained in:
Dmitry Holodov
2023-05-20 21:59:49 -05:00
committed by GitHub
parent 0ab11176c4
commit b5a83d5ee5
6 changed files with 18 additions and 12 deletions

View File

@@ -6,8 +6,10 @@ IMAGE_NAME="atomic-bootnode"
# VERSION can be "latest", a release tag, a hash or a branch name that does not
# contain slashes. The version must be pushed to github, local changes are not
# seen. The variable both defines which version of the tools is go install'ed
# inside the container, as well as the docker image tag.
VERSION="latest"
# inside the container, as well as the docker image tag. We dynamically grab the
# latest tag from the current branch, as passing a specific version plays nicer
# with docker's image caching.
VERSION="$(git describe --abbrev=0 --tags)"
# Run docker build from the directory of this script
cd "$(dirname "$0")"

View File

@@ -10,7 +10,7 @@ SWAPD_ENV="${SWAPD_ENV:-"mainnet"}"
# containers need to have a distinct mount dir.
CONTAINER_NAME="${CONTAINER_NAME:-"bootnode-${SWAPD_ENV}"}"
IMAGE_NAME="atomic-bootnode"
VERSION="latest" # image tag
VERSION="$(git describe --abbrev=0 --tags)" # image tag
# Pre-create the mounted directory, or docker will create it with root as the
# owner. We mount one directory above what swapd considers its "data-dir". Data