Skip to content

Commit f834752

Browse files
committed
Update ubuntu20_riscv64 by installing & using gcc 11 and g++ 11
1 parent 67eb3f0 commit f834752

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ubuntu20_riscv64/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ LABEL name="Ubuntu 20.04 (riscv64) RocksJava Build Environment" \
77

88
RUN apt-get -y update \
99
&& apt-get -y dist-upgrade \
10+
&& apt-get -y install software-properties-common \
11+
&& add-apt-repository -y ppa:ubuntu-toolchain-r/test \
12+
&& apt-get -y update \
1013
&& apt-get -y install cmake \
11-
&& apt-get -y install g++ make perl \
14+
&& apt-get -y install gcc-11 g++-11 make perl \
15+
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 \
16+
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100 \
1217
&& apt-get -y install libjemalloc-dev zlib1g-dev libbz2-dev liblz4-dev libsnappy-dev libzstd-dev libgflags-dev \
1318
&& apt-get -y install openssl openjdk-11-jdk-headless wget curl
1419

0 commit comments

Comments
 (0)