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
7e6f3933
Commit
7e6f3933
authored
Apr 30, 2021
by
Liam Horne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: add --fail and --show-error to usage of curl for awaing service readiness
parent
f5c29ddd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
5 deletions
+13
-5
batches.sh
ops/scripts/batches.sh
+4
-2
deployer.sh
ops/scripts/deployer.sh
+2
-0
dtl.sh
ops/scripts/dtl.sh
+1
-1
geth.sh
ops/scripts/geth.sh
+3
-1
relayer.sh
ops/scripts/relayer.sh
+3
-1
No files found.
ops/scripts/batches.sh
View file @
7e6f3933
...
...
@@ -3,13 +3,15 @@ RETRIES=${RETRIES:-40}
if
[[
!
-z
"
$URL
"
]]
;
then
# get the addrs from the URL provided
ADDRESSES
=
$(
curl
--silent
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
ADDRESSES
=
$(
curl
--
fail
--show-error
--
silent
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
# set the env
export
ADDRESS_MANAGER_ADDRESS
=
$(
echo
$ADDRESSES
| jq
-r
'.AddressManager'
)
fi
# waits for l2geth to be up
curl
--silent
\
curl
--fail
\
--show-error
\
--silent
\
--retry-connrefused
\
--retry
$RETRIES
\
--retry-delay
1
\
...
...
ops/scripts/deployer.sh
View file @
7e6f3933
...
...
@@ -6,6 +6,8 @@ JSON='{"jsonrpc":"2.0","id":0,"method":"net_version","params":[]}'
# wait for the base layer to be up
curl
\
--fail
\
--show-error
\
--silent
\
-H
"Content-Type: application/json"
\
--retry-connrefused
\
...
...
ops/scripts/dtl.sh
View file @
7e6f3933
...
...
@@ -3,7 +3,7 @@ RETRIES=${RETRIES:-60}
if
[[
!
-z
"
$URL
"
]]
;
then
# get the addrs from the URL provided
ADDRESSES
=
$(
curl
--silent
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
ADDRESSES
=
$(
curl
--
fail
--show-error
--
silent
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
# set the env
export
DATA_TRANSPORT_LAYER__ADDRESS_MANAGER
=
$(
echo
$ADDRESSES
| jq
-r
'.AddressManager'
)
fi
...
...
ops/scripts/geth.sh
View file @
7e6f3933
...
...
@@ -4,7 +4,7 @@ VERBOSITY=${VERBOSITY:-6}
if
[[
!
-z
"
$URL
"
]]
;
then
# get the addrs from the URL provided
ADDRESSES
=
$(
curl
--silent
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
ADDRESSES
=
$(
curl
--
fail
--show-error
--
silent
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
function
envSet
()
{
VAR
=
$1
...
...
@@ -25,6 +25,8 @@ fi
# wait for the dtl to be up, else geth will crash if it cannot connect
curl
\
--fail
\
--show-error
\
--silent
\
--output
/dev/null
\
--retry-connrefused
\
...
...
ops/scripts/relayer.sh
View file @
7e6f3933
...
...
@@ -3,13 +3,15 @@ RETRIES=${RETRIES:-60}
if
[[
!
-z
"
$URL
"
]]
;
then
# get the addrs from the URL provided
ADDRESSES
=
$(
curl
--silent
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
ADDRESSES
=
$(
curl
--
fail
--show-error
--
silent
--retry-connrefused
--retry
$RETRIES
--retry-delay
5
$URL
)
# set the env
export
ADDRESS_MANAGER_ADDRESS
=
$(
echo
$ADDRESSES
| jq
-r
'.AddressManager'
)
fi
# waits for l2geth to be up
curl
\
--fail
\
--show-error
\
--silent
\
--output
/dev/null
\
--retry-connrefused
\
...
...
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