Skip to content

Commit eb2946a

Browse files
fix: install doc uploader and releasetool with hashes (#227)
Hashes ensure we're always running a known version. Installing them in the docker image means the publish and release scripts don't need to install them with a pip command.
1 parent 0410679 commit eb2946a

File tree

7 files changed

+1119
-2
lines changed

7 files changed

+1119
-2
lines changed

node/12-user/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ RUN pyenv install 3.7.4 && \
6464
pyenv global 3.7.4 && \
6565
python3 -m pip install --upgrade pip setuptools
6666

67+
# Install gcp-uploader and gcp-releasetool and their dependencies.
68+
COPY requirements.txt requirements.txt
69+
RUN python3 -m pip install --require-hashes -r requirements.txt
70+
6771
# Setup Cloud SDK
6872
WORKDIR /home/node
6973
ENV CLOUD_SDK_VERSION=261.0.0 \

node/12-user/requirements.txt

Lines changed: 367 additions & 0 deletions
Large diffs are not rendered by default.

node/14-user/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ RUN pyenv install 3.7.4 && \
6464
pyenv global 3.7.4 && \
6565
python3 -m pip install --upgrade pip setuptools
6666

67+
# Install gcp-uploader and gcp-releasetool and their dependencies.
68+
COPY requirements.txt requirements.txt
69+
RUN python3 -m pip install --require-hashes -r requirements.txt
70+
6771
# Setup Cloud SDK
6872
WORKDIR /home/node
6973
ENV CLOUD_SDK_VERSION=303.0.0 \

node/14-user/requirements.txt

Lines changed: 367 additions & 0 deletions
Large diffs are not rendered by default.

node/16-user/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,14 @@ RUN echo 'export PATH="/home/node/.pyenv/bin:$PATH"' >> ~/.profile && \
6060
ENV PATH="/home/node/.pyenv/bin:/home/node/.pyenv/shims:${PATH}"
6161

6262
# Install python
63-
RUN pyenv install 3.7.1 && \
64-
pyenv global 3.7.1 && \
63+
RUN pyenv install 3.7.4 && \
64+
pyenv global 3.7.4 && \
6565
python3 -m pip install --upgrade pip setuptools
6666

67+
# Install gcp-uploader and gcp-releasetool and their dependencies.
68+
COPY requirements.txt requirements.txt
69+
RUN python3 -m pip install --require-hashes -r requirements.txt
70+
6771
# Setup Cloud SDK
6872
WORKDIR /home/node
6973
ENV CLOUD_SDK_VERSION=261.0.0 \

node/16-user/requirements.txt

Lines changed: 367 additions & 0 deletions
Large diffs are not rendered by default.

node/requirements.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
gcp-docuploader
2+
gcp-releasetool
3+
importlib-metadata
4+
typing-extensions

0 commit comments

Comments
 (0)