DEPRECATED: The settings that this image manages are now available through environment variables in GPII/universal.
Builds a GPII Flow Manager Docker container image. This image is built using the Ansible role.
Build Ansible-provisioned image:
docker build --no-cache -t gpii/flow-manager .
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
)
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
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
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
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
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
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