Dockerfile 1.4 KB

123456789101112131415161718192021222324
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. # There is no pre-built Docker image that includes both Confluent's Avro
  10. # converter (which knows how to write schemas to the Confluent Schema Registry)
  11. # and Debezium connectors, so we have to build our own.
  12. FROM confluentinc/cp-kafka-connect-base:8.0.0
  13. # Be sure to use a `X.Y.Z.Final` tag here; `X.Y` tags refer to the latest minor
  14. # version in the release series, and minor versions have been known to introduce
  15. # breakage.
  16. ARG DEBEZIUM_VERSION="3.2.0.Final"
  17. RUN : \
  18. && curl -fsSL https://repo1.maven.org/maven2/io/debezium/debezium-connector-mysql/${DEBEZIUM_VERSION}/debezium-connector-mysql-${DEBEZIUM_VERSION}-plugin.tar.gz | tar -zxC /usr/share/java \
  19. && curl -fsSL https://repo1.maven.org/maven2/io/debezium/debezium-connector-postgres/${DEBEZIUM_VERSION}/debezium-connector-postgres-${DEBEZIUM_VERSION}-plugin.tar.gz | tar -zxC /usr/share/java \
  20. && curl -fsSL https://repo1.maven.org/maven2/io/debezium/debezium-connector-sqlserver/${DEBEZIUM_VERSION}/debezium-connector-sqlserver-${DEBEZIUM_VERSION}-plugin.tar.gz | tar -zxC /usr/share/java