diff --git a/Dockerfile b/Dockerfile index e9423f2..f0cfa9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Set default environment variables ENV ROOT_PATH=/opt/mev-commit ENV BINARY_PATH=${ROOT_PATH}/mev-commit -ENV DOMAIN=testnet.mev-commit.xyz +ENV DOMAIN=${DOMAIN} ENV ARTIFACTS_URL=https://github.com/primev/mev-commit/releases/latest/download - +ENV VERSION=${MEV_COMMIT_VERSION} +ENV ARTIFACTS_BASE_URL=https://github.com/primev/mev-commit/releases +ENV AUTO_DEPOSIT_VALUE=${AUTO_DEPOSIT_VALUE} # Create the directory for mev-commit RUN mkdir -p ${ROOT_PATH} WORKDIR ${ROOT_PATH} diff --git a/docker-compose.yml b/docker-compose.yml index f49e803..893b37d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,8 +4,9 @@ services: mev-commit-bidder: build: . environment: - DOMAIN: testnet.mev-commit.xyz + DOMAIN: ${DOMAIN} PRIVATE_KEY_BIDDER: ${PRIVATE_KEY_BIDDER} + AUTO_DEPOSIT_VALUE: ${AUTO_DEPOSIT_VALUE} networks: - app-network ports: diff --git a/entrypoint.sh b/entrypoint.sh index 80ab963..fb6ec93 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -45,6 +45,8 @@ FLAGS=( --peer-type "bidder" --bootnodes "${BOOTNODE}" --log-tags "service:docker-mev-commit-bidder" + --bidder-bid-timeout "15s" # Override timeout here + ) # Start mev-commit in the background @@ -64,7 +66,7 @@ wait_for_health() { # Function to send auto deposit request send_auto_deposit() { echo "Sending auto deposit request..." - response=$(curl --silent --show-error --output /dev/null --write-out "%{http_code}" --request POST "http://127.0.0.1:13523/v1/bidder/auto_deposit/1000000000000000000") + response=$(curl --silent --show-error --output /dev/null --write-out "%{http_code}" --request POST "http://127.0.0.1:13523/v1/bidder/auto_deposit/${AUTO_DEPOSIT_VALUE}") if [ "${response}" -ne 200 ]; then echo "Failed to send auto deposit request, status code: ${response}" else diff --git a/env.example b/env.example index f9f360c..fce26d1 100644 --- a/env.example +++ b/env.example @@ -1 +1,4 @@ -PRIVATE_KEY_BIDDER=your_private_key \ No newline at end of file +PRIVATE_KEY_BIDDER=your_private_key +MEV_COMMIT_VERSION=latest +DOMAIN=testnet.mev-commit.xyz +AUTO_DEPOSIT_VALUE=1000000000000000000 \ No newline at end of file