-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaging #64
Packaging #64
Conversation
Pull Request Test Coverage Report for Build 2005235636Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
- import the mino crontroller to use the public IP instead of 127.0.0.1 - updates the smart contract to use a specified folder. Also makes it configurable via the CLI - fixes wrong use of the temp folder in the combine share - fixes wrong commands in the README - updates uses of 127.0.0.1 to use the default 0.0.0.0 IP - update the start-dvoting script to use added CLI arguments - adds instructions on how to operate a node and setup the chain -
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can only imagine the amount of work that went into this, good job !
I do feel that there are still a few rough edges worth cleaning up before the first release though.
- Create .deb package: | ||
|
||
```sh | ||
make deb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it hard for make deb
to automatically make
the unikernel and do all of the above? If not, it might be worth it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not feasible yet, because there is a 'make menuconfig' step where we have to modify the config. We could dig into that to have a default config, but it might take quite some time for little value right now.
contracts/evoting/unikernel/apps/combine_shares/start-unikernel
Outdated
Show resolved
Hide resolved
export dela_port="9000" | ||
export prometheus_addr="127.0.0.1:9100" | ||
export proxy_addr="127.0.0.1:9080" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we simply move these 3 lines into network.env
?
Adds updates to make the setup run on detached VMs
contracts/evoting/evoting.go
Outdated
err = exportPubshares(tmp, election.PubsharesUnits, numBallots, numChunks) | ||
dela.Logger.Info().Msgf("using the following folder: %s", tmp) | ||
|
||
err = exportPubshares(filepath.Join(e.exportFolder, tmp), election.PubsharesUnits, numBallots, numChunks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filepath.Join(e.exportFolder, tmp)
is recomputed multiple times.
Consider using a variable.
// start the overlay on the start command, and make sure resources are cleaned | ||
// when the CLI daemon is stopping. | ||
// | ||
// Documentation Last Review: 07.10.2020 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question
contracts/evoting/unikernel/apps/combine_shares/start-unikernel
Outdated
Show resolved
Hide resolved
- Create .deb package: | ||
|
||
```sh | ||
make deb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not feasible yet, because there is a 'make menuconfig' step where we have to modify the config. We could dig into that to have a default config, but it might take quite some time for little value right now.
[Service] | ||
User=dvoting | ||
|
||
ExecStartPre=/bin/bash -c "rm -f /var/opt/dedis/dvoting/data/dela/daemon.sock" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be solved later
export dela_bin=".../cli/memcoin" | ||
export dela_data=".../tmp/dela" | ||
export dela_bin="../../../../../memcoin" | ||
export dela_data="/tmp/dela" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure about this ?
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go! 🚀
The new scripts provided allow to install and start the unikernel service and then the voting node.