Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In PR #12634, `.kokoro/docker/docs/Dockerfile` was updated to use `ubuntu:24.04`. The previous version `ubuntu:22.04` had Python 3.10 installed by default. In `ubuntu:24.04`, Python 3.12 is the default version. We need to restore `Python 3.10` which is used in both the `docs` and `docfx` nox sessions. https://github.com/googleapis/google-cloud-python/blob/81f6e2b4837e7174b2c7a8866ebba53eba25a3c7/packages/google-cloud-access-approval/noxfile.py#L36 https://github.com/googleapis/google-cloud-python/blob/81f6e2b4837e7174b2c7a8866ebba53eba25a3c7/packages/google-cloud-access-approval/noxfile.py#L290-L291 https://github.com/googleapis/google-cloud-python/blob/81f6e2b4837e7174b2c7a8866ebba53eba25a3c7/packages/google-cloud-access-approval/noxfile.py#L325-L326 I tested that this builds successfully by running `docker build -t test_docs_mono_repo .` in the directory `kokoro/docker/docs` I then ran the nox sessions `docs` and `docfx`. Use this command to run the docker container and enter into bash ``` docker run --rm -it --entrypoint /bin/bash test_docs_mono_repo ``` Then in the docker container, run the following commands ``` git clone https://github.com/googleapis/google-cloud-python.git cd google-cloud-python/packages/google-cloud-access-approval nox -s docs nox -s docfx ```
- Loading branch information