1
1
FROM rockylinux/rockylinux:9
2
2
3
- ARG TIMEZONE_VAR="Asia/Shanghai"
3
+ # Argument for configuring the timezone
4
+ ARG TIMEZONE_VAR="America/Los_Angeles"
4
5
6
+ # Environment variables
5
7
ENV container=docker
6
8
ENV MULTINODE=false
7
9
@@ -21,8 +23,7 @@ RUN [ -d /lib/systemd/system/sysinit.target.wants ] && find /lib/systemd/system/
21
23
22
24
COPY ./configs/* /tmp/
23
25
24
- RUN echo root:cbdb@123 | chpasswd && \
25
- dnf makecache && \
26
+ RUN dnf makecache && \
26
27
dnf install -y yum-utils \
27
28
epel-release \
28
29
git && \
@@ -64,7 +65,10 @@ RUN echo root:cbdb@123 | chpasswd && \
64
65
libcurl-devel \
65
66
libevent-devel \
66
67
libxml2-devel \
68
+ libuuid-devel \
67
69
libzstd-devel \
70
+ lz4 \
71
+ lz4-devel \
68
72
openldap-devel \
69
73
openssl-devel \
70
74
pam-devel \
@@ -77,6 +81,7 @@ RUN echo root:cbdb@123 | chpasswd && \
77
81
dnf install -y --enablerepo=crb \
78
82
libuv-devel \
79
83
libyaml-devel \
84
+ protobuf-devel \
80
85
perl-IPC-Run && \
81
86
dnf install -y --enablerepo=epel \
82
87
xerces-c-devel
@@ -105,33 +110,36 @@ RUN cp /tmp/90-cbdb-sysctl.conf /etc/sysctl.conf && \
105
110
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
106
111
107
112
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
109
114
110
- RUN cd /tmp/cloudberrydb && \
115
+ RUN cd /tmp/cloudberry && \
111
116
./configure --prefix=/usr/local/cloudberry-db \
112
117
--enable-cassert \
113
118
--enable-debug-extensions \
119
+ --enable-gpcloud \
114
120
--enable-ic-proxy \
115
121
--enable-mapreduce \
116
122
--enable-orafce \
117
123
--enable-orca \
124
+ --enable-pax \
118
125
--enable-pxf \
119
126
--enable-tap-tests \
120
127
--with-gssapi \
121
128
--with-ldap \
122
129
--with-libxml \
130
+ --with-lz4 \
123
131
--with-openssl \
124
132
--with-pam \
125
133
--with-perl \
126
134
--with-pgport=5432 \
127
135
--with-python \
128
136
--with-pythonsrc-ext
129
137
130
- RUN cd /tmp/cloudberrydb && \
138
+ RUN cd /tmp/cloudberry && \
131
139
make -j$(nproc) && \
132
140
make install
133
141
134
- RUN cd /tmp/cloudberrydb /contrib && \
142
+ RUN cd /tmp/cloudberry /contrib && \
135
143
make -j$(nproc) && \
136
144
make install
137
145
0 commit comments