You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation:
After QUIC was added, we've needed a few more things in the environment
to compile BoringSSL, Rust code, Quiche, etc.
Modification:
Update the CentOS devcontainer docker image to match the image we use
for PR builds.
Result:
The CentOS devcontainer can now build Netty again.
Copy file name to clipboardExpand all lines: .devcontainer/centos7/Dockerfile
+43-4Lines changed: 43 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,55 @@
1
-
FROM --platform=linux/amd64 centos:7.6.1810
1
+
FROM --platform=linux/amd64 centos:7.9.2009
2
+
3
+
ENV SOURCE_DIR=/root/source
4
+
ENV LIBS_DIR=/root/libs
5
+
ENV CMAKE_VERSION_BASE=3.26
6
+
ENV CMAKE_VERSION=$CMAKE_VERSION_BASE.4
7
+
ENV NINJA_VERSION=1.7.2
8
+
ENV GO_VERSION=1.9.3
2
9
3
10
# Update as we need to use the vault now.
4
-
RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\//baseurl=https:\/\/linuxsoft.cern.ch\/centos-vault\/\/7.6.1810\//g' /etc/yum.repos.d/CentOS-Base.repo
11
+
RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\//baseurl=https:\/\/linuxsoft.cern.ch\/centos-vault\/\/7.9.2009\//g' /etc/yum.repos.d/CentOS-Base.repo
5
12
6
13
# install dependencies
7
14
RUN yum install -y \
8
15
apr-devel \
9
16
autoconf \
10
17
automake \
18
+
bzip2 \
11
19
git \
12
20
glibc-devel \
21
+
gnupg \
22
+
java-1.8.0-openjdk-devel \
13
23
libtool \
14
24
lksctp-tools \
15
25
lsb-core \
16
26
make \
17
27
openssl-devel \
28
+
perl \
18
29
tar \
19
30
unzip \
20
31
wget \
21
-
zip
32
+
zip \
33
+
zlib-devel
34
+
35
+
RUN mkdir $SOURCE_DIR
36
+
WORKDIR $SOURCE_DIR
37
+
38
+
RUN yum install -y centos-release-scl
39
+
40
+
# Update to use the vault
41
+
RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^# baseurl=http:\/\/mirror.centos.org\/centos\/7\/sclo\/$basearch\/sclo\//baseurl=https:\/\/vault.centos.org\/centos\/7\/sclo\/$basearch\/sclo\//g' /etc/yum.repos.d/CentOS-SCLo-scl.repo
42
+
RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/7\/sclo\/$basearch\/rh\//baseurl=https:\/\/vault.centos.org\/centos\/7\/sclo\/$basearch\/rh\//g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
22
43
44
+
RUN yum -y install devtoolset-11-gcc devtoolset-11-gcc-c++
45
+
RUN echo 'source /opt/rh/devtoolset-11/enable' >> ~/.bashrc
46
+
47
+
RUN echo "export CMAKE_VERSION='$CMAKE_VERSION'" >> ~/.bashrc
48
+
RUN echo "export NINJA_VERSION='$NINJA_VERSION'" >> ~/.bashrc
49
+
RUN echo "export GO_VERSION='$GO_VERSION'" >> ~/.bashrc
0 commit comments