Skip to content

Commit d92ddcc

Browse files
committed
Add TODO comment to reduce docker build duration
1 parent 598660e commit d92ddcc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.generator/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,19 @@ RUN apt-get update && \
3939
ENV BAZELISK_VERSION=v1.26.0
4040

4141

42-
RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
42+
#RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
43+
RUN for PYTHON_VERSION in 3.13.5; do \
4344
# Install Python from source
4445
wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \
4546
tar -xvf Python-${PYTHON_VERSION}.tgz && \
4647
cd Python-${PYTHON_VERSION} && \
4748
./configure --enable-optimizations && \
4849
make altinstall && \
4950
cd / && \
50-
rm -rf Python-${PYTHON_VERSION}* && \
51+
rm -rf Python-${PYTHON_VERSION}* \
5152
# Install pip using the instructions below
5253
# https://pip.pypa.io/en/stable/installation/#ensurepip
53-
python${PYTHON_VERSION} -m ensurepip --upgrade \
54+
# python${PYTHON_VERSION} -m ensurepip --upgrade \
5455
; done
5556

5657
# Test Pip

cloudbuild.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# TODO(https://github.com/googleapis/google-cloud-python/issues/14142):
16+
# Reduce this timeout by moving the installation of Python runtimes to a separate base image
1517
timeout: 7200s # 2 hours
1618
steps:
1719
# This step builds the Docker image.

0 commit comments

Comments
 (0)