Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

gpii-ops/docker-flow-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

DEPRECATED: The settings that this image manages are now available through environment variables in GPII/universal.

GPII Flow Manager Dockerfile - Ansible version

Builds a GPII Flow Manager Docker container image. This image is built using the Ansible role.

Building

Build Ansible-provisioned image:

  • docker build --no-cache -t gpii/flow-manager .

Runtime Environment Variables

  • PREFERENCES_SERVER_HOST_ADDRESS: host address of the Preferences Server instance to use. (default: preferences.gpii.net)
  • NODE_ENV: specifies the configuration file to be used from https://github.com/GPII/universal/tree/master/gpii/configs when launching (default: cloudBased.production)
  • CONTAINER_TEST: whether or not to run the container in test mode, then exit (default: false)

Testing

The container can be tested as part of a GPII deployment by setting the CONTAINER_TEST environment variable to true.

This mode is typically expected to connect to a running Preferences Server with the 'Carla' test preference set. The container will exit after the test and the exit code as a result of the run command can be used for further actions. The container can (to a certain extent) self-test using the development mode - see the run examples below - but this doesn't test the real production run-time configuration

Running

A Preferences Server instance will need to be accessible to the Flow Manager container. As in the example below, this can be a self-contained Preferences Server running in the same container in development mode

Run Examples

Connecting to a separate Preferences Server in another container

docker run \
--name flowmanager \
-d \
-p 8081:8081 \
--link prefserver \
-e NODE_ENV=cloudBased.production \
-e PREFERENCES_SERVER_HOST_ADDRESS=prefserver:8082 \
gpii/flow-manager

In test mode, connecting to a separate Preferences Server in another container

docker run \
--name flowmanagertest \
-t \
--rm \
--link prefserver \
-e NODE_ENV=cloudBased.production \
-e PREFERENCES_SERVER_HOST_ADDRESS=prefserver:8082 \
-e CONTAINER_TEST=true \
gpii/flow-manager

With a self-contained Preferences Server running in the same container (development mode)

docker run \
--name flowmanager \
-d \
-p 8081:8081 \
-e NODE_ENV=cloudBased.development.all.local \
-e PREFERENCES_SERVER_HOST_ADDRESS=localhost:8081 \
gpii/flow-manager

In test mode, connecting to its own self-contained Preferences Server

docker run \
--name flowmanagertest \
-t \
--rm \
-e NODE_ENV=cloudBased.development.all.local \
-e PREFERENCES_SERVER_HOST_ADDRESS=localhost:8081 \
-e CONTAINER_TEST=true \
gpii/flow-manager

About

GPII Flow Manager Dockerfile - DEPRECATED

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages