-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync develop to master #610
Changes from 4 commits
84251ed
5525e53
6d60d91
bce7236
9c30a8a
16d93f1
b2025ad
51f2e6e
bc7d1ff
23be0ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ services: | |
- mysql-datavolume:/var/lib/mysql | ||
|
||
php: | ||
image: usdotfhwaops/php:7.6.0 | ||
image: usdotfhwaops/php:${V2XHUB_VERSION:-develop} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How do we distinguish this v2xhub docker version from the v2xhub ( plugins ) software version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We do not. |
||
container_name: php | ||
network_mode: host | ||
depends_on: | ||
|
@@ -30,23 +30,33 @@ services: | |
tty: true | ||
|
||
v2xhub: | ||
image: usdotfhwaops/v2xhubamd:7.6.0 | ||
image: usdotfhwaops/v2xhubamd:${V2XHUB_VERSION:-develop} | ||
container_name: v2xhub | ||
network_mode: host | ||
restart: always | ||
depends_on: | ||
- db | ||
environment: | ||
- MYSQL_PASSWORD=/run/secrets/mysql_password | ||
- INFRASTRUCTURE_ID=rsu_<J2735 MAP MESSAGE INTERSECTION ID> | ||
- INFRASTRUCTURE_NAME=<RSU_NAME> | ||
- SIMULATION_MODE=${SIMULATION_MODE:-false} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we reading this variable from .env file? If yes, can we upload a sample.env file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The default values alleviate a need for a sample env. With non provided it will use the default values. I could add documentation to instruct users on how to generate a .env file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be beneficial if we could provide a sample.env, such as:
Since this is not our standard practice, I am ok leaving as it. |
||
- SIMULATION_IP=${SIMULATION_IP:-127.0.0.1} | ||
- SIMULATION_REGISTRATION_PORT=6767 | ||
- LOCAL_IP=${LOCAL_IP:-127.0.0.1} | ||
- TIME_SYNC_TOPIC=time_sync | ||
- TIME_SYNC_PORT=7575 | ||
- SIM_V2X_PORT=5757 | ||
- SIM_INTERACTION_PORT=7576 | ||
- V2X_PORT=8686 | ||
- INFRASTRUCTURE_ID=${INFRASTRUCTURE_ID:-rsu_1234} | ||
- INFRASTRUCTURE_NAME=${INFRASTRUCTURE_NAME:-East Intersection} | ||
- SENSOR_JSON_FILE_PATH=${SENSOR_JSON_FILE_PATH:-/var/www/plugins/MAP/sensors.json} | ||
secrets: | ||
- mysql_password | ||
volumes: | ||
- ./logs:/var/log/tmx | ||
- ./MAP:/var/www/plugins/MAP | ||
port_drayage_webservice: | ||
image: usdotfhwaops/port-drayage-webservice:7.6.0 | ||
image: usdotfhwaops/port-drayage-webservice:${V2XHUB_VERSION:-develop} | ||
container_name: port_drayage_webservice | ||
network_mode: host | ||
secrets: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a syntax error. Do you mean just ${V2XHUB_VERSION}?
ditto for all occurrences in the PR.
And does this variable need to be in a .env file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this is not a syntax error. This is how you specify docker-compose environment variables with a default value https://docs.docker.com/compose/environment-variables/env-file/#interpolation. This way we do not have to provide an .env file but if one is used it will overwrite the default values.