Skip to content

Commit

Permalink
[skip ci] Update Dockerfile to use gcc-12/g++-12 for ubuntu22.04 (zil…
Browse files Browse the repository at this point in the history
…liztech#576)

Signed-off-by: Cai Yudong <[email protected]>
  • Loading branch information
cydrain authored May 21, 2024
1 parent 39c0a73 commit 0be910f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ci/docker/builder/cpu/ubuntu22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ RUN apt update \
--keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776 \
&& echo "deb [signed-by=/usr/share/keyrings/deadsnakes.gpg] https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu \
$(lsb_release -cs) main" | tee /etc/apt/sources.list.d/python.list \
&& apt install -y --no-install-recommends wget curl git g++ gcc make gfortran swig \
&& apt install -y --no-install-recommends wget curl git make gfortran swig \
&& apt install -y gcc-12 g++-12 \
&& apt install -y python3.11 python3.11-dev python3.11-distutils \
&& apt install -y python3-setuptools \
&& cd /usr/bin \
&& unlink gcc && ln -s gcc-12 gcc && ln -s g++-12 g++ \
&& unlink python3 && ln -s python3.11 python3 \
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python3 \
&& pip3 install wheel \
Expand Down
4 changes: 3 additions & 1 deletion ci/docker/builder/gpu/ubuntu22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ RUN apt update \
--keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776 \
&& echo "deb [signed-by=/usr/share/keyrings/deadsnakes.gpg] https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu \
$(lsb_release -cs) main" | tee /etc/apt/sources.list.d/python.list \
&& apt install -y --no-install-recommends wget curl git g++ gcc make gfortran swig \
&& apt install -y --no-install-recommends wget curl git make gfortran swig \
&& apt install -y gcc-12 g++-12 \
&& apt install -y python3.11 python3.11-dev python3.11-distutils \
&& apt install -y python3-setuptools \
&& cd /usr/bin \
&& unlink gcc && ln -s gcc-12 gcc && ln -s g++-12 g++ \
&& unlink python3 && ln -s python3.11 python3 \
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python3 \
&& pip3 install wheel \
Expand Down

0 comments on commit 0be910f

Please sign in to comment.