Skip to content

Commit

Permalink
fix docfx nox session
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea authored Jul 8, 2024
1 parent 9966518 commit 3bec6ad
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .kokoro/docker/docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,32 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /var/cache/apt/archives/*.deb

###################### Install python 3.9.13
###################### Install python 3.9.19

# Download python 3.9.13
RUN wget https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tgz
# Download python 3.9.19
RUN wget https://www.python.org/ftp/python/3.9.19/Python-3.9.19.tgz

# Extract files
RUN tar -xvf Python-3.9.13.tgz
RUN tar -xvf Python-3.9.19.tgz

# Install python 3.9.13
RUN ./Python-3.9.13/configure --enable-optimizations
# Install python 3.9.19
RUN ./Python-3.9.19/configure --enable-optimizations
RUN make altinstall

# Use python 3.9 by default
###################### Install python 3.10.14 for docfx session

# Download python 3.10.14
RUN wget https://www.python.org/ftp/python/3.10.14/Python-3.10.14.tgz

# Extract files
RUN tar -xvf Python-3.10.14.tgz

# Install python 3.10.14
RUN ./Python-3.10.14/configure --enable-optimizations
RUN make altinstall

###################### Use python 3.9 by default

RUN python3.9 -m venv /venv
ENV PATH /venv/bin:$PATH

Expand Down

0 comments on commit 3bec6ad

Please sign in to comment.