forked from ZcashFoundation/zebra
-
Notifications
You must be signed in to change notification settings - Fork 1
Add dockerfile and regtest files #70
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
2db59c6
Add dockerfile and regtest-config files
seniakalma 95cd946
Test fix
seniakalma b1ecb69
Update dockerfile
seniakalma aef9d6d
Update dockerfile2
seniakalma b1a692a
Update dockerfile3
seniakalma 9d356b8
Update dockerfile
seniakalma b61489b
Fix
seniakalma b42da49
Revert to built
seniakalma 487d5f1
Adjust
seniakalma 0b63edd
Adjust
seniakalma d542531
Adjust
seniakalma 91b9760
Adjust
seniakalma 937d812
Adjust
seniakalma 91819f8
Fix dockerignore..
seniakalma dd2b2a6
Fix typo
seniakalma 9859d4b
Merge branch 'zsa-integration-demo' into arseni-adjust-dockerfiles
seniakalma e09ad24
Update .dockerignore
seniakalma fdb4c48
Clean dockerfile
seniakalma 9bacc76
Update dockerfile
seniakalma e0343c7
Update dockerfile
seniakalma 6497738
Update dockerfile
seniakalma 90cc5e7
Update dockerfile
seniakalma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,3 +21,4 @@ | |
| !zebra-* | ||
| !zebrad | ||
| !docker/entrypoint.sh | ||
| !testnet-single-node-deploy/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,26 @@ | ||
| # Use Rust 1.81.0 as the base image | ||
| FROM rust:1.81.0 | ||
|
|
||
| # Install required dependencies | ||
| RUN apt-get update && apt-get install -y git build-essential clang | ||
| # Set up Rust and cargo | ||
| RUN apt-get update && apt-get install git build-essential clang -y | ||
|
|
||
| # Copy the entire project, except whats defined in .dockerignore | ||
| # Set the working directory to the repo root | ||
| WORKDIR /app | ||
|
|
||
| # Copy the entire repository content (from the parent zebra directory) | ||
| COPY . . | ||
seniakalma marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Build the 'zebrad' binary with the 'getblocktemplate-rpcs' feature enabled | ||
| RUN ls -la /app/ | ||
seniakalma marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| RUN find /app -name "*testnet*" -type d | ||
| RUN find /app -name "*regtest*" -type f | ||
seniakalma marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| RUN pwd && ls -la | ||
seniakalma marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Build zebrad with the required features | ||
| RUN cargo build --release --package zebrad --bin zebrad --features="getblocktemplate-rpcs" | ||
|
|
||
| # Expose the default Zebra node RPC port | ||
| RUN ls -la target/release/ | ||
| RUN find target/release -name "*zebr*" -type f | ||
seniakalma marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| EXPOSE 18232 | ||
|
|
||
| # Set the entrypoint | ||
| ENTRYPOINT ["target/release/zebrad", "-c", "regtest-config.toml"] | ||
| # Run the zebra node | ||
| ENTRYPOINT ["target/release/zebrad", "-c", "/app/testnet-single-node-deploy/regtest-config.toml"] | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.