Skip to content

Commit 74b2bd2

Browse files
authored
build: fix the docs build (googleapis#13444)
The docs build is failing with error `ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/workspace/.kokoro/requirements.txt'`. The root of the problem is that this file was deleted in googleapis#13433. I also needed to add the dependency `gcp-docuploader` to resolve the `/usr/local/bin/python3.10: No module named docuploader` error during the upload step This PR resolves the failure by adding the necessary requirements file under `/.kokoro/docker/docs`
1 parent 8a5fe26 commit 74b2bd2

File tree

5 files changed

+304
-6
lines changed

5 files changed

+304
-6
lines changed

.kokoro/docker/docs/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,8 @@ RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
8181
# Test pip
8282
RUN python3.10 -m pip
8383

84+
# Install build requirements
85+
COPY requirements.txt /requirements.txt
86+
RUN python3.10 -m pip install --require-hashes -r requirements.txt
87+
8488
CMD ["python3.10"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nox
2+
gcp-docuploader

0 commit comments

Comments
 (0)