Skip to content

Commit 5e5aeee

Browse files
committed
Merge branch 'develop' of github.com:CDOT-CV/jpo-utils into mongo-ttl-updates
2 parents 3c65ec5 + a51bb97 commit 5e5aeee

5 files changed

+38
-4
lines changed

azure-pipelines.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Starter pipeline
2+
# Start with a minimal pipeline that you can customize to build and deploy your code.
3+
# Add steps that build, run tests, deploy, and more:
4+
# https://aka.ms/yaml
5+
6+
trigger:
7+
branches:
8+
include:
9+
- develop
10+
paths:
11+
include:
12+
- 'jikkou/*'
13+
- 'kafka-connect/*'
14+
15+
pool:
16+
vmImage: ubuntu-latest
17+
18+
steps:
19+
- task: CopyFiles@2
20+
inputs:
21+
SourceFolder: '.'
22+
Contents: '**'
23+
TargetFolder: '$(Build.ArtifactStagingDirectory)'
24+
25+
# Publish the artifacts directory for consumption in publish pipeline
26+
- task: PublishBuildArtifacts@1
27+
inputs:
28+
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
29+
ArtifactName: 'jpo-utils-services'
30+
publishLocation: 'Container'

jikkou/kafka-connectors-template.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
kafka.jikkou.io/connect-cluster: {{ values.clusterName }}
1313
spec:
1414
connectorClass: {{ system.env.KAFKA_CONNECT_CONNECTOR_CLASS | default(values.connectorClass) }}
15-
tasksMax: {{ system.env.KAFKA_TOPIC_PARTITIONS | default(values.tasksMax) }}
15+
tasksMax: {{ system.env.CONNECT_TASKS_MAX | default(values.tasksMax) }}
1616
config:
1717
collection: {{ connector.collectionName }}
1818
connection.uri: mongodb://{{ system.env.MONGO_CONNECTOR_USERNAME }}:{{ system.env.MONGO_CONNECTOR_PASSWORD }}@{{ system.env.MONGO_DB_IP }}:27017/

jikkou/kafka-topics-values.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ apps:
174174
- topic.DeduplicatedOdeRawEncodedTIMJson
175175
- topic.DeduplicatedOdeBsmJson
176176
- topic.DeduplicatedProcessedBsm
177+
- topic.DeduplicatedProcessedSpat
177178
tableTopics: {}
178179
customTopics: {}
179180
kafkaconnect:
@@ -185,10 +186,10 @@ apps:
185186
partitions: 1
186187
cleanUpPolicy: compact
187188
- topicName: topic.KafkaConnectOffsets
188-
partitions: 20
189+
partitions: 3
189190
cleanUpPolicy: compact
190191
- topicName: topic.KafkaConnectStatus
191-
partitions: 10
192+
partitions: 3
192193
cleanUpPolicy: compact
193194
mecdeposit:
194195
name: jpo-mecdeposit

kafka-connect/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM confluentinc/cp-kafka-connect:7.7.0
22

3+
# MongoDB Kafka Connector
34
# Docs: https://www.mongodb.com/docs/kafka-connector/current/
45
RUN confluent-hub install --no-prompt mongodb/kafka-connect-mongodb:1.13.0
6+
7+
# Transforms
58
# Docs: https://docs.confluent.io/platform/current/connect/transforms/overview.html
69
RUN confluent-hub install --no-prompt confluentinc/connect-transforms:1.4.7

mongo/create_indexes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const odeCollections = [
8888
const geoJsonConverterCollections = [
8989
{name: "ProcessedMap", ttlField: "recordGeneratedAt", timeField: "properties.timeStamp", intersectionField: "properties.intersectionId", expireTime: expireSeconds},
9090
{name: "ProcessedSpat", ttlField: "recordGeneratedAt", timeField: "utcTimeStamp", intersectionField: "intersectionId", expireTime: expireSeconds},
91-
{name: "ProcessedBsm", ttlField: "recordGeneratedAt", timeField: "timeStamp", geoSpatialField: "features.geometry.coordinates", expireTime: expireSeconds},
91+
{name: "ProcessedBsm", ttlField: "recordGeneratedAt", timeField: "timeStamp", geoSpatialField: "geometry.coordinates", expireTime: expireSeconds},
9292
];
9393

9494

0 commit comments

Comments
 (0)