Skip to content

Commit 8f2fbd7

Browse files
committed
Update Dockerfile for main branch building
In this PR, these changes are made: * Update the timezone to Los Angeles * Remove the passwd as set `NOPASSWD` for gpadmin and root in the file /etc/sudoers * Add PAX dependencies protobuf-devel and `--enable-pax` option * Update the git clone command to fetch the submodules * Enable lz4 and gpcloud support
1 parent 5a51a7b commit 8f2fbd7

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

000-cbdb-sandbox/Dockerfile.main.rockylinux9

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM rockylinux/rockylinux:9
22

3-
ARG TIMEZONE_VAR="Asia/Shanghai"
3+
# Argument for configuring the timezone
4+
ARG TIMEZONE_VAR="America/Los_Angeles"
45

6+
# Environment variables
57
ENV container=docker
68
ENV MULTINODE=false
79

@@ -21,8 +23,7 @@ RUN [ -d /lib/systemd/system/sysinit.target.wants ] && find /lib/systemd/system/
2123

2224
COPY ./configs/* /tmp/
2325

24-
RUN echo root:cbdb@123 | chpasswd && \
25-
dnf makecache && \
26+
RUN dnf makecache && \
2627
dnf install -y yum-utils \
2728
epel-release \
2829
git && \
@@ -64,7 +65,10 @@ RUN echo root:cbdb@123 | chpasswd && \
6465
libcurl-devel \
6566
libevent-devel \
6667
libxml2-devel \
68+
libuuid-devel \
6769
libzstd-devel \
70+
lz4 \
71+
lz4-devel \
6872
openldap-devel \
6973
openssl-devel \
7074
pam-devel \
@@ -77,6 +81,7 @@ RUN echo root:cbdb@123 | chpasswd && \
7781
dnf install -y --enablerepo=crb \
7882
libuv-devel \
7983
libyaml-devel \
84+
protobuf-devel \
8085
perl-IPC-Run && \
8186
dnf install -y --enablerepo=epel \
8287
xerces-c-devel
@@ -105,33 +110,36 @@ RUN cp /tmp/90-cbdb-sysctl.conf /etc/sysctl.conf && \
105110
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
106111

107112
RUN cd /tmp/ && \
108-
git clone --branch main --single-branch --depth=1 https://github.com/cloudberrydb/cloudberrydb.git
113+
git clone --recurse-submodules --branch main --single-branch --depth=1 https://github.com/apache/cloudberry.git
109114

110-
RUN cd /tmp/cloudberrydb && \
115+
RUN cd /tmp/cloudberry && \
111116
./configure --prefix=/usr/local/cloudberry-db \
112117
--enable-cassert \
113118
--enable-debug-extensions \
119+
--enable-gpcloud \
114120
--enable-ic-proxy \
115121
--enable-mapreduce \
116122
--enable-orafce \
117123
--enable-orca \
124+
--enable-pax \
118125
--enable-pxf \
119126
--enable-tap-tests \
120127
--with-gssapi \
121128
--with-ldap \
122129
--with-libxml \
130+
--with-lz4 \
123131
--with-openssl \
124132
--with-pam \
125133
--with-perl \
126134
--with-pgport=5432 \
127135
--with-python \
128136
--with-pythonsrc-ext
129137

130-
RUN cd /tmp/cloudberrydb && \
138+
RUN cd /tmp/cloudberry && \
131139
make -j$(nproc) && \
132140
make install
133141

134-
RUN cd /tmp/cloudberrydb/contrib && \
142+
RUN cd /tmp/cloudberry/contrib && \
135143
make -j$(nproc) && \
136144
make install
137145

0 commit comments

Comments
 (0)