Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit d0f2b55

Browse files
authored
change (dockerfile): add latest contract (#241)
* change (dockerfile): add latest contract * change (dockerfile): add workdir and default shell * change (dockerfile): pin contract version
1 parent 3ec7097 commit d0f2b55

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

dockerfiles/ink-ci-linux/Dockerfile

+11-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ dockerfiles/ink-ci-linux/README.md" \
1717
io.parity.image.revision="${VCS_REF}" \
1818
io.parity.image.created="${BUILD_DATE}"
1919

20+
WORKDIR /builds
21+
ENV SHELL /bin/bash
22+
2023
RUN set -eux; \
2124
# The supported Rust nightly version must support the following components
2225
# to allow for a functioning CI pipeline:
@@ -35,12 +38,18 @@ RUN set -eux; \
3538
# Installs the latest common nightly for the listed components,
3639
# adds those components, wasm target and sets the profile to minimal
3740
rustup toolchain install nightly --target wasm32-unknown-unknown \
38-
--profile minimal --component rustfmt clippy miri rust-src; \
41+
--profile minimal --component rustfmt clippy miri rust-src; \
3942
rustup default nightly; \
4043
# We require `xargo` so that `miri` runs properly
4144
# We require `grcov` for coverage reporting and `rust-covfix` to improve it.
42-
cargo install grcov rust-covfix cargo-contract xargo; \
45+
cargo install grcov rust-covfix xargo; \
46+
# download the cargo-contracts binary tagged v0.8-ink-ci
47+
curl -L "https://gitlab.parity.io/parity/cargo-contract/-/jobs/artifacts/v0.8-ink-ci/raw/artifacts/cargo-contract/cargo-contract?job=build" \
48+
-o /usr/local/cargo/bin/cargo-contract; \
49+
chmod +x /usr/local/cargo/bin/cargo-contract; \
50+
# versions
4351
rustup show; \
4452
cargo --version; \
53+
cargo-contract --version; \
4554
# Clean up and remove compilation artifacts that a cargo install creates (>250M).
4655
rm -rf "${CARGO_HOME}/registry" "${CARGO_HOME}/git" /root/.cache/sccache;

0 commit comments

Comments
 (0)