-
Notifications
You must be signed in to change notification settings - Fork 13
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.
- Browse to the workflow builder.
- Create a new workflow and link it to an existing stack's docker-compose file.
- 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
- 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
- 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