mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
* [antithesis] Propose initial test setup * fixup: Simplify generation of docker compose artifacts * fixup: Ensure images will be pushed * fixup: Update to use refactored antithesis tooling from avalanchego * fixup: Update workload to use tmpnet * fixup: Add workload sanity check to CI job * fixup: Resolved workload errors * fixup: Generate deterministic keys * fixup: Fix invocation of gen_antithesis_compose_config * fixup: Update to use StoppedTimer * fixup: Respond to review feedback * fixup: Move embedded comment out of trigger action * fixup: Get image build test passing * fixup: Update how runtime plugin dir is provided * fixup: Update avalanchego version
32 lines
1.2 KiB
Bash
Executable File
32 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Directory above this script
|
|
SUBNET_EVM_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )
|
|
|
|
# Load the constants
|
|
source "$SUBNET_EVM_PATH"/scripts/constants.sh
|
|
|
|
# Load the versions
|
|
source "$SUBNET_EVM_PATH"/scripts/versions.sh
|
|
|
|
# WARNING: this will use the most recent commit even if there are un-committed changes present
|
|
BUILD_IMAGE_ID=${BUILD_IMAGE_ID:-"${CURRENT_BRANCH}"}
|
|
DOCKERHUB_TAG=${SUBNET_EVM_COMMIT::8}
|
|
|
|
VM_ID=${VM_ID:-"${DEFAULT_VM_ID}"}
|
|
if [[ "${VM_ID}" != "${DEFAULT_VM_ID}" ]]; then
|
|
DOCKERHUB_TAG="${VM_ID}-${DOCKERHUB_TAG}"
|
|
fi
|
|
|
|
# Default to the release image. Will need to be overridden when testing against unreleased versions.
|
|
AVALANCHE_NODE_IMAGE=${AVALANCHE_NODE_IMAGE:-"avaplatform/avalanchego:${AVALANCHE_VERSION}"}
|
|
|
|
echo "Building Docker Image: $DOCKERHUB_REPO:$BUILD_IMAGE_ID based of AvalancheGo@$AVALANCHE_VERSION"
|
|
docker build -t "$DOCKERHUB_REPO:$BUILD_IMAGE_ID" -t "$DOCKERHUB_REPO:${DOCKERHUB_TAG}" \
|
|
"$SUBNET_EVM_PATH" -f "$SUBNET_EVM_PATH/Dockerfile" \
|
|
--build-arg AVALANCHE_NODE_IMAGE="$AVALANCHE_NODE_IMAGE" \
|
|
--build-arg SUBNET_EVM_COMMIT="$SUBNET_EVM_COMMIT" \
|
|
--build-arg CURRENT_BRANCH="$CURRENT_BRANCH" \
|
|
--build-arg VM_ID="$VM_ID" |