-
Notifications
You must be signed in to change notification settings - Fork 443
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
WIP: Dockerize #39
WIP: Dockerize #39
Conversation
Codecov Report
@@ Coverage Diff @@
## master #39 +/- ##
==========================================
- Coverage 61.64% 61.46% -0.19%
==========================================
Files 15 15
Lines 1095 1095
==========================================
- Hits 675 673 -2
- Misses 354 356 +2
Partials 66 66
Continue to review full report at Codecov.
|
@alpe I thought last night and there are at least 2 missing features here:
If you can think of anything else useful for local testing/CI, please add that as well. |
Very nice to see this working now! 🎉
This would not be hard to implement but maybe hard to communicate. Instead of running a simple script people would need to think about arguments now and remember them for later use. My second note is about the password entry. It is already not very satisfying to run the script for generating a single key. If we can use a default password that's not an issue.
Not sure if I understood it correct. For CI we would need some defined state. IMHO this can be achieved best by mounting predefined |
Dockerfile_demo
Outdated
@@ -0,0 +1,30 @@ | |||
# Simple usage with a mounted data directory: |
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.
let's delete this file
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.
and the the docker_demo.md
@@ -2,32 +2,31 @@ | |||
# > docker build -t gaia . | |||
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.wasmd:/root/.wasmd -v ~/.wasmcli:/root/.wasmcli gaia wasmd init | |||
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.wasmd:/root/.wasmd -v ~/.wasmcli:/root/.wasmcli gaia wasmd start | |||
FROM golang:alpine AS build-env | |||
FROM golang:1.13-buster AS build-env |
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.
The comments above are outdated. Proper ones are in the README. let's remove them here.
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.
Yes, let's remove all docs except readme
# tendermint p2p | ||
EXPOSE 26656 | ||
# tendermint rpc | ||
EXPOSE 26657 |
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.
👍 good for doc
My idea is I, dev, can run setup.sh to make an initial CI state. And I save that to disk/commit to git repo. Thus, I also want setup to be easy to use for such cases. In the CI I only use run with the predefined state and it doesn't need a password |
If you can get the script to run non interactive without password entry, even default password, that would be great. Maybe another name to leave both options? There was just a PR #40 about using Keyring headless, maybe that has some useful tips |
Closes #38
Check README for how to run local Docker image for testing
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry to the
Unreleased
section inCHANGELOG.md
Reviewed
Files changed
in the github PR explorerFor Admin Use: