Skip to content

Using the .env configuration file

Matt S edited this page Dec 19, 2018 · 12 revisions

Summary

The ODE application can be configured using shell environment variables. Users can either set these variables locally or edit them in the .env file located in the root jpo-ode directory.

Utilization

The following table list the environment variables used in Docker files and shell scripts to automate the deployment process and customize it for each deployment environment. Setting these environment variables will allow the deployment to take place without any modification to the default configuration files.

Notes:

  • Variables set locally will override any variables set in the file
  • The dot prefix on the .env filename will make it appear hidden on Unix operating systems. You can view hidden files using ls -la.
  • Privacy note: take care when using source control as these variables contain sensitive information.
Environment Variable Description
DOCKER_HOST_IP (Required) The IP address of Docker host machine which can be found by running "ifconfig". Look for "inet addr:" within "eth0" or "en0" for OSX
DOCKER_SHARED_VOLUME (Required) The full path of a directory on the host machine to be shared with docker containers.
ODE_DDS_CAS_USERNAME The username for authenticating the USDOT Situation Data Warehouse WebSocket server
ODE_DDS_CAS_PASSWORD The password for authenticating the USDOT Situation Data Warehouse WebSocket server
ODE_EXTERNAL_IPV4 The advertised IPv4 address of the server running ODE
ODE_EXTERNAL_IPV6 The advertised IPv6 address of the server running ODE
CVPEP_BSM_S3_ACCESS_KEY_ID CVPEP BSM S3 depositor access key id
CVPEP_BSM_S3_SECRET_ACCESS_KEY CVPEP BSM S3 depositor secret access key
CVPEP_BSM_S3_BUCKET_NAME CVPEP BSM S3 depositor bucket name
CVPEP_BSM_S3_DEPOSIT_KEY CVPEP BSM S3 filepath prefix
CVPEP_BSM_S3_TOPIC CVPEP BSM S3 kafka subscription topic
RDE_BSM_S3_ACCESS_KEY_ID RDE BSM S3 depositor access key id
RDE_BSM_S3_SECRET_ACCESS_KEY RDE BSM S3 depositor secret access key
RDE_BSM_S3_BUCKET_NAME RDE BSM S3 depositor bucket name
RDE_BSM_S3_DEPOSIT_KEY RDE BSM S3 filepath prefix
RDE_BSM_S3_TOPIC RDE BSM S3 kafka subscription topic
CVPEP_TIM_S3_ACCESS_KEY_ID CVPEP TIM S3 depositor access key id
CVPEP_TIM_S3_SECRET_ACCESS_KEY CVPEP TIM S3 depositor secret access key
CVPEP_TIM_S3_BUCKET_NAME CVPEP TIM S3 depositor bucket name
CVPEP_TIM_S3_DEPOSIT_KEY CVPEP TIM S3 filepath prefix
CVPEP_TIM_S3_TOPIC CVPEP TIM S3 kafka subscription topic
RDE_TIM_S3_ACCESS_KEY_ID RDE TIM S3 depositor access key id
RDE_TIM_S3_SECRET_ACCESS_KEY RDE TIM S3 depositor secret access key
RDE_TIM_S3_BUCKET_NAME RDE TIM S3 depositor bucket name
RDE_TIM_S3_DEPOSIT_KEY RDE TIM S3 filepath prefix
RDE_TIM_S3_TOPIC RDE TIM S3 kafka subscription topic
ODE_OUTPUT_SCHEMA_VERSION Sets the schemaVersion desired for output messages.
SEC_CRYPTO_SERVICE_BASE_URI Sets the URI for the crypto service, used by ode-security-svcs. This is the end-point that ode-security-svcs uses to perform cryptographic functions such as signing, signature verification, encrypting and decrypting
ODE_SECURITY_SVCS_SIGNATURE_URI Sets the URI for ODE signature service. If set to UNSECURED data will not be signed.
ODE_RSU_USERNAME Sets the default RSU username to be used. See here for more details.
ODE_RSU_PASSWORD Sets the default RSU password to be used. See here for more details.

Releases

Change Notices

Informational Reference

  • Decode a file with asn1c
  • Deposit BSM to S3
  • Docker fix for SSL issues due to corporate network
  • Docker management
  • ECDSA Primer
  • Filter BSMs through PPM module
  • Geofence Filtering for PPM
  • Import BSMs from RSU log file
  • Import TIMs from RSU log file
  • jpo security svcs Integration
  • Link host directory to Docker directory
  • Migrating from SDW websocket depositor to SDW Depositor Submodule
  • ODE Release Deployment
  • ODE Release Preparation
  • Prepare a fresh Ubuntu instance for ODE installation
  • Process for Handling Bugs (Code Defects)
  • Run the ODE using the ASN codec module
  • Query RSU for set TIMs
  • Schema Version 6 Change Notice
  • Signed Message File Import
  • TIM REST Endpoint Changes
  • Using the .env configuration file
  • Using the ODE test harness

Test Procedures

  • Delete TIM on RSU test
  • Event Logger Test
  • Import Decode and Deliver BSM Test
  • Manage SNMP Test
  • Sending PDM to RSU Test
  • Sending TIM to RSU Test
  • Submit_TIM_To_SDW Test

Archived

  • Log File Changes (schemaVersion=4)
  • Receive BSMs over UDP
  • Receive ISD via UDP and deposit to SDC
  • Receive VSD via UDP and deposit to SDC
  • Run the crypto test vectors code with ODE team's OSS encoder
  • SchemaVersion 5 Change Notice
Clone this wiki locally