Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
1743a6d1
Unverified
Commit
1743a6d1
authored
Apr 21, 2021
by
Mark Tyneway
Committed by
GitHub
Apr 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ops: cleaner docker-compose startup logs (#532)
parent
1024d415
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
8 deletions
+32
-8
batches.sh
ops/scripts/batches.sh
+7
-2
deployer.sh
ops/scripts/deployer.sh
+8
-1
dtl.sh
ops/scripts/dtl.sh
+1
-1
geth.sh
ops/scripts/geth.sh
+8
-2
relayer.sh
ops/scripts/relayer.sh
+8
-2
No files found.
ops/scripts/batches.sh
View file @
1743a6d1
...
...
@@ -2,12 +2,17 @@
RETRIES
=
${
RETRIES
:-
40
}
# get the addrs from the URL provided
ADDRESSES
=
$(
curl
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
ADDRESSES
=
$(
curl
--
silent
--
retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
# set the env
export
ADDRESS_MANAGER_ADDRESS
=
$(
echo
$ADDRESSES
| jq
-r
'.AddressManager'
)
# waits for l2geth to be up
curl
--retry-connrefused
--retry
$RETRIES
--retry-delay
1
$L2_NODE_WEB3_URL
curl
--silent
\
--retry-connrefused
\
--retry
$RETRIES
\
--retry-delay
1
\
--output
/dev/null
\
$L2_NODE_WEB3_URL
# go
exec
node ./exec/run-batch-submitter.js
ops/scripts/deployer.sh
View file @
1743a6d1
...
...
@@ -4,7 +4,14 @@ RETRIES=${RETRIES:-20}
JSON
=
'{"jsonrpc":"2.0","id":0,"method":"net_version","params":[]}'
# wait for the base layer to be up
curl
-H
"Content-Type: application/json"
--retry-connrefused
--retry
$RETRIES
--retry-delay
1
-d
$JSON
$L1_NODE_WEB3_URL
curl
\
--silent
\
-H
"Content-Type: application/json"
\
--retry-connrefused
\
--retry
$RETRIES
\
--retry-delay
1
\
-d
$JSON
\
$L1_NODE_WEB3_URL
yarn run deploy
...
...
ops/scripts/dtl.sh
View file @
1743a6d1
...
...
@@ -2,7 +2,7 @@
RETRIES
=
${
RETRIES
:-
60
}
# get the addrs from the URL provided
ADDRESSES
=
$(
curl
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
ADDRESSES
=
$(
curl
--
silent
--
retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
# set the env
export
DATA_TRANSPORT_LAYER__ADDRESS_MANAGER
=
$(
echo
$ADDRESSES
| jq
-r
'.AddressManager'
)
...
...
ops/scripts/geth.sh
View file @
1743a6d1
#!/bin/bash
RETRIES
=
${
RETRIES
:-
40
}
# get the addrs from the URL provided
ADDRESSES
=
$(
curl
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
ADDRESSES
=
$(
curl
--
silent
--
retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
function
envSet
()
{
VAR
=
$1
...
...
@@ -20,6 +20,12 @@ if [ $ETH1_L1_ETH_GATEWAY_ADDRESS == null ]; then
fi
# wait for the dtl to be up, else geth will crash if it cannot connect
curl
--retry-connrefused
--retry
$RETRIES
--retry-delay
2
$ROLLUP_CLIENT_HTTP
curl
\
--silent
\
--output
/dev/null
\
--retry-connrefused
\
--retry
$RETRIES
\
--retry-delay
1
\
$ROLLUP_CLIENT_HTTP
exec
geth
--verbosity
=
6
ops/scripts/relayer.sh
View file @
1743a6d1
...
...
@@ -2,12 +2,18 @@
RETRIES
=
${
RETRIES
:-
60
}
# get the addrs from the URL provided
ADDRESSES
=
$(
curl
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
ADDRESSES
=
$(
curl
--
silent
--
retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
# set the env
export
ADDRESS_MANAGER_ADDRESS
=
$(
echo
$ADDRESSES
| jq
-r
'.AddressManager'
)
# waits for l2geth to be up
curl
--retry-connrefused
--retry
$RETRIES
--retry-delay
1
$L2_NODE_WEB3_URL
curl
\
--silent
\
--output
/dev/null
\
--retry-connrefused
\
--retry
$RETRIES
\
--retry-delay
1
\
$L2_NODE_WEB3_URL
# go
exec
node ./exec/run-message-relayer.js
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment