-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1982 from blockstack/feat/net-test-docker
Add Dockerfile that can run net-test scripts
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM rust:buster | ||
|
||
WORKDIR /src | ||
|
||
COPY . . | ||
|
||
RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
|
||
RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/ | ||
RUN ln -s /bitcoin-0.20.0/bin/bitcoin-cli /bin/ | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y jq screen net-tools ncat | ||
|
||
RUN cargo build --workspace | ||
|
||
ENV PATH="/src/target/debug:/src/net-test/bin:${PATH}" | ||
|
||
WORKDIR /src/net-test/bin | ||
RUN bash |
This file contains 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
This file contains 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