Skip to content

Commit

Permalink
chore: upgrade centos7 python version to 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthemanuel committed Sep 12, 2024
1 parent dc421e7 commit 4df341f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base-internal/releases/centos-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ RUN for repo in /etc/yum.repos.d/CentOS-SCLo-scl*.repo; do \
done && yum clean all

# Install dependencies for building the addon and setting devtoolset-8 as the default compiler
RUN yum -y install curl python3 make atk-devel atk java-atk-wrapper at-spi2-atk gtk3 libXt libdrm mesa-libgbm Xvfb devtoolset-8-gcc devtoolset-8-gcc-c++
RUN yum -y install curl python3 make atk-devel atk java-atk-wrapper at-spi2-atk gtk3 libXt libdrm mesa-libgbm Xvfb devtoolset-8-gcc devtoolset-8-gcc-c++ gcc openssl-devel bzip2-devel libffi-devel zlib-devel
RUN echo >> /etc/profile.d/devtoolset-8.sh 'source scl_source enable devtoolset-8'
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
RUN echo >> /etc/profile.d/nvm.sh 'source ~/.nvm/nvm.sh'
RUN curl -o Python-3.8.0.tgz https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
RUN tar xvf Python-3.8.0.tgz
RUN cd Python-3.8.0 && ./configure --enable-optimizations --prefix=/usr && make altinstall
RUN rm /usr/bin/python3 && ln -s /usr/bin/python3.8 /usr/bin/python3
# Node 16 is the most recent version that supports CentOS 7. We only need it to call the
# build script for lib/addon, so there should be minimal risk of security issues.
RUN source ~/.nvm/nvm.sh && nvm install 16.20.2 && npm install -g yarn
Empty file modified base-internal/releases/centos-7/build.sh
100644 → 100755
Empty file.

0 comments on commit 4df341f

Please sign in to comment.