github.com/MetalBlockchain/subnet-evm@v0.4.9/scripts/build_image.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -o errexit
     4  set -o nounset
     5  set -o pipefail
     6  
     7  # Metal root directory
     8  SUBNET_EVM_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )
     9  
    10  # Load the versions
    11  source "$SUBNET_EVM_PATH"/scripts/versions.sh
    12  
    13  # Load the constants
    14  source "$SUBNET_EVM_PATH"/scripts/constants.sh
    15  
    16  echo "Building Docker Image: $DOCKERHUB_REPO:$BUILD_IMAGE_ID based of $METALGO_VERSION"
    17  docker build -t "$DOCKERHUB_REPO:$BUILD_IMAGE_ID" "$SUBNET_EVM_PATH" -f "$SUBNET_EVM_PATH/Dockerfile" \
    18    --build-arg METAL_VERSION="$METALGO_VERSION" \
    19    --build-arg SUBNET_EVM_COMMIT="$SUBNET_EVM_COMMIT" \
    20    --build-arg CURRENT_BRANCH="$CURRENT_BRANCH"