diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..a29cca324 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM rust:1-buster AS build-env + +# Install dependencies +RUN apt-get update && apt-get install --no-install-recommends -y build-essential clang + +WORKDIR /usr/src/builtin-actors + +# Grab the correct toolchain +RUN rustup toolchain install nightly && rustup target add wasm32-unknown-unknown + +ENTRYPOINT ["/bin/bash", "-c"] diff --git a/Makefile b/Makefile index 52e000163..1920f411f 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,9 @@ all-bundles: bundle-mainnet bundle-caterpillarnet bundle-butterflynet bundle-cal bundle-mainnet: deps-build BUILD_FIL_NETWORK=mainnet cargo run -- -o output/builtin-actors-mainnet.car +bundle-mainnet-repro: + docker run --rm -it -v `pwd`:/usr/src/builtin-actors -v `pwd`/output:/usr/src/builtin-actors/output:rshared builtin-actors "make bundle-mainnet" + bundle-caterpillarnet: deps-build BUILD_FIL_NETWORK=caterpillarnet cargo run -- -o output/builtin-actors-caterpillarnet.car