-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile for building/installing blockstack-core, Dockerfile for CI…
… with codecov
- Loading branch information
Showing
3 changed files
with
38 additions
and
5 deletions.
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
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 |
---|---|---|
@@ -1,5 +1,23 @@ | ||
FROM python:onbuild | ||
ENV PORT 8080 | ||
EXPOSE 8080 | ||
ENTRYPOINT ["python"] | ||
CMD ["app.py"] | ||
FROM rust:latest | ||
|
||
WORKDIR /src/ | ||
|
||
# Hacks to cache the build dependencies. | ||
|
||
RUN USER=root cargo new --bin blockstack-core | ||
WORKDIR /src/blockstack-core | ||
|
||
COPY ./Cargo.lock ./Cargo.lock | ||
COPY ./Cargo.toml ./Cargo.toml | ||
|
||
RUN cargo build --release | ||
RUN rm src/*.rs | ||
RUN rm ./target/release/deps/blockstack_core* | ||
|
||
# copy your source tree | ||
COPY . . | ||
|
||
RUN cargo build --release | ||
RUN cargo install --path . | ||
|
||
CMD ["blockstack-core"] |
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,12 @@ | ||
FROM circleci/rust | ||
|
||
WORKDIR /kcov/ | ||
|
||
RUN sudo apt-get update | ||
RUN sudo apt-get install cmake binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev git | ||
|
||
ENV KCOV_VERSION 34 | ||
RUN sudo git clone --single-branch --branch v$KCOV_VERSION https://github.com/SimonKagstrom/kcov.git | ||
RUN cd kcov && sudo cmake . && sudo make -j$(nproc) && sudo make install | ||
|
||
RUN cargo install cargo-kcov |