Giter Club home page Giter Club logo

docker-flow-manager's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.