Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goshimmer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
iota-imt
goshimmer
Commits
aa36eb3b
Commit
aa36eb3b
authored
4 years ago
by
capossele
Browse files
Options
Downloads
Patches
Plain Diff
removes client_script.sh
parent
907689f0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/integration-tests/tester/data/client-script.sh
+0
-59
0 additions, 59 deletions
tools/integration-tests/tester/data/client-script.sh
with
0 additions
and
59 deletions
tools/integration-tests/tester/data/client-script.sh
deleted
100644 → 0
+
0
−
59
View file @
907689f0
#!/bin/sh
# read this container's IP address
IP_ADDR
=
`
ip a |
grep
global |
grep
-oE
"
\b
([0-9]{1,3}
\.
){3}[0-9]{1,3}
\b
"
|
head
-n
1
`
IP_ADDR_PORT
=
"
${
IP_ADDR
}
:8000"
# SHARED_FOLDER="/data"
# PUBLIC_KEY_FILE="${SHARED_FOLDER}/${PORT}.public"
# GROUP_FILE="${SHARED_FOLDER}/group.toml"
# Generate key pair, add it to the shared file /data/group.toml
echo
"Generating key pair..."
rm
-rf
/root/.drand/
drand generate-keypair
--tls-disable
"
${
IP_ADDR_PORT
}
"
# cp /root/.drand/key/drand_id.public "${PUBLIC_KEY_FILE}"
# chmod ugo+rwx "${PUBLIC_KEY_FILE}"
# PUBLIC_KEY=`cat /root/.drand/key/drand_id.public`
# # echo -en "[[Nodes]]\n${PUBLIC_KEY}\n\n" >> "${GROUP_FILE}"
# # echo
# # On MacOS, you can't ping/curl the container from the host. Here's a fix
# apk add curl
# cat << FIX_SCRIPT > /bin/call_api
# #!/bin/sh
# echo "Running curl -s ${IP_ADDR_PORT}/api/public from inside the container:"
# curl -s ${IP_ADDR_PORT}/api/public
# FIX_SCRIPT
# chmod ug+x /bin/call_api
# Boot the drand deamon in background
nohup
drand start
--tls-disable
--goshimmerAPIurl
"http://iota_goshimmer:8080"
&
# add "--verbose 2" here for more details
# Wait for all containers to have done the same
sleep
5
# Now nodes wait for the leader to run DKG; leader starts DKG
if
[[
"
$LEADER
"
==
1
]]
;
then
# sleep 5
# echo "We are the leader, checking group..."
# drand check-group "${GROUP_FILE}"
# echo
echo
"Running DKG..."
# drand share --leader "${GROUP_FILE}"
drand share
--leader
--nodes
5
--threshold
3
--secret
mysecret
--period
10s
else
# drand share "${GROUP_FILE}"
sleep
5
drand share
--connect
"drand_1:8000"
--tls-disable
--nodes
5
--threshold
3
--secret
mysecret
fi
# Let the deamon alive for long enough
while
true
do
sleep
2
done
echo
"Done"
\ No newline at end of file
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