diff --git a/ci/docker-rust-nightly/README.md b/ci/docker-rust-nightly/README.md index 62741deb1b..16e36d2e11 100644 --- a/ci/docker-rust-nightly/README.md +++ b/ci/docker-rust-nightly/README.md @@ -7,7 +7,7 @@ organization, but it is also automatically updated periodically by ## Moving to a newer nightly -We pin the version of nightly (see the `ARG nightly=xyz` line in `Dockerfile) +We pin the version of nightly (see the `ARG nightly=xyz` line in `Dockerfile`) to avoid the build breaking at unexpected times, as occasionally nightly will introduce breaking changes. @@ -16,6 +16,21 @@ To update the pinned version: 1. Run `ci/docker-rust-nightly/build.sh` to rebuild the nightly image locally 1. Run `SOLANA_DOCKER_RUN_NOSETUID=1 ci/docker-run.sh --nopull solanalabs/rust-nightly ci/test-nightly.sh` to confirm the new nightly image builds. Fix any issues as needed +1. Run `docker login` to enable pushing images to Docker Hub, if you're authorized. 1. Run `CI=true ci/docker-rust-nightly/build.sh` to push the new nightly image to dockerhub.com. **Note that all CI may be broken now until the next step is completed.** 1. Merge the update to `ARG nightly=xyz` and any codebase adjustments needed. + + +## Troubleshooting + +### Resource is denied + +When running `CI=true ci/docker-rust-nightly/build.sh`, you see: + +``` +denied: requested access to the resource is denied +``` + +Run `docker login` to enable pushing images to Docker Hub. Contact @mvines or @garious +to get write access.