This repository has been archived by the owner on May 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test): use dynamic docker port (#517)
Co-authored-by: David <[email protected]>
- Loading branch information
1 parent
73a6047
commit 430abd6
Showing
4 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
#!/bin/bash | ||
|
||
source scripts/common.sh | ||
source internal/docker/docker_env.sh | ||
|
||
DOCKER_SERVICE_LIST=("l1_node" "l2_execution_engine") | ||
|
||
# start docker compose service list | ||
echo "start docker compose service: ${DOCKER_SERVICE_LIST[*]}" | ||
|
||
compose_up "${DOCKER_SERVICE_LIST[@]}" | ||
|
||
# check until L1 chain is ready | ||
until cast chain-id --rpc-url "$L2_EXECUTION_ENGINE_HTTP_ENDPOINT"; do | ||
sleep 1 | ||
done | ||
|
||
# show all the running containers | ||
echo | ||
docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Status}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters