Docker composition
Follow this guide to set up Docker Compose to run on the local computer Activiti Cloud in Docker VM in.
Hardware Settings
You will need to allocate at least four CPU cores and 8gb RAM to Docker VM machine.
Software Settings
Before you begin, you must install the following packages:
- For the desktop installation Docker or the operating system is installed Docker Toolbox
- If you use the Docker desktop, install the Docker-Compose .
- Install GNU. For Linux and Mac, it is usually already installed, Windows uses for Chocolatey GNU Make install Make.
- Git Bash mounting terminal. For Linux and Maс usually pre-installed. If you use the Docker desktop on Windows, use Chocolatey Git Install to install Git Bash terminal.
Cloning Activiti Cloud instances
Open Bash command line terminal and run these commands, the https://github.com/Activiti/activiti-cloud-examples clone to your local environment:
git clone https://github.com/Activiti/activiti-cloud-examples cd activiti-cloud-examples/docker-compose
Configuration Environment
You need to edit the file to configure .env DOCKER_IP properties based on the operating system and Docker VM type.
- Docker use on Linux, Mac or Windows desktop computers local IP address
- If you use the Docker Toolbox, use the Docker -machine ip command
- Do not use localhost or 127.0.0.1
How to Run Activity Cloud
Start Modeler
make modeler
After starting Modeler, waiting for the container starts. You can check the status by running and make logs make ps command to ensure that the vessel is ready.
To access the modeler, open url in the browser: HTTP: // $ DOCKER_IP / Modeling
You will be redirected to keycloak, where you must use the credentials modeler / password
Start the application
make application
You will need to use Postman to use Activiti Rest api
Start Postman Postman collected and added to the REST V7 API.postman_collection the Activiti. JSON located https://github.com/Activiti/activiti-cloud-examples in
Then select the "management environment" in the upper right corner, then use your own ip in the "current value" tab.
Then use activiti as the default environment.
To start work, do getKeycloakToken hruser the postman key cloak collection. Then run in startProcess rb-my-app Postman collection.
Start all services
make all
Docker start using the combination of all services
docker-compose up
Stop all services
make stop
Stop the application
make application/stop
Stop Modeler
make modeler/stop
Turn off all services
make down
Docker use a combination of all services shut down
docker-compose down
Useful Commands
View and track terminal log
make logs
See only a service log
make example-runtime-bundle/logs
Quick ssh to the service pod
make example-runtime-bundle/ssh
Other available actions
make help
Common mistakes
- Before running the command, make sure that you are in the docker-compose folder.
- If something can not be cleared first biscuit or start with the model in incognito window
- If you are using NiP. IO address to ensure that local firewall or a corporate firewall does not prevent demand