2022-05-26 17:25:05 +02:00
|
|
|
FROM fedora:35
|
2021-05-03 09:51:34 +02:00
|
|
|
|
2022-05-26 17:25:05 +02:00
|
|
|
RUN dnf -y install git unzip zip findutils
|
2021-05-03 09:51:34 +02:00
|
|
|
|
2022-05-26 17:25:05 +02:00
|
|
|
ARG OCP_CLIENT=3.7.23
|
2021-05-03 09:51:34 +02:00
|
|
|
RUN curl --retry 7 -Lo /tmp/client-tools.tar.gz "https://mirror.openshift.com/pub/openshift-v3/clients/${OCP_CLIENT}/linux/oc.tar.gz"
|
|
|
|
RUN tar zxf /tmp/client-tools.tar.gz -C /usr/local/bin oc \
|
2022-06-06 01:43:31 +02:00
|
|
|
&& rm /tmp/client-tools.tar.gz
|
2021-05-03 09:51:34 +02:00
|
|
|
|
2022-05-26 17:25:05 +02:00
|
|
|
ARG sdkman_init="/root/.sdkman/bin/sdkman-init.sh"
|
|
|
|
|
|
|
|
RUN curl -s "https://get.sdkman.io" | bash
|
|
|
|
RUN source $sdkman_init &&\
|
|
|
|
sdk install java 17.0.2-open&&\
|
2022-06-13 14:02:08 +02:00
|
|
|
sdk install maven 3.8.4
|
2022-05-26 17:25:05 +02:00
|
|
|
|
|
|
|
# this runs when only when dbz repo/branch is changed
|
|
|
|
ARG repository
|
|
|
|
ARG branch
|
|
|
|
|
|
|
|
RUN git clone --branch $branch $repository /testsuite/debezium
|
|
|
|
RUN source $sdkman_init && mvn clean install -DskipTests -DskipITs -f /testsuite/debezium/pom.xml
|
|
|
|
|
2021-05-03 09:51:34 +02:00
|
|
|
COPY testsuite-deployment.sh /testsuite/testsuite-deployment.sh
|
|
|
|
RUN chmod a+x /testsuite/testsuite-deployment.sh
|
|
|
|
|
2022-05-26 17:25:05 +02:00
|
|
|
COPY library.sh /testsuite/library.sh
|
|
|
|
COPY secret.yml /testsuite/secret.yml
|
|
|
|
|
2022-06-21 11:01:30 +02:00
|
|
|
ENTRYPOINT /testsuite/testsuite-deployment.sh
|