This repository was archived by the owner on Sep 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
build_automation/cloudberry/scripts Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ run_psql_cmd() {
121121# Function to source Cloudberry environment
122122source_cloudberry_env () {
123123 echo " === Sourcing Cloudberry environment ===" | tee -a " ${LOG_DIR} /environment.log"
124- source /usr/local/cloudberry-db/greenplum_path .sh
124+ source /usr/local/cloudberry-db/cloudberry-env .sh
125125 source ${SRC_DIR} /../cloudberry/gpAux/gpdemo/gpdemo-env.sh
126126}
127127
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ init_environment "Cloudberry Demo Cluster Script" "${CLUSTER_LOG}"
7979
8080# Setup environment
8181log_section " Environment Setup"
82- source /usr/local/cloudberry-db/greenplum_path .sh || exit 1
82+ source /usr/local/cloudberry-db/cloudberry-env .sh || exit 1
8383log_section_end " Environment Setup"
8484
8585# Verify SSH access
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ RUN cp /tmp/90-cbdb-limits /etc/security/limits.d/90-cbdb-limits && \
186186 /usr/sbin/useradd gpadmin -g gpadmin -G wheel && \
187187 setcap cap_net_raw+ep /usr/bin/ping && \
188188 echo 'gpadmin ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/90-gpadmin && \
189- echo -e '\n # Add Cloudberry entries\n if [ -f /usr/local/cbdb/greenplum_path .sh ]; then\n source /usr/local/cbdb/greenplum_path .sh\n fi' >> /home/gpadmin/.bashrc && \
189+ echo -e '\n # Add Cloudberry entries\n if [ -f /usr/local/cbdb/cloudberry-env .sh ]; then\n source /usr/local/cbdb/cloudberry-env .sh\n fi' >> /home/gpadmin/.bashrc && \
190190 ssh-keygen -A && \
191191 echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \
192192 localedef -i en_US -f UTF-8 en_US.UTF-8 && \
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ RUN cp /tmp/90-cbdb-limits /etc/security/limits.d/90-cbdb-limits && \
189189 /usr/sbin/useradd gpadmin -g gpadmin -G wheel && \
190190 setcap cap_net_raw+ep /usr/bin/ping && \
191191 echo 'gpadmin ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/90-gpadmin && \
192- echo -e '\n # Add Cloudberry entries\n if [ -f /usr/local/cbdb/greenplum_path .sh ]; then\n source /usr/local/cbdb/greenplum_path .sh\n fi' >> /home/gpadmin/.bashrc && \
192+ echo -e '\n # Add Cloudberry entries\n if [ -f /usr/local/cbdb/cloudberry-env .sh ]; then\n source /usr/local/cbdb/cloudberry-env .sh\n fi' >> /home/gpadmin/.bashrc && \
193193 ssh-keygen -A && \
194194 echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \
195195 localedef -i en_US -f UTF-8 en_US.UTF-8 && \
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ RUN dnf install -y \
100100RUN /usr/sbin/groupadd gpadmin && \
101101 /usr/sbin/useradd gpadmin -g gpadmin -G wheel && \
102102 echo 'gpadmin ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/90-gpadmin && \
103- echo -e '\n # Add Cloudberry entries\n if [ -f /usr/local/cloudberry/greenplum_path .sh ]; then\n source /usr/local/cloudberry/greenplum_path .sh\n export COORDINATOR_DATA_DIRECTORY=/data1/coordinator/gpseg-1\n fi' >> /home/gpadmin/.bashrc
103+ echo -e '\n # Add Cloudberry entries\n if [ -f /usr/local/cloudberry/cloudberry-env .sh ]; then\n source /usr/local/cloudberry/cloudberry-env .sh\n export COORDINATOR_DATA_DIRECTORY=/data1/coordinator/gpseg-1\n fi' >> /home/gpadmin/.bashrc
104104
105105# --------------------------------------------------------------------
106106# Copy Configuration Files and Setup the Environment
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ RUN dnf install -y \
100100RUN /usr/sbin/groupadd gpadmin && \
101101 /usr/sbin/useradd gpadmin -g gpadmin -G wheel && \
102102 echo 'gpadmin ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/90-gpadmin && \
103- echo -e '\n # Add Cloudberry entries\n if [ -f /usr/local/cloudberry/greenplum_path .sh ]; then\n source /usr/local/cloudberry/greenplum_path .sh\n export COORDINATOR_DATA_DIRECTORY=/data1/coordinator/gpseg-1\n fi' >> /home/gpadmin/.bashrc
103+ echo -e '\n # Add Cloudberry entries\n if [ -f /usr/local/cloudberry/cloudberry-env .sh ]; then\n source /usr/local/cloudberry/cloudberry-env .sh\n export COORDINATOR_DATA_DIRECTORY=/data1/coordinator/gpseg-1\n fi' >> /home/gpadmin/.bashrc
104104
105105# --------------------------------------------------------------------
106106# Copy Configuration Files and Setup the Environment
You can’t perform that action at this time.
0 commit comments