Skip to content

Commit fbbd9da

Browse files
authored
Merge pull request docker-library#2437 from Bonitasoft-Community/master
update Bonita Platform and Update Tool versions
2 parents 87ddec4 + b9ac3b6 commit fbbd9da

File tree

2 files changed

+20
-39
lines changed

2 files changed

+20
-39
lines changed

bonita/content.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ From Bonita 2022.1 onwards, the Bonita docker image does not include configurati
3131
Therefore the PostgreSQL container needs to be configured to work with Bonita before starting the Bonita container. The configuration of a PostgreSQL database to work with Bonita is described in details in the [database configuration page](https://documentation.bonitasoft.com/bonita/latest/runtime/database-configuration#postgres_setup). + Alternatively, Bonita provides a preconfigured [PostgreSQL image](https://hub.docker.com/r/bonitasoft/bonita-postgres) on docker-hub. + You can run the image with the following command:
3232

3333
```bash
34-
docker run --name mydbpostgres -h <hostname> -d bonitasoft/bonita-postgres:12.6
34+
docker run --name mydbpostgres -h <hostname> -d bonitasoft/bonita-postgres:16.4
3535
```
3636

37-
This image is built from the following [GitHub repository](https://github.com/Bonitasoft-Community/bonita-database-docker/tree/main/postgres/12), which can be further adapted/customized to suit your needs.
37+
This image is built from the following [GitHub repository](https://github.com/Bonitasoft-Community/bonita-database-docker/tree/main/postgres/16), which can be further adapted/customized to suit your needs.
3838

3939
## %%STACK%%
4040

@@ -66,7 +66,7 @@ docker run --name=bonita -h <hostname> --env-file=env.txt -d -p 8080:8080 %%IMAG
6666
## Start Bonita with custom security credentials
6767

6868
```bash
69-
docker run --name=bonita -h <hostname> -e "TENANT_LOGIN=tech_user" -e "TENANT_PASSWORD=secret" -e "PLATFORM_LOGIN=pfadmin" -e "PLATFORM_PASSWORD=pfsecret" -d -p 8080:8080 %%IMAGE%%
69+
docker run --name=bonita -h <hostname> -e "BONITA_RUNTIME_ADMIN_USERNAME=tech_user" -e "BONITA_RUNTIME_ADMIN_PASSWORD=secret" -e "PLATFORM_LOGIN=pfadmin" -e "PLATFORM_PASSWORD=pfsecret" -d -p 8080:8080 %%IMAGE%%
7070
```
7171

7272
Now you can access the Bonita Runtime on localhost:8080/bonita and login using: tech_user / secret
@@ -92,11 +92,11 @@ This optional environment variable is used in conjunction with PLATFORM_PASSWORD
9292

9393
This environment variable is recommended for you to use the Bonita image. It sets the platform administrator password for Bonita. If it is not specified, the default password `platform` will be used.
9494

95-
### TENANT_LOGIN
95+
### BONITA_RUNTIME_ADMIN_USERNAME
9696

97-
This optional environment variable is used in conjunction with TENANT_PASSWORD to define the username for the tenant administrator. If it is not specified, the default username `install` will be used.
97+
This optional environment variable is used in conjunction with BONITA_RUNTIME_ADMIN_PASSWORD to define the username for the tenant administrator. If it is not specified, the default username `install` will be used.
9898

99-
### TENANT_PASSWORD
99+
### BONITA_RUNTIME_ADMIN_PASSWORD
100100

101101
This environment variable is recommended for you to use the Bonita image. It sets the tenant administrator password for Bonita. If it is not specified, the default password `install` will be used.
102102

@@ -190,7 +190,7 @@ These variables are used in conjunction to define how Bonita should access the [
190190

191191
The logger can be configured by mounting a volume on folder `/opt/bonita/conf/logs` containing the configuration files.
192192

193-
the volume must contain the 2 files [log4j2-loggers.xml](https://raw.githubusercontent.com/bonitasoft/bonita-distrib/7.14.0/tomcat-resources/tomcat-distrib-for-bonita/src/main/resources/tomcat/server/conf/log4j2-loggers.xml) and [log4j2-appenders.xml](https://raw.githubusercontent.com/bonitasoft/bonita-distrib/7.14.0/docker/files/log4j2/log4j2-appenders.xml)
193+
the volume must contain the 2 files [log4j2-loggers.xml](https://raw.githubusercontent.com/bonitasoft/bonita-distrib/10.2.0/tomcat-resources/tomcat-distrib-for-bonita/src/main/resources/tomcat/server/conf/log4j2-loggers.xml) and [log4j2-appenders.xml](https://raw.githubusercontent.com/bonitasoft/bonita-distrib/10.2.0/docker/files/log4j2/log4j2-appenders.xml)
194194

195195
Any change made to one of this 2 files is automatically hot-reloaded and taken into account immediately.
196196

@@ -212,7 +212,7 @@ $ docker run -e HTTP_API=true -e HTTP_API_PASSWORD="My-Cust0m_S3cR3T" --name bo
212212

213213
## Update from an earlier version of Bonita
214214

215-
For updating from a version before 7.10.0, please refer to the [documentation](https://documentation.bonitasoft.com/bonita/latest/version-update/migrate-from-an-earlier-version-of-bonita)
215+
For updating from a version before 7.10.0, please refer to the [documentation](https://documentation.bonitasoft.com/bonita/latest/version-update/update-with-migration-tool)
216216

217217
- Stop the container to perform a database backup
218218

@@ -246,17 +246,16 @@ For updating from a version before 7.10.0, please refer to the [documentation](h
246246
$ cat /tmp/bonitadb.sql | psql -U newbonitauser -h 172.17.0.26 newbonitadb
247247
```
248248

249-
- Retrieve the last update tool
249+
- Retrieve the last update tool archive from https://www.bonitasoft.com/downloads
250250

251251
```console
252-
wget https://github.com/bonitasoft/bonita-platform-releases/releases/download/2023.2-u0/bonita-update-tool-3.3.0.zip
253-
unzip bonita-update-tool-3.3.0.zip
252+
unzip bonita-update-tool-3.6.0.zip
254253
```
255254

256255
- Configure the update tool
257256

258257
```console
259-
$ cd bonita-update-tool-3.3.0
258+
$ cd bonita-update-tool-3.6.0
260259
```
261260

262261
edit the update tool configuration file `Config.properties` to point towards the database.
@@ -285,7 +284,7 @@ For updating from a version before 7.10.0, please refer to the [documentation](h
285284
- Launch the new container pointing towards the copy of the database.
286285

287286
```console
288-
$ docker run --name=bonita --link mydbpostgres:postgres -e "DB_NAME=newbonitadb" -e "DB_USER=newbonitauser" -e "DB_PASS=newbonitapass" -d -p 8081:8080 %%IMAGE%%:2023.2-u0
287+
$ docker run --name=bonita --link mydbpostgres:postgres -e "DB_NAME=newbonitadb" -e "DB_USER=newbonitauser" -e "DB_PASS=newbonitapass" -d -p 8081:8080 %%IMAGE%%:2024.3-u0
289288
```
290289

291290
For more details regarding Bonita update and for version before 7.10.0, see the [documentation](https://documentation.bonitasoft.com/bonita/latest/version-update/migrate-from-an-earlier-version-of-bonita).

bonita/stack.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
version: '3'
2-
31
services:
42
db:
5-
image: bonitasoft/bonita-postgres:12.6
3+
image: bonitasoft/bonita-postgres:16.4
4+
ports:
5+
- 5432:5432
66
environment:
77
POSTGRES_PASSWORD: example
88
restart: always
9-
command:
10-
- -c
11-
- max_prepared_transactions=100
129
bonita:
13-
image: bonita:7.14.0
10+
image: bonita:2024.3
1411
hostname: custom-hostname.example.com
1512
ports:
1613
- 8080:8080
@@ -24,26 +21,11 @@ services:
2421
- BIZ_DB_NAME=business_data
2522
- BIZ_DB_USER=business_data
2623
- BIZ_DB_PASS=bpm
27-
- TENANT_LOGIN=tech_user
28-
- TENANT_PASSWORD=secret
24+
- BONITA_RUNTIME_ADMIN_USERNAME=tech_user
25+
- BONITA_RUNTIME_ADMIN_PASSWORD=secret
2926
- PLATFORM_LOGIN=pfadmin
3027
- PLATFORM_PASSWORD=pfsecret
3128
restart: on-failure:2
3229
depends_on:
33-
- db
34-
entrypoint:
35-
- bash
36-
- -c
37-
- |
38-
set -e
39-
echo 'Waiting for PostgreSQL to be available'
40-
maxTries=10
41-
while [ "$$maxTries" -gt 0 ] && [ $$(echo 'QUIT' | nc -w 1 "$$DB_HOST" 5432; echo "$$?") -gt 0 ]; do
42-
sleep 1
43-
let maxTries--
44-
done
45-
if [ "$$maxTries" -le 0 ]; then
46-
echo >&2 'error: unable to contact Postgres after 10 tries'
47-
exit 1
48-
fi
49-
exec /opt/files/startup.sh /opt/bonita/server/bin/catalina.sh run
30+
db:
31+
condition: service_healthy

0 commit comments

Comments
 (0)