Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make release-ci toolchain version matches testing ci #55

Merged
merged 4 commits into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 2 additions & 25 deletions dockerfiles/release-ci.DockerFile
Original file line number Diff line number Diff line change
@@ -1,36 +1,14 @@
FROM centos:centos7

# GCC version
ARG DEVTOOLSET_VERSION=11

RUN yum install -y centos-release-scl epel-release \
&& yum update -y \
&& yum clean all

# install devtools and [enable it](https://access.redhat.com/solutions/527703)
RUN yum install -y \
devtoolset-${DEVTOOLSET_VERSION}-gcc \
devtoolset-${DEVTOOLSET_VERSION}-gcc-c++ \
devtoolset-${DEVTOOLSET_VERSION}-binutils \
git vim-common wget unzip which java-11-openjdk-devel.x86_64 \
libtool autoconf make ninja-build \
&& yum clean all \
&& echo "source scl_source enable devtoolset-${DEVTOOLSET_VERSION}" > /etc/profile.d/enable_gcc_toolset.sh

ENV PATH="/opt/rh/devtoolset-${DEVTOOLSET_VERSION}/root/usr/bin:${PATH}"

RUN wget --no-check-certificate https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/nasm-2.16.01.tar.gz \
&& tar zxf nasm-2.16.01.tar.gz \
&& rm -f nasm-2.16.01.tar.gz \
&& cd nasm-2.16.01 \
&& ./configure \
&& make install \
&& cd .. \
&& rm -rf nasm-2.16.01

RUN wget https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3-linux-x86_64.sh \
&& sh cmake-3.26.3-linux-x86_64.sh --prefix=/usr --skip-license \
&& rm -f cmake-3.26.3-linux-x86_64.sh
&& yum clean all

# install conda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
Expand All @@ -39,8 +17,7 @@ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& /root/miniconda3/bin/conda init bash

# Install lld
RUN conda install -c conda-forge lld \
&& ln -s /root/miniconda3/bin/ld.lld /opt/rh/devtoolset-${DEVTOOLSET_VERSION}/root/usr/bin/ld.lld
RUN /root/miniconda3/bin/conda install -c conda-forge lld nasm cmake gxx==11.4.0 -y

# install Rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
Expand Down
Loading