@@ -2,23 +2,27 @@ Docker image containing rust nightly and some preinstalled crates used in CI.
22
33This image may be manually updated by running ` CI=true ./build.sh ` if you are a member
44of the [ Solana Labs] ( https://hub.docker.com/u/solanalabs/ ) Docker Hub
5- organization, but it is also automatically updated periodically by
6- [ this automation] ( https://buildkite.com/solana-labs/solana-ci-docker-rust-nightly ) .
5+ organization.
76
87## Moving to a newer nightly
98
9+ NOTE: Follow instructions in docker-rust/README.md before this when updating the stable
10+ rust version as well.
11+
1012We pin the version of nightly (see the ` ARG nightly=xyz ` line in ` Dockerfile ` )
1113to avoid the build breaking at unexpected times, as occasionally nightly will
1214introduce breaking changes.
1315
1416To update the pinned version:
17+ 1 . Edit ` Dockerfile ` to match the desired stable rust version to base on if needed.
15181 . Run ` ci/docker-rust-nightly/build.sh ` to rebuild the nightly image locally,
1619 or potentially ` ci/docker-rust-nightly/build.sh YYYY-MM-DD ` if there's a
1720 specific YYYY-MM-DD that is desired (default is today's build).
1821 Check https://rust-lang.github.io/rustup-components-history/ for build
1922 status
20231 . Update ` ci/rust-version.sh ` to reflect the new nightly ` YYY-MM-DD `
21- 1 . Run ` SOLANA_DOCKER_RUN_NOSETUID=1 ci/docker-run.sh --nopull solanalabs/rust-nightly:YYYY-MM-DD ci/test-coverage.sh `
24+ 1 . Run ` SOLANA_ALLOCATE_TTY=1 SOLANA_DOCKER_RUN_NOSETUID=1 ci/docker-run.sh --nopull solanalabs/rust-nightly:YYYY-MM-DD ci/test-checks.sh `
25+ and ` SOLANA_ALLOCATE_TTY=1 SOLANA_DOCKER_RUN_NOSETUID=1 ci/docker-run.sh --nopull solanalabs/rust-nightly:YYYY-MM-DD ci/test-coverage.sh [args]... `
2226 to confirm the new nightly image builds. Fix any issues as needed
23271 . Run ` docker login ` to enable pushing images to Docker Hub, if you're authorized.
24281 . Run ` CI=true ci/docker-rust-nightly/build.sh YYYY-MM-DD ` to push the new nightly image to dockerhub.com.
0 commit comments