diff --git a/000-cbdb-sandbox/Dockerfile.main.rockylinux9 b/000-cbdb-sandbox/Dockerfile.main.rockylinux9 index 4b5b188..e101e85 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,10 @@ RUN echo root:cbdb@123 | chpasswd && \ libcurl-devel \ libevent-devel \ libxml2-devel \ + libuuid-devel \ libzstd-devel \ + lz4 \ + lz4-devel \ openldap-devel \ openssl-devel \ pam-devel \ @@ -77,6 +81,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 +110,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 +135,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