Skip to content
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

Add CI #4

Merged
merged 4 commits into from
Nov 1, 2024
Merged
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
20 changes: 20 additions & 0 deletions .github/workflows/yezzey-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Docker Image CI

on:
push:
branches: [ "OPENGPDB_STABLE" ]
pull_request:
branches: [ "OPENGPDB_STABLE", "YGP_6.27_STABLE" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag yezzey_test:1234 && docker run yezzey_test:1234


16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ COPY yezzey_test/generate_ssh_key.sh /home/krebs/

RUN ["/home/krebs/generate_ssh_key.sh"]

RUN cd /tmp/ \
&& git clone https://github.com/greenplum-db/gp-xerces.git \
&& cd ./gp-xerces/ && mkdir build && cd build && ../configure --prefix=/usr/local && make -j \
&& sudo make install

RUN cd /tmp/ \
&& git clone https://github.com/boundary/sigar.git \
Expand All @@ -74,11 +70,13 @@ RUN sudo mkdir /usr/local/gpdb \
RUN sudo chown -R krebs:root /home/krebs \
&& git status

RUN git submodule update --init \
&& cd gpcontrib/yezzey && git checkout ${yezzeyRef} && cd /home/krebs \
&& sed -i '/^trusted/d' gpcontrib/yezzey/yezzey.control \
&& ./configure --prefix=/usr/local/gpdb/ --with-openssl --enable-debug-extensions --enable-gpperfmon --with-python --with-libxml CFLAGS='-fno-omit-frame-pointer -Wno-implicit-fallthrough -O3 -pthread' \
&& make -j8 && make -j8 install
RUN git submodule update --init
RUN cd gpcontrib/yezzey
RUN git checkout ${yezzeyRef} && cd /home/krebs
RUN sed -i '/^trusted/d' gpcontrib/yezzey/yezzey.control
RUN ./configure --with-perl --with-python --with-libxml --disable-orca --prefix=/usr/local/gpdb \
--enable-depend --enable-cassert --enable-debug --without-mdblocales --without-zstd CFLAGS='-fno-omit-frame-pointer -Wno-implicit-fallthrough -O3 -pthread'
RUN make -j8 && make -j8 install

RUN sed -i "s/\$ACCESS_KEY_ID/${accessKeyId}/g" yezzey_test/yezzey-s3.conf \
&& sed -i "s/\$SECRET_ACCESS_KEY/${secretAccessKey}/g" yezzey_test/yezzey-s3.conf \
Expand Down
Loading