Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
6e70f430
Commit
6e70f430
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Output ndf in localnetwork run script
parent
781bb111
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
localNetwork/run.sh
+28
-0
28 additions, 0 deletions
localNetwork/run.sh
with
28 additions
and
0 deletions
localNetwork/run.sh
+
28
−
0
View file @
6e70f430
...
@@ -120,6 +120,34 @@ echo "\nNetwork rounds have run. You may now attempt to connect."
...
@@ -120,6 +120,34 @@ echo "\nNetwork rounds have run. You may now attempt to connect."
sleep
4
sleep
4
echo
"localhost:8200"
>
results/startgwserver.txt
echo
"Setting up NDF for clients..."
CMD
=
"openssl s_client -showcerts -connect
$(
tr
-d
'[:space:]'
< results/startgwserver.txt
)
"
echo
$CMD
eval
$CMD
< /dev/null 2>&1
>
"results/startgwcert.bin"
CMD
=
"cat results/startgwcert.bin | openssl x509 -outform PEM"
echo
$CMD
eval
$CMD
>
"results/startgwcert.pem"
head
"results/startgwcert.pem"
CLIENTCMD
=
"../bin/client getndf --gwhost
$(
tr
-d
'[:space:]'
< results/startgwserver.txt
)
--cert results/startgwcert.pem"
eval
$CLIENTCMD
>>
results/ndf.json 2>&1 &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
cat
results/ndf.json | jq
.
|
head
-5
file results/ndf.json
if
[
!
-s
results/ndf.json
]
then
echo
"results/ndf.json is empty, cannot proceed"
exit
-1
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment