Run update.sh

This commit is contained in:
Docker Library Bot 2019-02-08 17:13:29 +00:00
parent d12710cf3e
commit 61e3d7da71
2 changed files with 31 additions and 17 deletions

View File

@ -230,7 +230,9 @@ The `-v /my/own/datadir:/opt/bonita` part of the command mounts the `/my/own/dat
- Copy data from the filesystem - Copy data from the filesystem
cp -r bonita_7.2.3_postgres bonita_migration ```console
$ cp -r bonita_7.2.3_postgres bonita_migration
```
- Retrieve the DB container IP - Retrieve the DB container IP
@ -241,18 +243,22 @@ The `-v /my/own/datadir:/opt/bonita` part of the command mounts the `/my/own/dat
- Dump the database - Dump the database
export PGPASSWORD=mysecretpassword ```console
pg_dump -O -x -h 172.17.0.26 -U postgres bonitadb > /tmp/bonitadb.sql $ export PGPASSWORD=mysecretpassword
$ pg_dump -O -x -h 172.17.0.26 -U postgres bonitadb > /tmp/bonitadb.sql
```
Note that businessdb won't be updated with the migration tool but you may want to also backup/move it. Note that businessdb won't be updated with the migration tool but you may want to also backup/move it.
- Load the dump - Load the dump
export PGPASSWORD=mysecretpassword ```console
psql -U postgres -h 172.17.0.26 -d postgres -c "CREATE USER newbonitauser WITH PASSWORD 'newbonitapass';" $ export PGPASSWORD=mysecretpassword
psql -U postgres -h 172.17.0.26 -d postgres -c "CREATE DATABASE newbonitadb OWNER newbonitauser;" $ psql -U postgres -h 172.17.0.26 -d postgres -c "CREATE USER newbonitauser WITH PASSWORD 'newbonitapass';"
export PGPASSWORD=newbonitapass $ psql -U postgres -h 172.17.0.26 -d postgres -c "CREATE DATABASE newbonitadb OWNER newbonitauser;"
cat /tmp/bonitadb.sql | psql -U newbonitauser -h 172.17.0.26 newbonitadb $ export PGPASSWORD=newbonitapass
$ cat /tmp/bonitadb.sql | psql -U newbonitauser -h 172.17.0.26 newbonitadb
```
- Retrieve the last migration tool - Retrieve the last migration tool
@ -285,11 +291,15 @@ The `-v /my/own/datadir:/opt/bonita` part of the command mounts the `/my/own/dat
- Configure the migration tool - Configure the migration tool
cd bonita-migration-distrib-2.37.0 ```console
$ cd bonita-migration-distrib-2.37.0
```
edit the migration tool config to point towards the copy of bonita home and db edit the migration tool config to point towards the copy of bonita home and db
vim Config.properties ```console
$ vim Config.properties
```
For example : For example :
@ -303,8 +313,10 @@ The `-v /my/own/datadir:/opt/bonita` part of the command mounts the `/my/own/dat
- Launch the migration - Launch the migration
cd bin ```console
./bonita-migration-distrib $ cd bin
$ ./bonita-migration-distrib
```
- Launch the new container pointing towards the copy of DB and filesystem - Launch the new container pointing towards the copy of DB and filesystem

View File

@ -69,11 +69,13 @@ By default you can login as `admin` with password `admin`, see [authentication d
To analyze a Maven project: To analyze a Maven project:
# On Linux: ```console
mvn sonar:sonar # On Linux:
$ mvn sonar:sonar
# With boot2docker:
mvn sonar:sonar -Dsonar.host.url=http://$(boot2docker ip):9000 # With boot2docker:
$ mvn sonar:sonar -Dsonar.host.url=http://$(boot2docker ip):9000
```
To analyze other kinds of projects and for more details see [Analyzing Source Code documentation](https://redirect.sonarsource.com/doc/analyzing-source-code.html). To analyze other kinds of projects and for more details see [Analyzing Source Code documentation](https://redirect.sonarsource.com/doc/analyzing-source-code.html).