Skip to content

Commit

Permalink
parameterized env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jaise-aot committed Oct 26, 2023
1 parent 0fca0ad commit fc08c79
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion etl/debezium-jdbc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app/
COPY ./ ./
RUN mvn clean install


RUN echo "DEBEZIUM_VERSION is $DEBEZIUM_VERSION"

FROM debezium/connect:$DEBEZIUM_VERSION

Expand Down
42 changes: 42 additions & 0 deletions openshift/templates/etl/debezium-jdbc-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ objects:
type: Docker
dockerStrategy:
dockerfilePath: "${DOCKER_FILE_PATH}"
env:
- name: "DEBEZIUM_VERSION"
value: "${DEBEZIUM_VERSION}"
- name: "ORACLE_JDBC_VERSION"
value: "${ORACLE_JDBC_VERSION}"
- name: "ORACLE_JDBC_MD5"
value: "${ORACLE_JDBC_MD5}"
- name: "KAFKA_JDBC_VERSION"
value: "${KAFKA_JDBC_VERSION}"
- name: "ORACLE_DB_HOST"
value: "${ORACLE_DB_HOST}"
- name: "ORACLE_DB_PORT"
value: "${ORACLE_DB_PORT}"

output:
to:
kind: ImageStreamTag
Expand Down Expand Up @@ -57,3 +71,31 @@ parameters:
description: The path to the docker file defining the build.
required: false
value: "Dockerfile"
- name: DEBEZIUM_VERSION
displayName: Debezium Version
description: Debezium image version.
required: false
value: "1.9"
- name: ORACLE_JDBC_VERSION
displayName: Oracle JDBC Version
description: Oracle JDBC Version.
required: false
value: "21.6.0.0"
- name: ORACLE_JDBC_MD5
displayName: Oracle JDBC Checksum
description: Oracle JDBC File Checksum.
required: false
value: "312e6f4ec9932bbf74a4461669970c4b"
- name: KAFKA_JDBC_VERSION
displayName: Kafka JDBC Version
description: Kafka Jdbc Version.
required: false
value: "5.3.1"
- name: ORACLE_DB_HOST
displayName: Oracle DB Host
description: Oracle Database Host Name
required: true
- name: ORACLE_DB_PORT
displayName: Oracle DB Port
description: Oracle Database Port.
required: true

0 comments on commit fc08c79

Please sign in to comment.