# \[Docker\] - Disable Libibase For Flowable-UI

**URL:** <https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621>\
**Category:** Flowable Engine\
**Created:** [March 18, 2021, 11:05am UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621 "2021-03-18T11:05:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![tannth](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tannth](https://forum.flowable.org/u/tannth)\
**Post date:** [March 18, 2021, 11:05am UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/1 "2021-03-18T11:05:37Z")

</div>

Hi everyone,

Currently, I am trying to run Flowanle-UI as a docker image, I need to disable the liquibase function from that image then have run that image with JAVA\_OPTS="-Dflowable.database-schema-update=ignore -Dspring.liquibase.enabled=false", however it’s not working. I have access to container and print java process and see that my system properties have injected already

Please give me some advice for that case

[https://hub.docker.com/r/flowable/flowable-ui](https://hub.docker.com/r/flowable/flowable-ui)

---

<div class="post-metadata">

**Author:** ![yvo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/yvo/32/2231_2.png) [@yvo](https://forum.flowable.org/u/yvo)\
**Post date:** [March 18, 2021, 11:17am UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/2 "2021-03-18T11:17:20Z")

</div>

Can you share your use case? Why would you want to do this?

To answer your question. When I run this;

```auto
docker run -p8080:8080 flowable/flowable-ui \
--spring.liquibase.enabled=false \
--flowable.database-schema-update=ignore

```

The spring properties can be passed as command line arguments (in the latest Docker images).  
Or pass them as environment variables; with the -e param or as it has been done in the Docker compose examples in the GitHub repo.

The tables are not created / modified (with the result that Flowable cannot find any tables)

Regards,

Yvo

---

<div class="post-metadata">

**Author:** ![tannth](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tannth](https://forum.flowable.org/u/tannth)\
**Post date:** [March 18, 2021, 2:27pm UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/3 "2021-03-18T14:27:28Z")

</div>

We will control that script on another service.

This is java process after we run image. It still not working. Anything else are we missing?

 ![Screenshot_20210318-212033~2](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/a/ad27d14b2d3772e5da8fcd8a9affefaa8a482c98.jpeg)

---

<div class="post-metadata">

**Author:** ![yvo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/yvo/32/2231_2.png) [@yvo](https://forum.flowable.org/u/yvo)\
**Post date:** [March 18, 2021, 2:45pm UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/4 "2021-03-18T14:45:16Z")

</div>

how do you know that liquibase actions are still executed?

and again; what is it that you’re trying to accomplish?

---

<div class="post-metadata">

**Author:** ![tannth](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tannth](https://forum.flowable.org/u/tannth)\
**Post date:** [March 18, 2021, 3:17pm UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/5 "2021-03-18T15:17:25Z")

</div>

In my case, We have a custom engine which run with spring-boot. We want to this custom engine will take responsibility perform all scripts data bootstrapping then we need disable liquibase on flowable-ui.

**"how do you know that liquibase actions are still executed?"**  
=\> I have viewed the logs

---

<div class="post-metadata">

**Author:** ![yvo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/yvo/32/2231_2.png) [@yvo](https://forum.flowable.org/u/yvo)\
**Post date:** [March 18, 2021, 3:17pm UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/6 "2021-03-18T15:17:35Z")

</div>

When I run this;

```auto
docker run --rm -p8080:8080 -e JAVA_OPTS="-Dspring.liquibase.enabled=false -Dflowable.database-schema-update=ignore" flowable/flowable-ui

```

the startup failed because it cannot find tables; hence disabling liquibase works passing JAVA\_OPTS.

Yvo

---

<div class="post-metadata">

**Author:** ![yvo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/yvo/32/2231_2.png) [@yvo](https://forum.flowable.org/u/yvo)\
**Post date:** [March 18, 2021, 3:33pm UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/7 "2021-03-18T15:33:00Z")

</div>

When I start the container and attach an existing database I see that liquibase executes some read checks to verify that the tables are there and up to date.  
Is that what you’re referring to?

Or are you saying that it tries to execute f.e. alter statements?

Yvo

---

<div class="post-metadata">

**Author:** ![tannth](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tannth](https://forum.flowable.org/u/tannth)\
**Post date:** [March 18, 2021, 3:47pm UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/8 "2021-03-18T15:47:51Z")

</div>

Right, I have existing tables in database. Theoretically I think when we disable liquibase then it will not perform script create tables, however the log showed **"cannot create act\_adm\_server\_config already exists"**

---

<div class="post-metadata">

**Author:** ![yvo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/yvo/32/2231_2.png) [@yvo](https://forum.flowable.org/u/yvo)\
**Post date:** [March 18, 2021, 4:05pm UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/9 "2021-03-18T16:05:58Z")

</div>

That is strange. It should only execute read checks.  
Is the db version exactly the same? (is this the reason why it tries to create the table?)  
Can you share more / complete logs?

Yvo

---

<div class="post-metadata">

**Author:** ![tannth](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tannth](https://forum.flowable.org/u/tannth)\
**Post date:** [March 19, 2021, 5:01am UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/10 "2021-03-19T05:01:19Z")

</div>

This is the logs. I put the value is **ignore** then I think it will not check the version also .

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/a/ac5c0dda0b9e67988ebc455c725086ee78c0a579.png)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/7/777d8aaa82f561355e017c75c3c1ad60c1950482.png)

---

<div class="post-metadata">

**Author:** ![yvo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/yvo/32/2231_2.png) [@yvo](https://forum.flowable.org/u/yvo)\
**Post date:** [March 19, 2021, 8:25am UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/11 "2021-03-19T08:25:15Z")

</div>

Can you provide the info from the actuators; to see what environment is being created / active.

F.e. `http://localhost:8080/flowable-ui/actuator/env`

I’m interested in the values of `flowable.database-schema-update` in `propertySources` and `JAVA_OPTS` in `systemEnvironment`.

It seems there is something strange going on passing the properties as JVM arguments in your case.  
I verified it works correctly when it is passed as Spring Boot program argument (in my example --property=value). Could you do it like that?

Yvo

---

<div class="post-metadata">

**Author:** ![tannth](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tannth](https://forum.flowable.org/u/tannth)\
**Post date:** [March 22, 2021, 3:46am UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/12 "2021-03-22T03:46:35Z")

</div>

> [@yvo](#):
>
> /actuator/env

Sorry for the delay in getting back to you.

Here info which I got from `http://localhost:8080/flowable-ui/actuator/env`. Could you help me check?

 ![flowable-actuator-env](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/c/cb9354cead7e564c4281dccd825f52fd9488bb19.png)

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [March 29, 2021, 8:07am UTC](https://forum.flowable.org/t/docker-disable-libibase-for-flowable-ui/7621/13 "2021-03-29T08:07:13Z")

</div>

Hey @tannth,

It seems that the error you are getting is for the Flowable Admin tables.

> [@tannth](#):
>
> Theoretically I think when we disable liquibase then it will not perform script create tables, however the log showed **“cannot create act\_adm\_server\_config already exists”**

The table `act_adm_server_config` is a table needed for Flowable Admin. Currently the tables needed for the UI Applications (Modeler and Admin) are not using the property that @yvo has been talking about.

Currently, there is property that you can use to disable the creation of the tables needed for the Modeler and Admin. I would suggest that you only create the tables for the Flowable Engines and not the other 2 applications.

You can also provide a PR for the UI Applications in order to support this. Changes for that are needed in the [`AdminDatabaseConfiguration`](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui/flowable-ui-admin-conf/src/main/java/org/flowable/ui/admin/conf/AdminDatabaseConfiguration.java) and the [`ModelerDatabaseConfiguration`](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui/flowable-ui-modeler-conf/src/main/java/org/flowable/ui/modeler/conf/ModelerDatabaseConfiguration.java). The properties can be added to [`FlowableAdminAppProperties`](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui/flowable-ui-admin-logic/src/main/java/org/flowable/ui/admin/properties/FlowableAdminAppProperties.java) and [`FlowableModelerAppPropertie`](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui/flowable-ui-modeler-logic/src/main/java/org/flowable/ui/modeler/properties/FlowableModelerAppProperties.java) respectively.

Cheers,  
Filip
