Skip to content

Update Dockerfile for main branch building #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions 000-cbdb-sandbox/Dockerfile.main.rockylinux9
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 && \
Expand Down Expand Up @@ -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 \
Expand All @@ -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
Expand Down Expand Up @@ -105,33 +110,36 @@ 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 \
--with-pgport=5432 \
--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

Expand Down
6 changes: 0 additions & 6 deletions 000-cbdb-sandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down