diff --git a/pom.xml b/pom.xml index 42c739f2..7e9d38fc 100644 --- a/pom.xml +++ b/pom.xml @@ -506,6 +506,9 @@ ${docker.repository.name} ${docker.skip.push} + + ${project.version} + ${docker.repository.name}:${docker.tag.name} @@ -624,6 +627,37 @@ + + pack-local-changes + + false + + + + + org.apache.maven.plugins + maven-assembly-plugin + ${version.assembly.plugin} + + + pack-local-changes + package + + single + + + ${project.artifactId}-${project.version} + + src/test/docker/distribution.xml + + posix + + + + + + + skip-integration-tests diff --git a/src/test/docker/Dockerfile b/src/test/docker/Dockerfile index 54c8179e..dd6f9d62 100644 --- a/src/test/docker/Dockerfile +++ b/src/test/docker/Dockerfile @@ -1,7 +1,9 @@ -FROM confluentinc/cp-kafka-connect-base:7.2.2 -COPY target/components/packages/google-debezium-connector-spanner-*.zip /usr/share/confluent-hub-components/google-debezium-connector-spanner.zip +FROM confluentinc/cp-kafka-connect-base:latest +ARG projectVersion +USER root +RUN yum remove -y zulu11-ca-jdk-headless && yum remove -y zulu11-ca-jre-headless +RUN yum install -y zulu17-ca-jdk-headless && yum install -y zulu17-ca-jre-headless +USER appuser +COPY target/debezium-connector-spanner-${projectVersion}-plugin/ /usr/share/java/google-debezium-connector-spanner/ COPY src/test/docker/jmx_prometheus_javaagent-0.16.1.jar /usr/share/prometheus/jmx_prometheus_javaagent.jar COPY src/test/docker/metrics-config.yml /usr/share/prometheus/metrics-config.yml -RUN confluent-hub install --no-prompt wepay/kafka-connect-bigquery:latest -RUN confluent-hub install --no-prompt /usr/share/confluent-hub-components/google-debezium-connector-spanner.zip -#CMD ["/bin/bash", "-c", "/etc/confluent/docker/run &; sleep infinity"] diff --git a/src/test/docker/distribution.xml b/src/test/docker/distribution.xml new file mode 100644 index 00000000..3adff3e4 --- /dev/null +++ b/src/test/docker/distribution.xml @@ -0,0 +1,58 @@ + + + plugin + + dir + + false + + + ${project.artifactId} + false + runtime + false + true + + + com.fasterxml.jackson.core:jackson-core:* + com.fasterxml.jackson.core:jackson-databind:* + com.fasterxml.jackson.core:jackson-annotations:* + com.fasterxml.jackson.datatype:jackson-datatype-jsr310:* + + + com.google.guava:listenablefuture:* + + + org.checkerframework:checker-qual:* + + + + ${project.artifactId} + false + + ${project.groupId}:${project.artifactId}:* + + + + + + ${project.basedir} + ${project.artifactId} + + README* + LICENSE* + + true + + + ${project.build.directory}/generated-sources + ${project.artifactId} + + *.json + + true + + + \ No newline at end of file