Skip to content

Build your workflow

Arnaud S'Jongers edited this page Jan 10, 2018 · 7 revisions

The workflow builder allows you to specify in which sequence your services should start.

  1. Browse to the workflow builder.
  2. Create a new workflow and link it to an existing stack's docker-compose file.
  3. Create your steps and manage the order in which they should be completed.

You can then either use the init-daemon integrated in the BDI Platform or add an instance of the init-daemon (and its required dependencies) in your own stack.

  • Use the init-daemon from the BDI Platform
  1. Edit your docker-compose file and add the necessary properties:
services:
  my-service:
    environment:
      INIT_DAEMON_STEP: step_1
    networks: 
      - default
      - initdaemon
networks:
  initdaemon:
    external:
      name: bdiplatform_initdaemon

Now that the workflow and steps are created and your service has joined the init-daemon network, the init-daemon is ready to manage your workflow.

  • Add an init-daemon to your stack
  1. Edit your docker-compose file and add the init-daemon, its requirements and the necessary properties:
services:
  my-service:
    environment:
      INIT_DAEMON_STEP: step_1
  initdaemon:
    image: bde2020/mu-init-daemon-service
    links:
      - database:database
  database:
    image: tenforce/virtuoso:1.3.0-virtuoso7.2.2
    ports:
      - "8890:8890"

**Please make sure you do not set your container name to "initdaemon" as it will collide with the one provided with the BDI Platform. **


Once these configurations are done, your services can reach the initdaemon you decided to use. You could for exemple ask if our service is ready to be started as follows: curl http://initdaemon/canExecute?step=step_1


Implementing Pilot on BDI Platform

  1. Install the BDI Platform
  2. Prepare your stack
  3. Build your workflow
  4. Start a new pipeline
Clone this wiki locally