Skip to content

Commit

Permalink
chore: use deploy/replica=0 in compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
gakonst committed Apr 30, 2021
1 parent e16ff03 commit 87350f4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ops/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ services:

integration_tests:
image: ethereumoptimism/integration-tests
scale: 0
deploy:
replicas: 0
build:
context: ..
dockerfile: ./ops/docker/Dockerfile.integration-tests
Expand All @@ -140,3 +141,4 @@ services:
L1_URL: http://l1_chain:8545
L2_URL: http://l2geth:8545
URL: http://deployer:8081/addresses.json
ENABLE_GAS_REPORT: 1
8 changes: 7 additions & 1 deletion ops/scripts/build-ci.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# build in 2 steps
function build_images() {
docker-compose build --parallel -- builder l2geth l1_chain
docker-compose build --parallel -- deployer dtl batch_submitter relayer integration_tests
docker-compose build --parallel -- deployer dtl batch_submitter relayer integration_test
}

function build_dependencies() {
yarn
yarn build
}

build_images &
build_dependencies &

wait
2 changes: 1 addition & 1 deletion ops/scripts/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ curl \
--retry $RETRIES \
--retry-delay 3 \
-d $JSON \
--output /dev/null \
$L2_URL

npx hardhat test --network optimism --no-compile
cat gas-report.txt

0 comments on commit 87350f4

Please sign in to comment.