-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* minor style fixes * correct host name * minor change * minor correction * minor update * minor change * minor change * added additional mock directories for dependabot scan * Automated commit: Unpin versions of updated images * update * added back ssl changes for kafka producer * lint * minor change * minor update --------- Co-authored-by: VRO Machine User <[email protected]> Co-authored-by: Teja <[email protected]>
- Loading branch information
1 parent
f6c797a
commit 5a7232b
Showing
13 changed files
with
994 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Use the official Confluent Schema Registry image as the base | ||
FROM confluentinc/cp-schema-registry:7.5.1 | ||
|
||
USER root | ||
|
||
# Install jq using yum (as root) | ||
RUN yum install -y jq-1.6 && yum clean all | ||
|
||
# Create a new user 'tron' and create a home directory for the user | ||
RUN useradd -m tron | ||
|
||
# Switch to the new user 'tron' | ||
USER tron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
plugins { | ||
id 'shared.docker.container-conventions' | ||
} | ||
|
||
docker { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Start Schema Registry in the background | ||
/etc/confluent/docker/run & | ||
|
||
# Define the Schema Registry URL | ||
SCHEMA_REGISTRY_URL="http://localhost:8081" | ||
|
||
# Wait for Schema Registry to be available | ||
until curl --silent --output /dev/null --fail "$SCHEMA_REGISTRY_URL"; do | ||
echo "Waiting for Schema Registry to be available..." | ||
sleep 5 | ||
done | ||
|
||
|
||
# Navigate to /avro/events folder | ||
cd /avro/events | ||
|
||
# Loop through all .avsc files in the folder | ||
for file in *.avsc; do | ||
# Extract the filename without extension to be used as subject name | ||
subject="${file%.avsc}" | ||
|
||
# Read the file content as schema data | ||
schema=$(cat "$file") | ||
|
||
# Register the schema with the Schema Registry | ||
echo "Registering schema for subject: $subject" | ||
curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" \ | ||
--data "$(jq -n --arg schema "$schema" '{"schema": $schema}')" \ | ||
"$SCHEMA_REGISTRY_URL/subjects/$subject/versions" | ||
done | ||
|
||
|
||
# Wait for Schema Registry process to complete | ||
wait $! |
188 changes: 188 additions & 0 deletions
188
...registry/resources/avro/events/TST_CONTENTION_BIE_CONTENTION_ASSOCIATED_TO_CLAIM_V02.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
{ | ||
"name":"ContentionAssociatedToClaim", | ||
"type":"record", | ||
"namespace":"gov.va.bip.bie.claim.contention", | ||
"fields":[ | ||
{ | ||
"name": "ActionName", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "ActionResultName", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "ActorApplicationId", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "ActorStation", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "ActorUserId", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "AutomationIndicator", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name":"BenefitClaimTypeCode", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name":"ClaimId", | ||
"type":"long" | ||
}, | ||
{ | ||
"name":"ContentionClassificationName", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name":"ContentionId", | ||
"type":"long" | ||
}, | ||
{ | ||
"name":"ContentionStatusTypeCode", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name":"ContentionTypeCode", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name":"CurrentLifecycleStatus", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name":"DateAdded", | ||
"type": [ | ||
"null", | ||
{ | ||
"type": "long", | ||
"connect.version": 1, | ||
"connect.name": "org.apache.kafka.connect.data.Timestamp", | ||
"logicalType": "timestamp-millis" | ||
} | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "Details", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name":"DiagnosticTypeCode", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "EventTime", | ||
"type": | ||
{ | ||
"type": "long", | ||
"connect.version": 1, | ||
"connect.name": "org.apache.kafka.connect.data.Timestamp", | ||
"logicalType": "timestamp-millis" | ||
} | ||
}, | ||
{ | ||
"name":"VeteranParticipantId", | ||
"type": [ | ||
"null", | ||
"long" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "BieTs", | ||
"doc": "The timestamp that BIE processed the event.", | ||
"type": [ | ||
"null", | ||
{ | ||
"type": "long", | ||
"connect.version": 1, | ||
"connect.name": "org.apache.kafka.connect.data.Timestamp", | ||
"logicalType": "timestamp-millis" | ||
} | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "SourceTs", | ||
"doc": "The timestamp of the source event. This is the time of the database operation.", | ||
"type": [ | ||
"null", | ||
{ | ||
"type": "long", | ||
"connect.version": 1, | ||
"connect.name": "org.apache.kafka.connect.data.Timestamp", | ||
"logicalType": "timestamp-millis" | ||
} | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "ConnectorTs", | ||
"doc": "The timestamp that the connector processed the event.", | ||
"type": [ | ||
"null", | ||
{ | ||
"type": "long", | ||
"connect.version": 1, | ||
"connect.name": "org.apache.kafka.connect.data.Timestamp", | ||
"logicalType": "timestamp-millis" | ||
} | ||
], | ||
"default": null | ||
} | ||
] | ||
} |
Oops, something went wrong.