From 61e3d7da714b1e72de3eb210a6e5930a72bd41ea Mon Sep 17 00:00:00 2001 From: Docker Library Bot Date: Fri, 8 Feb 2019 17:13:29 +0000 Subject: [PATCH] Run update.sh --- bonita/README.md | 36 ++++++++++++++++++++++++------------ sonarqube/README.md | 12 +++++++----- 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/bonita/README.md b/bonita/README.md index 1a51f122c..3d45e2812 100644 --- a/bonita/README.md +++ b/bonita/README.md @@ -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 - cp -r bonita_7.2.3_postgres bonita_migration + ```console + $ cp -r bonita_7.2.3_postgres bonita_migration + ``` - 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 - export PGPASSWORD=mysecretpassword - pg_dump -O -x -h 172.17.0.26 -U postgres bonitadb > /tmp/bonitadb.sql + ```console + $ 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. - Load the dump - export PGPASSWORD=mysecretpassword - psql -U postgres -h 172.17.0.26 -d postgres -c "CREATE USER newbonitauser WITH PASSWORD 'newbonitapass';" - psql -U postgres -h 172.17.0.26 -d postgres -c "CREATE DATABASE newbonitadb OWNER newbonitauser;" - export PGPASSWORD=newbonitapass - cat /tmp/bonitadb.sql | psql -U newbonitauser -h 172.17.0.26 newbonitadb + ```console + $ export PGPASSWORD=mysecretpassword + $ psql -U postgres -h 172.17.0.26 -d postgres -c "CREATE USER newbonitauser WITH PASSWORD 'newbonitapass';" + $ psql -U postgres -h 172.17.0.26 -d postgres -c "CREATE DATABASE newbonitadb OWNER newbonitauser;" + $ export PGPASSWORD=newbonitapass + $ cat /tmp/bonitadb.sql | psql -U newbonitauser -h 172.17.0.26 newbonitadb + ``` - 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 - 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 - vim Config.properties + ```console + $ vim Config.properties + ``` 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 - cd bin - ./bonita-migration-distrib + ```console + $ cd bin + $ ./bonita-migration-distrib + ``` - Launch the new container pointing towards the copy of DB and filesystem diff --git a/sonarqube/README.md b/sonarqube/README.md index 8f3f6a255..4b46eb8fb 100644 --- a/sonarqube/README.md +++ b/sonarqube/README.md @@ -69,11 +69,13 @@ By default you can login as `admin` with password `admin`, see [authentication d To analyze a Maven project: - # On Linux: - mvn sonar:sonar - - # With boot2docker: - mvn sonar:sonar -Dsonar.host.url=http://$(boot2docker ip):9000 +```console +# On Linux: +$ mvn sonar:sonar + +# 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).