$ docker pull mysql
Using default tag: latest
latest: Pulling from library/mysql
6552179c3509: Pull complete
d69aa66e4482: Pull complete
3b19465b002b: Pull complete
7b0d0cfe99a1: Pull complete
9ccd5a5c8987: Pull complete
2dab00d7d232: Pull complete
64d3afdccd4a: Pull complete
82148d50b16c: Pull complete
8bb7d73a7d0c: Pull complete
74778cd68a75: Pull complete
d7e5f9309140: Pull complete
f2e376ecd59f: Pull complete
Digest: sha256:92d27b8222bbcf53bc42c70ca7cd1010d6c0527efc61f14980ce77c50932bef4
Status: Downloaded newer image for mysql:latest
docker.io/library/mysql:latest
$ docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:latest
52cbb34d7161301c69084d789415d9b9551c9928b0bdaac5e0463d4898ddc8b9
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
52cbb34d7161 mysql:latest "docker-entrypoint.s…" 4 seconds ago Up 3 seconds 0.0.0.0:3306->3306/tcp, 33060/tcp mysql
$ docker exec -it 52cbb34d7161 /bin/bash
root@52cbb34d7161:/# pwd
/
root@52cbb34d7161:/# ls
bin boot dev docker-entrypoint-initdb.d entrypoint.sh etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
root@52cbb34d7161:/# mysql -p123456
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 32
Server version: 8.0.28 MySQL Community Server - GPL
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.00 sec)
mysql> create database flowable_demo;
Query OK, 1 row affected (0.03 sec)
brew install spring-boot
$ spring init --dependencies=web,mysql springboot-flowable
Using service at https://start.spring.io
application.yml
文件spring:
datasource:
url: jdbc:mysql://localhost:3306/flowable_demo?useUnicode=true&characterEncoding=utf8
username: root
password: 123456
driverClassName: com.mysql.cj.jdbc.Driver
flowable:
async-executor-active: true
pom坐标引入依赖jar包
org.flowable
flowable-spring-boot-starter
6.7.2
启动项目 从日志中就可以看到创建了响应的表和索引
2022-02-10 16:59:10.047 INFO 39580 --- [ main] liquibase.changelog : Foreign key constraint added to ACT_APP_DEPLOYMENT_RESOURCE (DEPLOYMENT_ID_)
2022-02-10 16:59:10.099 INFO 39580 --- [ main] liquibase.changelog : Index ACT_IDX_APP_RSRC_DPL created
2022-02-10 16:59:10.152 INFO 39580 --- [ main] liquibase.changelog : Table ACT_APP_APPDEF created
2022-02-10 16:59:10.260 INFO 39580 --- [ main] liquibase.changelog : Foreign key constraint added to ACT_APP_APPDEF (DEPLOYMENT_ID_)
2022-02-10 16:59:10.307 INFO 39580 --- [ main] liquibase.changelog : Index ACT_IDX_APP_DEF_DPLY created
2022-02-10 16:59:10.310 INFO 39580 --- [ main] liquibase.changelog : ChangeSet org/flowable/app/db/liquibase/flowable-app-db-changelog.xml::1::flowable ran successfully in 491ms
2022-02-10 16:59:10.433 INFO 39580 --- [ main] liquibase.changelog : ACT_APP_DEPLOYMENT.DEPLOY_TIME_ datatype was changed to datetime(3)
2022-02-10 16:59:10.437 INFO 39580 --- [ main] liquibase.changelog : ChangeSet org/flowable/app/db/liquibase/flowable-app-db-changelog.xml::2::flowable ran successfully in 105ms
2022-02-10 16:59:10.496 INFO 39580 --- [ main] liquibase.changelog : Index ACT_IDX_APP_DEF_UNIQ created
2022-02-10 16:59:10.498 INFO 39580 --- [ main] liquibase.changelog : ChangeSet org/flowable/app/db/liquibase/flowable-app-db-changelog.xml::3::flowable ran successfully in 43ms
2022-02-10 16:59:10.526 INFO 39580 --- [ main] liquibase.lockservice : Successfully released change log lock
2022-02-10 16:59:10.532 INFO 39580 --- [ main] o.f.app.engine.impl.AppEngineImpl : AppEngine default created
2022-02-10 16:59:10.747 INFO 39580 --- [ main] o.f.j.s.i.a.AbstractAsyncExecutor : Starting up the async job executor [org.flowable.spring.job.service.SpringAsyncExecutor] for engine cmmn
2022-02-10 16:59:10.768 INFO 39580 --- [ Thread-3] o.f.j.s.i.a.ResetExpiredJobsRunnable : starting to reset expired jobs for engine cmmn
2022-02-10 16:59:10.769 INFO 39580 --- [ Thread-1] o.f.j.s.i.a.AcquireAsyncJobsDueRunnable : starting to acquire async jobs due for engine cmmn
2022-02-10 16:59:10.769 INFO 39580 --- [ main] o.f.j.s.i.a.AbstractAsyncExecutor : Starting up the async job executor [org.flowable.spring.job.service.SpringAsyncExecutor] for engine bpmn
2022-02-10 16:59:10.769 INFO 39580 --- [ Thread-2] o.f.j.s.i.a.AcquireTimerJobsRunnable : starting to acquire async jobs due for engine cmmn
2022-02-10 16:59:10.792 INFO 39580 --- [ Thread-4] o.f.j.s.i.a.AcquireAsyncJobsDueRunnable : starting to acquire async jobs due for engine bpmn
2022-02-10 16:59:10.792 INFO 39580 --- [ Thread-5] o.f.j.s.i.a.AcquireTimerJobsRunnable : starting to acquire async jobs due for engine bpmn
2022-02-10 16:59:10.793 INFO 39580 --- [ Thread-6] o.f.j.s.i.a.ResetExpiredJobsRunnable : starting to reset expired jobs for engine bpmn
2022-02-10 16:59:10.832 INFO 39580 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| flowable_demo |
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
5 rows in set (0.00 sec)
mysql> use flowable_demo;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+--------------------------------+
| Tables_in_flowable_demo |
+--------------------------------+
| ACT_APP_APPDEF |
| ACT_APP_DATABASECHANGELOG |
| ACT_APP_DATABASECHANGELOGLOCK |
| ACT_APP_DEPLOYMENT |
| ACT_APP_DEPLOYMENT_RESOURCE |
| ACT_CMMN_CASEDEF |
| ACT_CMMN_DATABASECHANGELOG |
| ACT_CMMN_DATABASECHANGELOGLOCK |
| ACT_CMMN_DEPLOYMENT |
| ACT_CMMN_DEPLOYMENT_RESOURCE |
| ACT_CMMN_HI_CASE_INST |
| ACT_CMMN_HI_MIL_INST |
| ACT_CMMN_HI_PLAN_ITEM_INST |
| ACT_CMMN_RU_CASE_INST |
| ACT_CMMN_RU_MIL_INST |
| ACT_CMMN_RU_PLAN_ITEM_INST |
| ACT_CMMN_RU_SENTRY_PART_INST |
| ACT_CO_CONTENT_ITEM |
| ACT_CO_DATABASECHANGELOG |
| ACT_CO_DATABASECHANGELOGLOCK |
| ACT_DMN_DATABASECHANGELOG |
| ACT_DMN_DATABASECHANGELOGLOCK |
| ACT_DMN_DECISION |
| ACT_DMN_DEPLOYMENT |
| ACT_DMN_DEPLOYMENT_RESOURCE |
| ACT_DMN_HI_DECISION_EXECUTION |
| ACT_EVT_LOG |
| ACT_FO_DATABASECHANGELOG |
| ACT_FO_DATABASECHANGELOGLOCK |
| ACT_FO_FORM_DEFINITION |
| ACT_FO_FORM_DEPLOYMENT |
| ACT_FO_FORM_INSTANCE |
| ACT_FO_FORM_RESOURCE |
| ACT_GE_BYTEARRAY |
| ACT_GE_PROPERTY |
| ACT_HI_ACTINST |
| ACT_HI_ATTACHMENT |
| ACT_HI_COMMENT |
| ACT_HI_DETAIL |
| ACT_HI_ENTITYLINK |
| ACT_HI_IDENTITYLINK |
| ACT_HI_PROCINST |
| ACT_HI_TASKINST |
| ACT_HI_TSK_LOG |
| ACT_HI_VARINST |
| ACT_ID_BYTEARRAY |
| ACT_ID_GROUP |
| ACT_ID_INFO |
| ACT_ID_MEMBERSHIP |
| ACT_ID_PRIV |
| ACT_ID_PRIV_MAPPING |
| ACT_ID_PROPERTY |
| ACT_ID_TOKEN |
| ACT_ID_USER |
| ACT_PROCDEF_INFO |
| ACT_RE_DEPLOYMENT |
| ACT_RE_MODEL |
| ACT_RE_PROCDEF |
| ACT_RU_ACTINST |
| ACT_RU_DEADLETTER_JOB |
| ACT_RU_ENTITYLINK |
| ACT_RU_EVENT_SUBSCR |
| ACT_RU_EXECUTION |
| ACT_RU_EXTERNAL_JOB |
| ACT_RU_HISTORY_JOB |
| ACT_RU_IDENTITYLINK |
| ACT_RU_JOB |
| ACT_RU_SUSPENDED_JOB |
| ACT_RU_TASK |
| ACT_RU_TIMER_JOB |
| ACT_RU_VARIABLE |
| FLW_CHANNEL_DEFINITION |
| FLW_EVENT_DEFINITION |
| FLW_EVENT_DEPLOYMENT |
| FLW_EVENT_RESOURCE |
| FLW_EV_DATABASECHANGELOG |
| FLW_EV_DATABASECHANGELOGLOCK |
| FLW_RU_BATCH |
| FLW_RU_BATCH_PART |
+--------------------------------+
79 rows in set (0.00 sec)
mysql>
$ docker search flowable
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
flowable/all-in-one Image containing all Flowable UI apps runnin… 34
flowable/flowable-modeler Spring Boot 2 app for editing (and deploying… 19
flowable/flowable-rest Spring Boot 2 app exposing all the Flowable … 16
flowable/flowable-ui Flowable UI apps 13
flowable/flowable-admin Spring Boot 2 app for administering your dep… 11
flowable/flowable-idm Flowable’s Single Sign On and user managemen… 9
flowable/flowable-task Spring Boot 2 app for executing your Flowabl… 8
flowable/java8_server Base image containing Oracle Java 8 based on… 7
kodality/flowable https://www.flowable.org apps in one tomcat 1
amarti96/flowable Image for integrating all the flowable-compo… 1
oursky/flowable-extend-base 0
flowable/flowable-jre base image used by the Flowable OSS docker i… 0
gwidon/flowable flowable-all-in-one with new tomcat 0
adito/flowable-service Important: This flowable service implementat… 0
adito/flowable Important: This flowable service implementat… 0
qubedprince/flowable-process-configurator-service-image 0
gijs159/flowable 0
nikiforovall/flowable-ui 0
impratham/flowable-ui Flowable Ui Openshift compatible image. 0
pietrocannalire/flowable Repository for Flowable (all-in-one version)… 0
jafarcs02/flowable-app 0
904648702/flowable-ui-admin 0
luxel/flowable-modeler Flowable modeler app with MySQL connector. 0
juakali/flowable 0
luxel/flowable-task Flowable task app with MySQL connector 0
$ docker pull flowable/all-in-one
Using default tag: latest
latest: Pulling from flowable/all-in-one
c9b1b535fdd9: Pull complete
206ae84fbda3: Pull complete
477ee303a792: Pull complete
37c1f5f479ce: Pull complete
7c4289b1c7ae: Pull complete
440a906654d2: Pull complete
53874850fc6f: Pull complete
6044145dff7c: Pull complete
9b5b34d44752: Pull complete
4e394253a927: Pull complete
610911d6b60e: Pull complete
008be67d46a5: Pull complete
fce4a55950f0: Pull complete
bfbedcc7029a: Pull complete
d716cb79f464: Pull complete
Digest: sha256:363a8e12804be823bb8e9f4094dd37b37f0b2a8a0b405789676c694ef592610c
Status: Downloaded newer image for flowable/all-in-one:latest
$ docker run -d --name flowable -p 8080:8080 --privileged=true -it flowable/all-in-one
http://localhost:8080/flowable-modeler
http://localhost:8080/flowable-admin
http://localhost:8080/flowable-idm
http://localhost:8080/flowable-task
admin/test
http://localhost:8080/flowable-modeler/#/processes
http://localhost:8080/flowable-task/#/
http://localhost:8080/flowable-admin/#/engine
http://localhost:8080/flowable-idm/#/user-mgmt