Skip to content

Commit 18d8c1d

Browse files
authored
Change gcc version for build for jammy (#2)
1 parent 3df3eaa commit 18d8c1d

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

images/docker/gpdb/build/jammy/Dockerfile

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,20 @@ RUN apt-get update -o Acquire::AllowInsecureRepositories=true && apt-get install
4343
curl \
4444
cgroup-tools \
4545
flex \
46-
gcc-9 \
47-
g++-9 \
48-
g++-9-multilib \
46+
gcc-11 \
47+
g++-11 \
48+
g++-11-multilib \
4949
git \
5050
krb5-multidev \
5151
libapr1-dev \
5252
libbz2-dev \
5353
libcurl4-gnutls-dev \
54+
libpstreams-dev \
5455
libevent-dev \
5556
libkrb5-dev \
5657
libldap2-dev \
5758
libperl-dev \
58-
libreadline6-dev \
59+
libreadline-dev \
5960
libssl-dev \
6061
libxml2-dev \
6162
libyaml-dev \
@@ -65,10 +66,9 @@ RUN apt-get update -o Acquire::AllowInsecureRepositories=true && apt-get install
6566
libpam0g \
6667
libcgroup1 \
6768
libyaml-0-2 \
68-
libldap2-dev \
69-
openssl \
69+
libldap-2.5-0 \
70+
libssl3 \
7071
ninja-build \
71-
python2-dev \
7272
python-setuptools \
7373
quilt \
7474
unzip \
@@ -77,6 +77,8 @@ RUN apt-get update -o Acquire::AllowInsecureRepositories=true && apt-get install
7777
libuv1-dev \
7878
libgpgme-dev \
7979
libgpgme11 \
80+
python2.7 \
81+
python2.7-dev \
8082
sudo \
8183
iproute2 \
8284
less \
@@ -95,14 +97,17 @@ RUN cd /tmp/ \
9597
&& sudo make install
9698

9799
RUN cd /tmp/ \
98-
&& git clone https://github.com/boundary/sigar.git \
100+
&& git clone https://github.com/boundary/sigar.git -b master \
99101
&& cd ./sigar/ \
100102
&& mkdir build && cd build && cmake .. && make \
101103
&& sudo make install
102104

103105
# --------------------------------------------------------------------
104106
# Copy Configuration Files and Setup the Environment
105107
# --------------------------------------------------------------------
108+
109+
RUN ln -s /usr/bin/python2.7 /usr/bin/python
110+
106111
COPY ./configs/* /tmp/
107112

108113
RUN echo ${TIMEZONE_VAR} > /etc/timezone && \
@@ -116,4 +121,4 @@ RUN echo ${TIMEZONE_VAR} > /etc/timezone && \
116121
USER gpadmin
117122
WORKDIR /home/gpadmin
118123

119-
RUN sudo DEBIAN_FRONTEND=noninteractive apt install -y libhyperic-sigar-java libaprutil1-dev libuv1-dev
124+
RUN sudo DEBIAN_FRONTEND=noninteractive apt install -y libhyperic-sigar-java libaprutil1-dev libuv1-dev

0 commit comments

Comments
 (0)