Skip to content

Docker management

hmusavi edited this page Nov 1, 2017 · 4 revisions

Docker Image

jpoode_ode:latest

Kafka Broker Image

Version 0.10.1.0

Prerequisites

  • Install docker-compose https://docs.docker.com/compose/install/
  • Set the environment variable DOCKER_HOST_IP to the IP address of the machine that will be hosting the application containers. Alternatively, create a .env file in the same directory as docker-compose.yml.
  • if you want to customise any Kafka parameters, simply add them as environment variables in docker-compose.yml, e.g. in order to increase the message.max.bytes parameter set the environment to KAFKA_MESSAGE_MAX_BYTES: 2000000. To turn off automatic topic creation set KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'

Additional Prerequisites for Windows 7:

  1. Make sure visualization is enabled in your BIOS

  2. Run Command: docker-machine start default

  3. Run Command: docker-machine env

  4. Set Docker environment variables: a. Manually set the environment variables shown in your system environment permanently (make them static) OR b. Run Command: @FOR /f "tokens=*" %i IN ('docker-machine env') DO @%i

  5. docker-machine ls ;Lists docker containers and the associated ip and port numbers

Helpful hints

Obtaining DOCKER_HOST_IP

  1. Run ifconfig
  2. Look for "inet addr:" under the desired network interface - generally "eth0" for Linux and "en0" for OSX
  3. Copy that IP address and then run command export DOCKER_HOST_IP=<addr>

Creating a DOCKER_SHARED_VOLUME

  1. Create a new directory somewhere on your machine, and note the full path
mkdir mySharedVolume
cd mySharedVolume
echo $PWD ### this will report the full path of your shared volume

Note: DOCKER_SHARED_VOLUME must be in Linux format. If you are running on a Windows machine, valid Linux format would be something like: /C/mySharedVolume if mySharedVolume were to be created on the root of your C Drive.

  1. Set the DOCKER_SHARED_VOLUME variable to that full path in the environment file or locally by export DOCKER_SHARED_VOLUME=$PWD

Resolve Git SSL issues by disabling SSL verification

  • export GIT_SSL_NO_VERIFY=1

Docker commands

  • Deploy and start all containers
    • docker-compose up --no-recreate -d
  • Lists the running containers under docker-compose
    • docker-compose ps
  • Start a container
    • docker-compose start <container>
  • Restart a container
    • docker-compose restart <container>
  • Stop a container
    • docker-compose stop <container>
  • Stop all containers
    • docker-compose stop

Troubleshooting

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