yjhjstz commented on code in PR #1186:
URL: https://github.com/apache/cloudberry/pull/1186#discussion_r2164325740


##########
deploy/sandbox/Dockerfile.RELEASE.rockylinux9:
##########
@@ -0,0 +1,176 @@
+# --------------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to You under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# permissions and limitations under the License.
+#
+# --------------------------------------------------------------------
+FROM rockylinux/rockylinux:9
+
+ARG CODEBASE_VERSION_VAR=${CODEBASE_VERSION_VAR}
+ARG TIMEZONE_VAR="America/Los_Angeles"
+
+ENV container=docker
+ENV MULTINODE=false
+
+RUN dnf update -y && \
+    dnf install -y systemd \
+                   systemd-libs && \
+    dnf clean all
+
+# Clean up unnecessary systemd units
+RUN [ -d /lib/systemd/system/sysinit.target.wants ] && find 
/lib/systemd/system/sysinit.target.wants/ -type l -not -name 
'systemd-tmpfiles-setup.service' -delete || echo "Directory 
/lib/systemd/system/sysinit.target.wants does not exist" && \
+    [ -d /lib/systemd/system/multi-user.target.wants ] && find 
/lib/systemd/system/multi-user.target.wants/ -type l -delete || echo "Directory 
/lib/systemd/system/multi-user.target.wants does not exist" && \
+    find /etc/systemd/system/*.wants/ -type l -delete || echo "Directory 
/etc/systemd/system/*.wants does not exist" && \
+    [ -d /lib/systemd/system/local-fs.target.wants ] && find 
/lib/systemd/system/local-fs.target.wants/ -type l -delete || echo "Directory 
/lib/systemd/system/local-fs.target.wants does not exist" && \
+    [ -d /lib/systemd/system/sockets.target.wants ] && find 
/lib/systemd/system/sockets.target.wants/ -type l -not -name '*udev*' -delete 
|| echo "Directory /lib/systemd/system/sockets.target.wants does not exist" && \
+    [ -d /lib/systemd/system/basic.target.wants ] && find 
/lib/systemd/system/basic.target.wants/ -type l -delete || echo "Directory 
/lib/systemd/system/basic.target.wants does not exist" && \
+    [ -d /lib/systemd/system/anaconda.target.wants ] && find 
/lib/systemd/system/anaconda.target.wants/ -type l -delete || echo "Directory 
/lib/systemd/system/anaconda.target.wants does not exist"
+
+COPY ./configs/* /tmp/
+
+RUN     echo root:cbdb@123 | chpasswd && \
+        dnf makecache && \
+        dnf install -y yum-utils \
+                       epel-release \
+                       git && \
+        yum-config-manager --disable epel-cisco-openh264 && \
+        dnf makecache && \
+        yum-config-manager --disable epel && \
+        dnf install -y --enablerepo=epel \
+                       the_silver_searcher \
+                       bat \
+                       htop && \
+        dnf install -y bison \
+                       cmake3 \
+                       ed \
+                       flex \
+                       gcc \
+                       gcc-c++ \
+                       glibc-langpack-en \
+                       go \
+                       initscripts \
+                       iproute \
+                       less \
+                       m4 \
+                       net-tools \
+                       openssh-clients \
+                       openssh-server \
+                       passwd \
+                       perl \
+                       rsync \
+                       sudo \
+                       tar \
+                       unzip \
+                       util-linux-ng \
+                       wget \
+                       sshpass \
+                       which && \
+        dnf install -y apr-devel \
+                       bzip2-devel \
+                       krb5-devel \
+                       libcurl-devel \
+                       libevent-devel \
+                       libxml2-devel \
+                       libzstd-devel \
+                       openldap-devel \
+                       openssl-devel \
+                       pam-devel \
+                       perl-ExtUtils-Embed \
+                       perl-Test-Simple \
+                       perl-core \
+                       python3-devel \
+                       readline-devel \
+                       zlib-devel && \
+        dnf install -y --enablerepo=crb \
+                       libuv-devel \
+                       libyaml-devel \
+                       perl-IPC-Run && \
+        dnf install -y --enablerepo=epel \
+                       xerces-c-devel
+
+RUN     cp /tmp/90-cbdb-sysctl.conf /etc/sysctl.conf && \
+        cp /tmp/90-cbdb-limits.conf /etc/security/limits.d/90-cbdb-limits.conf 
&& \
+        cat /usr/share/zoneinfo/${TIMEZONE_VAR} > /etc/localtime && \
+        echo "cdw" > /tmp/gpdb-hosts && \
+        echo "/usr/local/lib" >> /etc/ld.so.conf && \
+        echo "/usr/local/lib64" >> /etc/ld.so.conf && \
+        ldconfig && \
+        chmod 777 /tmp/gpinitsystem_singlenode && \
+        chmod 777 /tmp/init_system.sh && \
+        hostname > ~/orig_hostname && \
+        /usr/sbin/groupadd gpadmin && \
+        /usr/sbin/useradd  gpadmin -g gpadmin -G wheel && \
+        setcap cap_net_raw+ep /usr/bin/ping && \
+        echo "cbdb@123"|passwd --stdin gpadmin && \
+        echo "gpadmin        ALL=(ALL)       NOPASSWD: ALL" >> /etc/sudoers && 
\
+        echo "root           ALL=(ALL)       NOPASSWD: ALL" >> /etc/sudoers && 
\
+        echo "export 
COORDINATOR_DATA_DIRECTORY=/data0/database/coordinator/gpseg-1" >> 
/home/gpadmin/.bashrc && \
+        echo "source /usr/local/cloudberry-db/greenplum_path.sh"               
 >> /home/gpadmin/.bashrc && \
+        mkdir -p /data0/database/coordinator /data0/database/primary 
/data0/database/mirror && \
+        chown -R gpadmin:gpadmin /data0 && \
+        ssh-keygen -A && \
+        echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
+
+RUN     wget -O /tmp/cloudberry-${CODEBASE_VERSION_VAR}.zip 
https://github.com/apache/cloudberry/archive/refs/tags/${CODEBASE_VERSION_VAR}.zip
 && \
+        cd /tmp/ && \
+        unzip /tmp/cloudberry-${CODEBASE_VERSION_VAR}.zip && \
+        mv /tmp/cloudberry-${CODEBASE_VERSION_VAR} /tmp/cloudberry && \
+        rm -f /tmp/cloudberry-${CODEBASE_VERSION_VAR}.zip
+
+RUN     cd /tmp/cloudberry && \
+        ./configure --prefix=/usr/local/cloudberry-db \
+                    --enable-cassert                  \
+                    --enable-debug-extensions         \
+                    --enable-ic-proxy                 \
+                    --enable-mapreduce                \

Review Comment:
   remove `--enable-mapreduce    `



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to