This is an automated email from the ASF dual-hosted git repository.
djwang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry-bootcamp.git
The following commit(s) were added to refs/heads/main by this push:
new 2afbeb8 Update Dockerfile for main branch building
2afbeb8 is described below
commit 2afbeb8ff9fad4af86720cc875605d4dd1788afe
Author: Dianjin Wang <[email protected]>
AuthorDate: Sat Jun 7 08:29:34 2025 +0800
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
---
000-cbdb-sandbox/Dockerfile.main.rockylinux9 | 21 ++++++++++++++-------
000-cbdb-sandbox/README.md | 6 ------
2 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/000-cbdb-sandbox/Dockerfile.main.rockylinux9
b/000-cbdb-sandbox/Dockerfile.main.rockylinux9
index 4b5b188..4e517b8 100644
--- a/000-cbdb-sandbox/Dockerfile.main.rockylinux9
+++ b/000-cbdb-sandbox/Dockerfile.main.rockylinux9
@@ -1,7 +1,9 @@
FROM rockylinux/rockylinux:9
-ARG TIMEZONE_VAR="Asia/Shanghai"
+# Argument for configuring the timezone
+ARG TIMEZONE_VAR="America/Los_Angeles"
+# Environment variables
ENV container=docker
ENV MULTINODE=false
@@ -21,8 +23,7 @@ RUN [ -d /lib/systemd/system/sysinit.target.wants ] && find
/lib/systemd/system/
COPY ./configs/* /tmp/
-RUN echo root:cbdb@123 | chpasswd && \
- dnf makecache && \
+RUN dnf makecache && \
dnf install -y yum-utils \
epel-release \
git && \
@@ -64,7 +65,9 @@ RUN echo root:cbdb@123 | chpasswd && \
libcurl-devel \
libevent-devel \
libxml2-devel \
+ libuuid-devel \
libzstd-devel \
+ lz4-devel \
openldap-devel \
openssl-devel \
pam-devel \
@@ -77,6 +80,7 @@ RUN echo root:cbdb@123 | chpasswd && \
dnf install -y --enablerepo=crb \
libuv-devel \
libyaml-devel \
+ protobuf-devel \
perl-IPC-Run && \
dnf install -y --enablerepo=epel \
xerces-c-devel
@@ -105,21 +109,24 @@ RUN cp /tmp/90-cbdb-sysctl.conf /etc/sysctl.conf && \
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
RUN cd /tmp/ && \
- git clone --branch main --single-branch --depth=1
https://github.com/cloudberrydb/cloudberrydb.git
+ git clone --recurse-submodules --branch main --single-branch --depth=1
https://github.com/apache/cloudberry.git
-RUN cd /tmp/cloudberrydb && \
+RUN cd /tmp/cloudberry && \
./configure --prefix=/usr/local/cloudberry-db \
--enable-cassert \
--enable-debug-extensions \
+ --enable-gpcloud \
--enable-ic-proxy \
--enable-mapreduce \
--enable-orafce \
--enable-orca \
+ --enable-pax \
--enable-pxf \
--enable-tap-tests \
--with-gssapi \
--with-ldap \
--with-libxml \
+ --with-lz4 \
--with-openssl \
--with-pam \
--with-perl \
@@ -127,11 +134,11 @@ RUN cd /tmp/cloudberrydb && \
--with-python \
--with-pythonsrc-ext
-RUN cd /tmp/cloudberrydb && \
+RUN cd /tmp/cloudberry && \
make -j$(nproc) && \
make install
-RUN cd /tmp/cloudberrydb/contrib && \
+RUN cd /tmp/cloudberry/contrib && \
make -j$(nproc) && \
make install
diff --git a/000-cbdb-sandbox/README.md b/000-cbdb-sandbox/README.md
index 70c9ab0..15205aa 100644
--- a/000-cbdb-sandbox/README.md
+++ b/000-cbdb-sandbox/README.md
@@ -109,12 +109,6 @@ You can now connect to the database and try some basic
operations.
(1 row)
```
-In addition to using the `docker exec` command, you can also use the `ssh`
command. This command will connect to the database with the default database
name `gpadmin`:
-
-```shell
-ssh gpadmin@localhost # Password: cbdb@123
-```
-
Now you have a Cloudberry Database and can continue with [Cloudberry Database
Tutorials Based on Docker
Installation](https://github.com/cloudberrydb/bootcamp/blob/main/101-cbdb-tutorials/README.md)!
Enjoy!
## Working with your Cloudberry Docker environment
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]