DBZ-5757 Updates downstream steps to build KC custom container images

This commit is contained in:
Bob Roldan 2022-10-21 18:12:50 -04:00 committed by Jiri Pechanec
parent 27632576ac
commit 26a4573ff2
6 changed files with 133 additions and 25 deletions

View File

@ -1729,19 +1729,37 @@ For more information, see link:{LinkDeployStreamsOpenShift}[{NameDeployStreamsOp
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image. .. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following command: For example, from a terminal window, enter the following command:
+ +
=====================================================================
[source,shell,subs="+attributes,+quotes"] [source,shell,subs="+attributes,+quotes"]
---- ----
cat <<EOF >debezium-container-for-db2.yaml // <1> cat <<EOF >debezium-container-for-db2.yaml // <1>
FROM {DockerKafkaConnect} FROM {DockerKafkaConnect}
USER root:root USER root:root
RUN mkdir -p /opt/kafka/plugins/debezium // <2> RUN mkdir -p /opt/kafka/plugins/debezium // <2>
RUN curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip RUN cd /opt/kafka/plugins/debezium/ \
RUN curl -O https://repo1.maven.org/maven2/com/ibm/db2/jcc/{db2-version}/jcc-{db2-version}.jar && curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& unzip debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& rm debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip
RUN cd /opt/kafka/plugins/debezium/ \
&& curl -O https://repo1.maven.org/maven2/com/ibm/db2/jcc/{db2-version}/jcc-{db2-version}.jar
USER 1001 USER 1001
EOF EOF
---- ----
<1> You can specify any file name that you want. =====================================================================
<2> Specifies the path to your Kafka Connect plug-ins directory. If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory. +
[cols="1,7",options="header"]
|===
|Item |Description
|1
|You can specify any file name that you want.
|2
|Specifies the path to your Kafka Connect plug-ins directory.
If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory.
|===
+ +
The command creates a Dockerfile with the name `debezium-container-for-db2.yaml` in the current directory. The command creates a Dockerfile with the name `debezium-container-for-db2.yaml` in the current directory.

View File

@ -1056,18 +1056,36 @@ You then create two custom resources (CRs):
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image. .. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following command: For example, from a terminal window, enter the following command:
+ +
=====================================================================
[source,shell,subs="+attributes,+quotes"] [source,shell,subs="+attributes,+quotes"]
---- ----
cat <<EOF >debezium-container-for-mongodb.yaml // <1> cat <<EOF >debezium-container-for-{context}.yaml // <1>
FROM {DockerKafkaConnect} FROM {DockerKafkaConnect}
USER root:root USER root:root
RUN mkdir -p /opt/kafka/plugins/debezium // <2> RUN mkdir -p /opt/kafka/plugins/debezium // <2>
RUN curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip RUN cd /opt/kafka/plugins/debezium/ \
&& curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& unzip debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& rm debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip
RUN cd /opt/kafka/plugins/debezium/
USER 1001 USER 1001
EOF EOF
---- ----
<1> You can specify any file name that you want. =====================================================================
<2> Specifies the path to your Kafka Connect plug-ins directory. If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory. +
[cols="1,7",options="header"]
|===
|Item |Description
|1
|You can specify any file name that you want.
|2
|Specifies the path to your Kafka Connect plug-ins directory.
If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory.
|===
+ +
The command creates a Dockerfile with the name `debezium-container-for-mongodb.yaml` in the current directory. The command creates a Dockerfile with the name `debezium-container-for-mongodb.yaml` in the current directory.

View File

@ -2249,18 +2249,36 @@ For more information, see link:{LinkDeployStreamsOpenShift}[{NameDeployStreamsOp
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image. .. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following command: For example, from a terminal window, enter the following command:
+ +
=====================================================================
[source,shell,subs="+attributes,+quotes"] [source,shell,subs="+attributes,+quotes"]
---- ----
cat <<EOF >debezium-container-for-mysql.yaml // <1> cat <<EOF >debezium-container-for-{context}.yaml // <1>
FROM {DockerKafkaConnect} FROM {DockerKafkaConnect}
USER root:root USER root:root
RUN mkdir -p /opt/kafka/plugins/debezium // <2> RUN mkdir -p /opt/kafka/plugins/debezium // <2>
RUN curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip RUN cd /opt/kafka/plugins/debezium/ \
&& curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& unzip debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& rm debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip
RUN cd /opt/kafka/plugins/debezium/
USER 1001 USER 1001
EOF EOF
---- ----
<1> You can specify any file name that you want. =====================================================================
<2> Specifies the path to your Kafka Connect plug-ins directory. If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory. +
[cols="1,7",options="header"]
|===
|Item |Description
|1
|You can specify any file name that you want.
|2
|Specifies the path to your Kafka Connect plug-ins directory.
If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory.
|===
+ +
The command creates a Dockerfile with the name `debezium-container-for-mysql.yaml` in the current directory. The command creates a Dockerfile with the name `debezium-container-for-mysql.yaml` in the current directory.

View File

@ -2118,20 +2118,37 @@ For more information, see xref:{link-oracle-connector}#obtaining-the-oracle-jdbc
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image. .. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following command: For example, from a terminal window, enter the following command:
+ +
=====================================================================
[source,shell,subs="+attributes,+quotes"] [source,shell,subs="+attributes,+quotes"]
---- ----
cat <<EOF >debezium-container-for-oracle.yaml // <1> cat <<EOF >debezium-container-for-{context}.yaml // <1>
FROM {DockerKafkaConnect} FROM {DockerKafkaConnect}
USER root:root USER root:root
RUN mkdir -p /opt/kafka/plugins/debezium // <2> RUN mkdir -p /opt/kafka/plugins/debezium // <2>
RUN curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip RUN cd /opt/kafka/plugins/debezium/ \
RUN curl -O https://repo1.maven.org/maven2/com/oracle/ojdbc/ojdbc8/{ojdbc8-version}/ojdbc8-{ojdbc8-version}.jar && curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& unzip debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& rm debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip
RUN cd /opt/kafka/plugins/debezium/ \
&& curl -O https://repo1.maven.org/maven2/com/oracle/ojdbc/ojdbc8/21.1.0.0/ojdbc8-21.1.0.0.jar
USER 1001 USER 1001
EOF EOF
---- ----
<1> You can specify any file name that you want. =====================================================================
<2> Specifies the path to your Kafka Connect plug-ins directory. If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory.
+ +
[cols="1,7",options="header"]
|===
|Item |Description
|1
|You can specify any file name that you want.
|2
|Specifies the path to your Kafka Connect plug-ins directory.
If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory.
|===
The command creates a Dockerfile with the name `debezium-container-for-oracle.yaml` in the current directory. The command creates a Dockerfile with the name `debezium-container-for-oracle.yaml` in the current directory.
.. Build the container image from the `debezium-container-for-oracle.yaml` Docker file that you created in the previous step. .. Build the container image from the `debezium-container-for-oracle.yaml` Docker file that you created in the previous step.

View File

@ -2354,17 +2354,36 @@ Apply this CR to the same OpenShift instance where you applied the `KafkaConnect
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image. .. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following command: For example, from a terminal window, enter the following command:
+ +
=====================================================================
[source,shell,subs="+attributes,+quotes"] [source,shell,subs="+attributes,+quotes"]
---- ----
cat <<EOF >debezium-container-for-postgresql.yaml // <1> cat <<EOF >debezium-container-for-{context}.yaml // <1>
FROM {DockerKafkaConnect} FROM {DockerKafkaConnect}
USER root:root USER root:root
RUN mkdir -p /opt/kafka/plugins/debezium // <2> RUN mkdir -p /opt/kafka/plugins/debezium // <2>
RUN curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zipUSER 1001 RUN cd /opt/kafka/plugins/debezium/ \
&& curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& unzip debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& rm debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip
RUN cd /opt/kafka/plugins/debezium/
USER 1001
EOF EOF
---- ----
<1> You can specify any file name that you want. =====================================================================
<2> Specifies the path to your Kafka Connect plug-ins directory. If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory. +
[cols="1,7",options="header"]
|===
|Item |Description
|1
|You can specify any file name that you want.
|2
|Specifies the path to your Kafka Connect plug-ins directory.
If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory.
|===
+ +
The command creates a Dockerfile with the name `debezium-container-for-postgresql.yaml` in the current directory. The command creates a Dockerfile with the name `debezium-container-for-postgresql.yaml` in the current directory.

View File

@ -1808,18 +1808,36 @@ You then need to create the following custom resources (CRs):
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image. .. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following command: For example, from a terminal window, enter the following command:
+ +
=====================================================================
[source,shell,subs="+attributes,+quotes"] [source,shell,subs="+attributes,+quotes"]
---- ----
cat <<EOF >debezium-container-for-sqlserver.yaml // <1> cat <<EOF >debezium-container-for-{context}.yaml // <1>
FROM {DockerKafkaConnect} FROM {DockerKafkaConnect}
USER root:root USER root:root
RUN mkdir -p /opt/kafka/plugins/debezium // <2> RUN mkdir -p /opt/kafka/plugins/debezium // <2>
RUN curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip RUN cd /opt/kafka/plugins/debezium/ \
&& curl -O {red-hat-maven-repository}debezium/debezium-connector-{connector-file}/{debezium-version}-redhat-__<build_number>__/debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& unzip debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip \
&& rm debezium-connector-{connector-file}-{debezium-version}-redhat-__<build_number>__-plugin.zip
RUN cd /opt/kafka/plugins/debezium/
USER 1001 USER 1001
EOF EOF
---- ----
<1> You can specify any file name that you want. =====================================================================
<2> Specifies the path to your Kafka Connect plug-ins directory. If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory. +
[cols="1,7",options="header"]
|===
|Item |Description
|1
|You can specify any file name that you want.
|2
|Specifies the path to your Kafka Connect plug-ins directory.
If your Kafka Connect plug-ins directory is in a different location, replace this path with the actual path of your directory.
|===
+ +
The command creates a Dockerfile with the name `debezium-container-for-sqlserver.yaml` in the current directory. The command creates a Dockerfile with the name `debezium-container-for-sqlserver.yaml` in the current directory.