Docker-compose is used to run the container alongside a MySQL database container. By default it will pull the hosted
container from docker-internal.alfresco.com
but you can change this to reference the version you have built yourself
if you like.
To run the container download the docker-compose.yml
file from this project and run docker-compose
in the directory where you downloaded it
docker-compose up
Note, you must have a valid Enteprise license installed on your host machine at $HOME/.activiti/enterprise-license/activiti.lic
. You can change this location by editing the volume mapping in docker-compose.yml
but since version 0.1.5 no license is included in the Activiti container.
When Tomcat has started up you should be able to navigate to http://localhost:9999/activiti-app and see the login screen. You can change the port that is exposed by modifying docker-compose.yml
if port 9999 is not your thing. Note that the container itself actually exposes the standard port 8080 but docker-compose
re-maps this to 9999 so that you can have Alfresco and Activiti running together.
Log in with the username admin@app.activiti.com
and password admin
.
If you want to change the default admin account details or change details of the CORS, CSRF or database configuration, the following environment variables can be overridden in docker-compose.yml
- `ACTIVITI_DATASOURCE_URL`
- `ACTIVITI_DATASOURCE_DRIVER`
- `ACTIVITI_DATASOURCE_USERNAME`
- `ACTIVITI_DATASOURCE_PASSWORD`
- `ACTIVITI_HIBERNATE_DIALECT`
- `ACTIVITI_ADMIN_EMAIL`
- `ACTIVITI_ADMIN_PASSWORD_HASH`
- `ACTIVITI_CORS_ENABLED`
- `ACTIVITI_CORS_ALLOWED_ORIGINS`
- `ACTIVITI_CORS_ALLOWED_METHODS`
- `ACTIVITI_CORS_ALLOWED_HEADERS`
- `ACTIVITI_CSRF_DISABLED`
The following instructions will build a new container with the Activiti BPM Suite installed inside Tomcat7. It is assumed that you have the activiti-bpm-suite
source cloned locally and that you have a license in place in your home directory from a previous install. If this is not the case you may need to modify the steps as required.
Run the build-war.sh
WAR file build script
cd build-war && ./build-war.sh && cd -
cp activiti-bpm-suite/activiti-app/src/main/resources/META-INF/activiti-app/activiti-app.properties docker-activiti-app.properties
mvn dependency:get -DgroupId=mysql -DartifactId=mysql-connector-java -Dversion=5.1.39 && cp ~/.m2/repository/mysql/mysql-connector-java/5.1.39/mysql-connector-java-5.1.39.jar .
docker build -t activiti-app-tomcat .
To publish the container you must first tag it using a hostname and then do the push, e.g.
docker tag activiti-app-tomcat docker-internal.alfresco.com/<username>/activiti-app-tomcat
docker push docker-internal.alfresco.com/<username>/activiti-app-tomcat