tet123/jenkins-jobs/docker/debezium-testing-system/Dockerfile

31 lines
980 B
Docker
Raw Normal View History

FROM fedora:35
2021-05-03 09:51:34 +02:00
RUN dnf -y install git unzip zip findutils
2021-05-03 09:51:34 +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 \
&& rm /tmp/client-tools.tar.gz
2021-05-03 09:51:34 +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&&\
sdk install maven 3.8.4
# 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
COPY library.sh /testsuite/library.sh
COPY secret.yml /testsuite/secret.yml
ENTRYPOINT /testsuite/testsuite-deployment.sh