DBZ-4392 Update deployment steps to use curl to pull Maven artifacts

This commit is contained in:
Bob Roldan 2022-03-31 21:23:02 -04:00 committed by Chris Cranford
parent ca01aa9b50
commit c64558ae77
6 changed files with 23 additions and 78 deletions

View File

@ -1704,19 +1704,9 @@ For more information, see link:{LinkDeployStreamsOpenShift}[{NameDeployStreamsOp
.Procedure
. Create the {prodname} Db2 container for Kafka Connect:
.. Download the {prodname} link:https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=red.hat.integration&downloadType=distributions[Db2 connector archive].
.. Extract the {prodname} Db2 connector archive to create a directory structure for the connector plug-in, for example:
+
[subs="+macros"]
----
./my-plugins/
├── debezium-connector-db2
│ ├── ...
----
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following, replacing `my-plugins` with the name of your plug-ins directory:
For example, from a terminal window, enter the following command:
+
[source,shell,subs="+attributes,+quotes"]
----
@ -1729,9 +1719,8 @@ RUN curl -O https://repo1.maven.org/maven2/com/ibm/db2/jcc/{db2-version}/jcc-{db
USER 1001
EOF
----
// Does the preceding example require additional commands to extract the retrieved zip and JAR files? E.g. piping the `curl` request to `tar` or extending the command with `&& tar -xzf _<filename>_`?
<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 plugins directory is in a different location, replace instances of this path to reflect the actual location.
<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.

View File

@ -1147,30 +1147,22 @@ You then create two custom resources (CRs):
.Procedure
. Create the {prodname} MongoDB container for Kafka Connect:
.. Download the {prodname} link:https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=red.hat.integration&downloadType=distributions[MongoDB connector archive].
.. Extract the {prodname} MongoDB connector archive to create a directory structure for the connector plug-in, for example:
+
[subs="+macros"]
----
./my-plugins/
├── debezium-connector-mongodb
│ ├── ...
----
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following, replacing `my-plugins` with the name of your plug-ins directory:
For example, from a terminal window, enter the following command:
+
[source,shell,subs="+attributes,+quotes"]
----
cat <<EOF >debezium-container-for-mongodb.yaml // <1>
FROM {DockerKafkaConnect}
USER root:root
COPY ./_<my-plugins>_/ /opt/kafka/plugins/ // <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
USER 1001
EOF
----
<1> You can specify any file name that you want.
<2> Replace `my-plugins` with the name of your plug-ins directory.
<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.

View File

@ -2038,31 +2038,22 @@ For more information, see link:{LinkDeployStreamsOpenShift}[{NameDeployStreamsOp
.Procedure
. Create the {prodname} MySQL container for Kafka Connect:
.. Download the {prodname} link:https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=red.hat.integration&downloadType=distributions[MySQL connector archive].
.. Extract the {prodname} MySQL connector archive to create a directory structure for the connector plug-in, for example:
+
[subs="+macros"]
----
./my-plugins/
├── debezium-connector-mysql
│ ├── ...
----
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following, replacing `my-plugins` with the name of your plug-ins directory:
For example, from a terminal window, enter the following command:
+
[source,shell,subs="+attributes,+quotes"]
----
cat <<EOF >debezium-container-for-mysql.yaml // <1>
FROM {DockerKafkaConnect}
USER root:root
COPY ./_<my-plugins>_/ /opt/kafka/plugins/ // <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
USER 1001
EOF
----
<1> You can specify any file name that you want.
<2> Replace `my-plugins` with the name of your plug-ins directory.
<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.

View File

@ -1949,31 +1949,23 @@ For more information, see xref:{link-oracle-connector}#obtaining-the-oracle-jdbc
.Procedure
. Create the {prodname} Oracle container for Kafka Connect:
.. Download the {prodname} link:https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=red.hat.integration&downloadType=distributions[Oracle connector archive].
.. Extract the {prodname} Oracle connector archive to create a directory structure for the connector plug-in, for example:
+
[subs="+macros"]
----
./my-plugins/
├── debezium-connector-oracle
│ ├── ...
----
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following, replacing `my-plugins` with the name of your plug-ins directory:
For example, from a terminal window, enter the following command:
+
[source,shell,subs="+attributes,+quotes"]
----
cat <<EOF >debezium-container-for-oracle.yaml // <1>
FROM {DockerKafkaConnect}
USER root:root
COPY ./_<my-plugins>_/ /opt/kafka/plugins/ // <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 curl -O https://repo1.maven.org/maven2/com/oracle/ojdbc/ojdbc8/{ojdbc8-version}/ojdbc8-{ojdbc8-version}.jar
USER 1001
EOF
----
<1> You can specify any file name that you want.
<2> Replace `my-plugins` with the name of your plug-ins directory.
<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.

View File

@ -2345,31 +2345,21 @@ Apply this CR to the same OpenShift instance where you applied the `KafkaConnect
.Procedure
. Create the {prodname} PostgreSQL container for Kafka Connect:
.. Download the {prodname} link:https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=red.hat.integration&downloadType=distributions[PostgreSQL connector archive].
.. Extract the {prodname} PostgreSQL connector archive to create a directory structure for the connector plug-in, for example:
+
[subs="+macros"]
----
./my-plugins/
├── debezium-connector-postgresql
│ ├── ...
----
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following, replacing `my-plugins` with the name of your plug-ins directory:
For example, from a terminal window, enter the following command:
+
[source,shell,subs="+attributes,+quotes"]
----
cat <<EOF >debezium-container-for-postgresql.yaml // <1>
FROM {DockerKafkaConnect}
USER root:root
COPY ./_<my-plugins>_/ /opt/kafka/plugins/ // <2>
USER 1001
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
EOF
----
<1> You can specify any file name that you want.
<2> Replace `my-plugins` with the name of your plug-ins directory.
<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.

View File

@ -1751,31 +1751,22 @@ You then need to create the following custom resources (CRs):
.Procedure
. Create the {prodname} SQL Server container for Kafka Connect:
.. Download the {prodname} link:https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=red.hat.integration&downloadType=distributions[SQL Server connector archive].
.. Extract the {prodname} SQL Server connector archive to create a directory structure for the connector plug-in, for example:
+
[subs="+macros"]
----
./my-plugins/
├── debezium-connector-sqlserver
│ ├── ...
----
.. Create a Dockerfile that uses `{DockerKafkaConnect}` as the base image.
For example, from a terminal window, enter the following, replacing `my-plugins` with the name of your plug-ins directory:
For example, from a terminal window, enter the following command:
+
[source,shell,subs="+attributes,+quotes"]
----
cat <<EOF >debezium-container-for-sqlserver.yaml // <1>
FROM {DockerKafkaConnect}
USER root:root
COPY ./_<my-plugins>_/ /opt/kafka/plugins/ // <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
USER 1001
EOF
----
<1> You can specify any file name that you want.
<2> Replace `my-plugins` with the name of your plug-ins directory.
<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.