forked from usdot-jpo-ode/jpo-ode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ode-466' into node-xy-dockerBuildsImage
# Conflicts Resolved: # clean-build-and-deploy.cmd # docker-compose.yml # jpo-ode-plugins/src/test/java/us/dot/its/jpo/ode/plugin/j2735/builders/TravelerMessageFromHumanToAsnConverterTest.java # jpo-ode-svcs/src/test/java/us/dot/its/jpo/ode/heartbeat/RsuSnmpTest.java # jpo-s3-deposit # start-kafka-shell.bat
- Loading branch information
Showing
71 changed files
with
1,240 additions
and
760 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
call docker-compose stop | ||
call docker-compose rm -f -v | ||
call mvn clean install -DskipTests | ||
call docker-compose up --build -d | ||
call docker-compose ps |
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,192 @@ | ||
# This docker-compose file configures PPM modules with self contained configuration and map files | ||
# So the module can run without reliance on a shared volume. This was done to avoid corporate network | ||
# and machine dress-code restrictions that would not permit the container sharing volume with host. | ||
# | ||
# DOCKER_SHARED_VOLUME_WINDOWS should be defined for Windows host machine as C: and not defined for Linux hosts | ||
|
||
version: '3' | ||
services: | ||
zookeeper: | ||
image: wurstmeister/zookeeper | ||
ports: | ||
- "2181:2181" | ||
|
||
kafka: | ||
build: ./docker/kafka | ||
ports: | ||
- "9092:9092" | ||
environment: | ||
DOCKER_HOST_IP: ${DOCKER_HOST_IP} | ||
ZK: ${DOCKER_HOST_IP}:2181 | ||
KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP} | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true" | ||
KAFKA_DELETE_TOPIC_ENABLED: "true" | ||
KAFKA_CLEANUP_POLICY: "delete" # delete old logs | ||
KAFKA_LOG_RETENTION_HOURS: 2 | ||
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 3000 | ||
KAFKA_RETENTION_MS: 7200000 # delete old logs after 2 hours | ||
KAFKA_SEGMENT_MS: 7200000 # roll segment logs every 2 hours. | ||
# This configuration controls the period of time after | ||
# which Kafka will force the log to roll even if the segment | ||
# file isn't full to ensure that retention can delete or compact old data. | ||
depends_on: | ||
- zookeeper | ||
links: | ||
- zookeeper | ||
volumes: | ||
- ${DOCKER_SHARED_VOLUME_WINDOWS}/var/run/docker.sock:/var/run/docker.sock | ||
|
||
ode: | ||
build: . | ||
ports: | ||
- "8080:8080" | ||
- "9090:9090" | ||
- "46753:46753/udp" | ||
- "46800:46800/udp" | ||
- "5555:5555/udp" | ||
- "6666:6666/udp" | ||
environment: | ||
DOCKER_HOST_IP: ${DOCKER_HOST_IP} | ||
ZK: ${DOCKER_HOST_IP}:2181 | ||
SPRING_CONFIG_LOCATION: /host_share/config/ | ||
ODE_DDS_CAS_USERNAME: ${ODE_DDS_CAS_USERNAME} | ||
ODE_DDS_CAS_PASSWORD: ${ODE_DDS_CAS_PASSWORD} | ||
ODE_EXTERNAL_IPV4: ${ODE_EXTERNAL_IPV4} | ||
ODE_EXTERNAL_IPV6: ${ODE_EXTERNAL_IPV6} | ||
ODE_SECURITY_SVCS_SIGNATURE_URI: ${ODE_SECURITY_SVCS_SIGNATURE_URI} | ||
# Commented out for latest schemaVersion. Uncomment to set for older schemaVersion | ||
# ODE_OUTPUT_SCHEMA_VERSION: ${ODE_OUTPUT_SCHEMA_VERSION} | ||
depends_on: | ||
- kafka | ||
links: | ||
- kafka | ||
- zookeeper | ||
volumes: | ||
- ${DOCKER_SHARED_VOLUME}/ode:/jpo-ode | ||
|
||
adm: | ||
build: ./asn1_codec | ||
image: jpoode_acm:latest | ||
environment: | ||
DOCKER_HOST_IP: ${DOCKER_HOST_IP} | ||
ACM_CONFIG_FILE: adm.properties | ||
depends_on: | ||
- kafka | ||
links: | ||
- kafka | ||
volumes: | ||
- ${DOCKER_SHARED_VOLUME}/adm:/asn1_codec_share | ||
|
||
aem: | ||
build: ./asn1_codec | ||
image: jpoode_acm:latest | ||
environment: | ||
DOCKER_HOST_IP: ${DOCKER_HOST_IP} | ||
ACM_CONFIG_FILE: aem.properties | ||
depends_on: | ||
- kafka | ||
links: | ||
- kafka | ||
volumes: | ||
- ${DOCKER_SHARED_VOLUME}/aem:/asn1_codec_share | ||
|
||
ppm_bsm: | ||
build: | ||
context: ./jpo-cvdp | ||
dockerfile: Dockerfile-nsv | ||
args: | ||
PPM_CONFIG_FILE: ${PPM_BSM_CONFIG_FILE} | ||
PPM_MAP_FILE: ${PPM_MAP_FILE} | ||
image: jpoode_ppm_bsm:latest | ||
environment: | ||
DOCKER_HOST_IP: ${DOCKER_HOST_IP} | ||
PPM_CONFIG_FILE: ${PPM_BSM_CONFIG_FILE} | ||
PPM_MAP_FILE: ${PPM_MAP_FILE} | ||
volumes: | ||
- ${DOCKER_SHARED_VOLUME}/ppm_bsm:/ppm_data | ||
depends_on: | ||
- kafka | ||
|
||
ppm_tim: | ||
build: | ||
context: ./jpo-cvdp | ||
dockerfile: Dockerfile-nsv | ||
args: | ||
PPM_CONFIG_FILE: ${PPM_TIM_CONFIG_FILE} | ||
PPM_MAP_FILE: ${PPM_MAP_FILE} | ||
image: jpoode_ppm_tim:latest | ||
environment: | ||
DOCKER_HOST_IP: ${DOCKER_HOST_IP} | ||
PPM_CONFIG_FILE: ${PPM_TIM_CONFIG_FILE} | ||
PPM_MAP_FILE: ${PPM_MAP_FILE} | ||
volumes: | ||
- ${DOCKER_SHARED_VOLUME}/ppm_tim:/ppm_data | ||
depends_on: | ||
- kafka | ||
|
||
cvpep_bsm_depositor: | ||
build: ./jpo-s3-deposit | ||
image: jpoode_s3dep:latest | ||
environment: | ||
AWS_ACCESS_KEY_ID: ${CVPEP_BSM_ACCESS_KEY_ID} | ||
AWS_SECRET_ACCESS_KEY: ${CVPEP_BSM_SECRET_ACCESS_KEY} | ||
DOCKER_HOST_IP: ${DOCKER_HOST_IP} | ||
DEPOSIT_BUCKET_NAME: ${CVPEP_BSM_BUCKET_NAME} | ||
DEPOSIT_KEY_NAME: ${CVPEP_BSM_DEPOSIT_KEY} | ||
DEPOSIT_TOPIC: ${CVPEP_BSM_TOPIC} | ||
depends_on: | ||
- kafka | ||
links: | ||
- kafka | ||
|
||
rde_bsm_depositor: | ||
build: ./jpo-s3-deposit | ||
image: jpoode_s3dep:latest | ||
environment: | ||
AWS_ACCESS_KEY_ID: ${RDE_BSM_ACCESS_KEY_ID} | ||
AWS_SECRET_ACCESS_KEY: ${RDE_BSM_SECRET_ACCESS_KEY} | ||
DOCKER_HOST_IP: ${DOCKER_HOST_IP} | ||
DEPOSIT_BUCKET_NAME: ${RDE_BSM_BUCKET_NAME} | ||
DEPOSIT_KEY_NAME: ${RDE_BSM_DEPOSIT_KEY} | ||
DEPOSIT_TOPIC: ${RDE_BSM_TOPIC} | ||
depends_on: | ||
- kafka | ||
links: | ||
- kafka | ||
|
||
cvpep_tim_depositor: | ||
build: ./jpo-s3-deposit | ||
image: jpoode_s3dep:latest | ||
environment: | ||
AWS_ACCESS_KEY_ID: ${CVPEP_TIM_ACCESS_KEY_ID} | ||
AWS_SECRET_ACCESS_KEY: ${CVPEP_TIM_SECRET_ACCESS_KEY} | ||
DOCKER_HOST_IP: ${DOCKER_HOST_IP} | ||
DEPOSIT_BUCKET_NAME: ${CVPEP_TIM_BUCKET_NAME} | ||
DEPOSIT_KEY_NAME: ${CVPEP_TIM_DEPOSIT_KEY} | ||
DEPOSIT_TOPIC: ${CVPEP_TIM_TOPIC} | ||
depends_on: | ||
- kafka | ||
links: | ||
- kafka | ||
|
||
rde_tim_depositor: | ||
build: ./jpo-s3-deposit | ||
image: jpoode_s3dep:latest | ||
environment: | ||
AWS_ACCESS_KEY_ID: ${RDE_TIM_ACCESS_KEY_ID} | ||
AWS_SECRET_ACCESS_KEY: ${RDE_TIM_SECRET_ACCESS_KEY} | ||
DOCKER_HOST_IP: ${DOCKER_HOST_IP} | ||
DEPOSIT_BUCKET_NAME: ${RDE_TIM_BUCKET_NAME} | ||
DEPOSIT_KEY_NAME: ${RDE_TIM_DEPOSIT_KEY} | ||
DEPOSIT_TOPIC: ${RDE_TIM_TOPIC} | ||
depends_on: | ||
- kafka | ||
links: | ||
- kafka | ||
sec: | ||
build: ./jpo-security-svcs | ||
ports: | ||
- "8090:8090" | ||
environment: | ||
SEC_CRYPTO_SERVICE_BASE_URI: ${SEC_CRYPTO_SERVICE_BASE_URI} |
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 @@ | ||
docker run -it -v %DOCKER_SHARED_VOLUME%:/ppm_data --env-file=.env jpoode_ppm:latest %1 |
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
Binary file not shown.
Submodule jpo-cvdp
updated
8 files
+1 −0 | .gitignore | |
+35 −0 | Dockerfile-nsv | |
+35 −0 | config/ppmBsm.properties | |
+35 −0 | config/ppmTim.properties | |
+7 −0 | docker-test/ppm-nsv.sh | |
+5 −1 | include/bsmfilter.hpp | |
+38 −17 | src/bsmfilter.cpp | |
+1 −0 | src/ppm.cpp |
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
66 changes: 66 additions & 0 deletions
66
jpo-ode-core/src/main/java/us/dot/its/jpo/ode/model/OdeRequestMsgMetadata.java
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,66 @@ | ||
package us.dot.its.jpo.ode.model; | ||
|
||
import us.dot.its.jpo.ode.plugin.ServiceRequest; | ||
|
||
public class OdeRequestMsgMetadata extends OdeMsgMetadata { | ||
|
||
/** | ||
* | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
|
||
ServiceRequest request; | ||
|
||
public OdeRequestMsgMetadata() { | ||
super(); | ||
} | ||
|
||
public OdeRequestMsgMetadata(OdeMsgPayload payload) { | ||
super(payload); | ||
} | ||
|
||
public OdeRequestMsgMetadata(String payloadType, SerialId serialId, String receivedAt) { | ||
super(payloadType, serialId, receivedAt); | ||
} | ||
|
||
public OdeRequestMsgMetadata(OdeMsgPayload payload, ServiceRequest request) { | ||
super(payload); | ||
setRequest(request); | ||
} | ||
|
||
public ServiceRequest getRequest() { | ||
return request; | ||
} | ||
|
||
public void setRequest(ServiceRequest request) { | ||
this.request = request; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
final int prime = 31; | ||
int result = super.hashCode(); | ||
result = prime * result + ((request == null) ? 0 : request.hashCode()); | ||
return result; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (this == obj) | ||
return true; | ||
if (!super.equals(obj)) | ||
return false; | ||
if (getClass() != obj.getClass()) | ||
return false; | ||
OdeRequestMsgMetadata other = (OdeRequestMsgMetadata) obj; | ||
if (request == null) { | ||
if (other.request != null) | ||
return false; | ||
} else if (!request.equals(other.request)) | ||
return false; | ||
return true; | ||
} | ||
|
||
|
||
|
||
} |
Oops, something went wrong.