Skip to content

Commit

Permalink
Update CloudberryDB release from 1.0.0 to 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhaihe committed Apr 15, 2024
1 parent 08d220a commit e7a61d3
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 5 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/feishu-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Source file from https://github.com/bytedance/gopkg/blob/develop/.github/workflows/feishu-notify.yml. Thanks to the original developers.
name: Feishu Notification

on:
pull_request:
types: [opened]
issues:
types: [opened]

jobs:
pr-opened:
name: Pull Request Opened Notification
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }}
runs-on: ubuntu-latest
steps:
- name: Send Feishu Message
env:
ACTIONS_FEISHU_TAG: v1.3.1
INPUT_WEBHOOK: ${{ secrets.FEISHU_ROBOT_WEBHOOK_URL }}
INPUT_MESSAGE_TYPE: post
INPUT_TITLE: 🎉New Pull Request
INPUT_CONTENT: |
@${{ github.event.pull_request.user.login }} opened pull request #${{ github.event.pull_request.number }}:
${{ github.event.pull_request.title }}
🫱See: https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}.
run: |
sudo apt update
sudo apt install wget -y
wget -q https://github.com/xiachufang/actions-feishu/releases/download/${{ env.ACTIONS_FEISHU_TAG }}/linux-amd64-actions-feishu.tar.gz
tar zxf linux-amd64-actions-feishu.tar.gz feishu
./feishu
issues-opened:
name: Issue Opened Notification
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }}
runs-on: ubuntu-latest
steps:
- name: Send Feishu Message
env:
ACTIONS_FEISHU_TAG: v1.3.1
INPUT_WEBHOOK: ${{ secrets.FEISHU_ROBOT_WEBHOOK_URL }}
INPUT_MESSAGE_TYPE: post
INPUT_TITLE: 🐛New Issue
INPUT_CONTENT: |
@${{ github.event.issue.user.login }} opened issue #${{ github.event.issue.number }}:
${{ github.event.issue.title }}
🫱See: https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}.
run: |
sudo apt update
sudo apt install wget -y
wget -q https://github.com/xiachufang/actions-feishu/releases/download/${{ env.ACTIONS_FEISHU_TAG }}/linux-amd64-actions-feishu.tar.gz
tar zxf linux-amd64-actions-feishu.tar.gz feishu
./feishu
2 changes: 1 addition & 1 deletion 000-cbdb-sandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Make sure that your environment meets the following requirements:

## Build the Sandbox

This section introduces how to set up the Docker container in which the source code of Cloudberry Database v1.0 (released in [Cloudberry Database Release Page](https://github.com/cloudberrydb/cloudberrydb/releases)) will be compiled. In this CentOS 7.9 Docker container, a single-node cluster will be initialized with one coordinator and two segments. Both x86 and ARM CPUs (including Apple chips) are supported.
This section introduces how to set up the Docker container in which the source code of Cloudberry Database v1.5.1 (released in [Cloudberry Database Release Page](https://github.com/cloudberrydb/cloudberrydb/releases)) will be compiled. In this CentOS 7.9 Docker container, a single-node cluster will be initialized with one coordinator and two segments. Both x86 and ARM CPUs (including Apple chips) are supported.

Build steps:

Expand Down
8 changes: 4 additions & 4 deletions 000-cbdb-sandbox/cbdb_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ RUN cat /tmp/sysctl.conf.add >> /etc/sysctl.conf \
RUN yum install -y python3-devel python3-pip; yum clean all

RUN cd /tmp/ \
&& unzip -d /tmp /tmp/cloudberrydb-1.0.0.zip \
&& cd /tmp/cloudberrydb-1.0.0 \
&& unzip -d /tmp /tmp/cloudberrydb-1.5.1.zip \
&& cd /tmp/cloudberrydb-1.5.1 \
&& pip3 install -i https://mirrors.aliyun.com/pypi/simple -r python-dependencies.txt

RUN cd /tmp/cloudberrydb-1.0.0 \
RUN cd /tmp/cloudberrydb-1.5.1 \
&& source scl_source enable devtoolset-10 \
&& ./configure --with-perl --with-python --with-libxml --with-gssapi --prefix=/usr/local/cloudberry-db \
&& make -j8 \
Expand All @@ -60,4 +60,4 @@ RUN cd /tmp/cloudberrydb-1.0.0 \
EXPOSE 5432 22

VOLUME [ "/sys/fs/cgroup" ]
CMD ["bash","-c","/tmp/init_system.sh"]
CMD ["bash","-c","/tmp/init_system.sh"]
Binary file not shown.

0 comments on commit e7a61d3

Please sign in to comment.