Jelajahi Sumber

Update code block formatting

Tianon Gravi 6 tahun lalu
induk
melakukan
cd9c662d32
2 mengubah file dengan 25 tambahan dan 17 penghapusan
  1. 19 13
      bonita/content.md
  2. 6 4
      convertigo/content.md

+ 19 - 13
bonita/content.md

@@ -26,10 +26,12 @@ PostgreSQL is the recommanded database.
 
 [Set max_prepared_transactions to 100](https://documentation.bonitasoft.com/bonita/7.8/database-configuration#toc5):
 
-	mkdir -p custom_postgres
-	echo '#!/bin/bash' > custom_postgres/bonita.sh
-	echo 'sed -i "s/^.*max_prepared_transactions\s*=\s*\(.*\)$/max_prepared_transactions = 100/" "$PGDATA"/postgresql.conf' >> custom_postgres/bonita.sh
-	chmod +x custom_postgres/bonita.sh
+```console
+$ mkdir -p custom_postgres
+$ echo '#!/bin/bash' > custom_postgres/bonita.sh
+$ echo 'sed -i "s/^.*max_prepared_transactions\s*=\s*\(.*\)$/max_prepared_transactions = 100/" "$PGDATA"/postgresql.conf' >> custom_postgres/bonita.sh
+$ chmod +x custom_postgres/bonita.sh
+```
 
 Mount that directory location as /docker-entrypoint-initdb.d inside the PostgreSQL container:
 
@@ -49,9 +51,11 @@ There are known issues with the management of XA transactions by MySQL engine an
 
 [Increase the packet size](https://documentation.bonitasoft.com/bonita/7.8/database-configuration#toc5) which is set by default to 1M:
 
-	mkdir -p custom_mysql
-	echo "[mysqld]" > custom_mysql/bonita.cnf
-	echo "max_allowed_packet=16M" >> custom_mysql/bonita.cnf
+```console
+$ mkdir -p custom_mysql
+$ echo "[mysqld]" > custom_mysql/bonita.cnf
+$ echo "max_allowed_packet=16M" >> custom_mysql/bonita.cnf
+```
 
 Mount that directory location as /etc/mysql/conf.d inside the MySQL container:
 
@@ -351,12 +355,14 @@ If you would like to do additional initialization, you can add a `*.sh` script u
 
 For example, you can increase the log level :
 
-	mkdir -p custom_bonita
-	echo '#!/bin/bash' > custom_bonita/bonita.sh
-	echo 'sed -i "s/^org.bonitasoft.level = WARNING$/org.bonitasoft.level = FINEST/" /opt/bonita/BonitaCommunity-7.8.1-Tomcat-8.5.34/server/conf/logging.properties' >> custom_bonita/bonita.sh
-	chmod +x custom_bonita/bonita.sh
-	
-	docker run --name bonita_custom -v "$PWD"/custom_bonita/:/opt/custom-init.d -d -p 8080:8080 %%IMAGE%%
+```console
+$ mkdir -p custom_bonita
+$ echo '#!/bin/bash' > custom_bonita/bonita.sh
+$ echo 'sed -i "s/^org.bonitasoft.level = WARNING$/org.bonitasoft.level = FINEST/" /opt/bonita/BonitaCommunity-7.8.1-Tomcat-8.5.34/server/conf/logging.properties' >> custom_bonita/bonita.sh
+$ chmod +x custom_bonita/bonita.sh
+
+$ docker run --name bonita_custom -v "$PWD"/custom_bonita/:/opt/custom-init.d -d -p 8080:8080 %%IMAGE%%
+```
 
 Note: There are several ways to check the `bonita` logs. One of them is
 

+ 6 - 4
convertigo/content.md

@@ -108,7 +108,9 @@ $ docker run -d --name C8O-MBAAS -e JAVA_OPTS="-Xmx4096m -DjvmRoute=server1" -p
 
 You can use this [stack](https://github.com/convertigo/docker/blob/master/compose/mbaas/docker-compose.yml) to run a complete Convertigo MBaaS server with FullSync repository and MySQL analytics in a few command lines.
 
-	mkdir c8oMBaaS
-	cd c8oMBaaS
-	wget https://raw.githubusercontent.com/convertigo/docker/master/compose/mbaas/docker-compose.yml
-	docker-compose up -d
+```console
+$ mkdir c8oMBaaS
+$ cd c8oMBaaS
+$ wget https://raw.githubusercontent.com/convertigo/docker/master/compose/mbaas/docker-compose.yml
+$ docker-compose up -d
+```