Add mongo scenario data
This commit is contained in:
parent
ed6c231548
commit
5c6be895e4
8
components/entitiy_ident/mongo/Dockerfile
Normal file
8
components/entitiy_ident/mongo/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
FROM mongo:4.4
|
||||||
|
|
||||||
|
COPY ./import.sh .
|
||||||
|
COPY ./cars.json .
|
||||||
|
COPY ./traffic_lights.json .
|
||||||
|
|
||||||
|
ADD import.sh /docker-entrypoint-initdb.d
|
||||||
|
|
||||||
17
components/entitiy_ident/mongo/cars.json
Normal file
17
components/entitiy_ident/mongo/cars.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"oem": "BENTLEY",
|
||||||
|
"modelType": "Continental",
|
||||||
|
"vin": "SCBFR7ZA5CC072256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"oem": "SATURN",
|
||||||
|
"modelType": "Vue",
|
||||||
|
"vin": "5GZCZ43D13S812715"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"oem": "SATURN",
|
||||||
|
"modelType": "Vue2",
|
||||||
|
"vin": "5GZCZ43D13S812715"
|
||||||
|
}
|
||||||
|
]
|
||||||
4
components/entitiy_ident/mongo/import.sh
Normal file
4
components/entitiy_ident/mongo/import.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mongoimport --db entities --collection cars --type json --file cars.json --jsonArray
|
||||||
|
mongoimport --db entities --collection trafficLights --type json --file traffic_lights.json --jsonArray
|
||||||
16
components/entitiy_ident/mongo/traffic_lights.json
Normal file
16
components/entitiy_ident/mongo/traffic_lights.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "1",
|
||||||
|
"location": {
|
||||||
|
"type": "Point",
|
||||||
|
"coordinates": [-73.856077, 40.848447]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "2",
|
||||||
|
"location": {
|
||||||
|
"type": "Point",
|
||||||
|
"coordinates": [-73.856077, 40.848447]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
Loading…
x
Reference in New Issue
Block a user