Update instructions to upgrade nightly docker image
This commit is contained in:
@ -7,7 +7,7 @@ organization, but it is also automatically updated periodically by
|
|||||||
|
|
||||||
## Moving to a newer nightly
|
## 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
|
to avoid the build breaking at unexpected times, as occasionally nightly will
|
||||||
introduce breaking changes.
|
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 `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
|
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
|
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.
|
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.**
|
**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.
|
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.
|
||||||
|
Reference in New Issue
Block a user