Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
# The `-s` flag takes a string of services to run.
# The `-l` flag will use mounted code.

VERSION=$(docker-compose --version)
node -e "
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove the dependency on node, this should be possible to do with sed or awk

const version = '$VERSION'.match(/([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?/);
if (version !== null) {
if (version[2] < 27 || version[3] < 3) {
console.log('Warning, update docker-compose')
}
}"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"
SERVICES='geth_l2 l1_chain batch_submitter deployer message_relayer data_transport_layer'
DOCKERFILE="docker-compose.yml"
Expand Down