Explorar o código

Fix a couple code blocks

Tianon Gravi %!s(int64=7) %!d(string=hai) anos
pai
achega
201e8e2bbf
Modificáronse 3 ficheiros con 34 adicións e 20 borrados
  1. 3 1
      crate/content.md
  2. 28 18
      sonarqube/content.md
  3. 3 1
      tomee/content.md

+ 3 - 1
crate/content.md

@@ -19,7 +19,9 @@ The smallest CrateDB clusters can easily ingest tens of thousands of records per
 
 Spin up this Docker image like so:
 
-	$ docker run -p 4200:4200 %%IMAGE%%
+```console
+$ docker run -p 4200:4200 %%IMAGE%%
+```
 
 Once you're up and running, head on over to [the introductory docs](https://crate.io/docs/stable/hello.html).
 

+ 28 - 18
sonarqube/content.md

@@ -12,7 +12,9 @@ This Docker image contains the Community Edition of SonarQube.
 
 The server is started this way:
 
-	docker run -d --name sonarqube -p 9000:9000 %%IMAGE%%
+```console
+$ docker run -d --name sonarqube -p 9000:9000 %%IMAGE%%
+```
 
 By default you can login as `admin` with password `admin`, see [authentication documentation](https://docs.sonarqube.org/latest/instance-administration/security/).
 
@@ -34,12 +36,14 @@ By default, the image will use an embedded H2 database that is not suited for pr
 
 The production database is configured with the following SonarQube properties used as environment variables: `sonar.jdbc.username`, `sonar.jdbc.password` and `sonar.jdbc.url`.
 
-	docker run -d --name sonarqube \
-	    -p 9000:9000 \
-	    -e sonar.jdbc.username=sonar \
-	    -e sonar.jdbc.password=sonar \
-	    -e sonar.jdbc.url=jdbc:postgresql://localhost/sonar \
-	    sonarqube
+```console
+$ docker run -d --name sonarqube \
+    -p 9000:9000 \
+    -e sonar.jdbc.username=sonar \
+    -e sonar.jdbc.password=sonar \
+    -e sonar.jdbc.url=jdbc:postgresql://localhost/sonar \
+    sonarqube
+```
 
 Use of the environment variables `SONARQUBE_JDBC_USERNAME`, `SONARQUBE_JDBC_PASSWORD` and `SONARQUBE_JDBC_URL` is deprecated, and will stop working in future releases.
 
@@ -60,25 +64,31 @@ The images contain the SonarQube installation at `/opt/sonarqube`. You can use b
 
 You could also use bind-mounted configurations specified on the command line, for example:
 
-	docker run -d --name sonarqube \
-	    -p 9000:9000 \
-	    -v /path/to/conf:/opt/sonarqube/conf \
-	    -v /path/to/data:/opt/sonarqube/data \
-	    -v /path/to/logs:/opt/sonarqube/logs \
-	    -v /path/to/extensions:/opt/sonarqube/extensions \
-	    sonarqube
+```console
+$ docker run -d --name sonarqube \
+    -p 9000:9000 \
+    -v /path/to/conf:/opt/sonarqube/conf \
+    -v /path/to/data:/opt/sonarqube/data \
+    -v /path/to/logs:/opt/sonarqube/logs \
+    -v /path/to/extensions:/opt/sonarqube/extensions \
+    sonarqube
+```
 
 ### Option 4: Customized image
 
 In some environments, it may make more sense to prepare a custom image containing your configuration. A `Dockerfile` to achieve this may be as simple as:
 
-	FROM sonarqube:7.4-community
-	COPY sonar.properties /opt/sonarqube/conf/
+```dockerfile
+FROM sonarqube:7.4-community
+COPY sonar.properties /opt/sonarqube/conf/
+```
 
 You could then build and try the image with something like:
 
-	docker build --tag=sonarqube-custom .
-	docker run -ti sonarqube-custom
+```console
+$ docker build --tag=sonarqube-custom .
+$ docker run -ti sonarqube-custom
+```
 
 ## Administration
 

+ 3 - 1
tomee/content.md

@@ -58,4 +58,6 @@ The configuration files are available in `/usr/local/tomee/conf/`. By default, n
 
 You can also use this image as base image for deploying your war application. To do it you need to create a Dockerfile based on Tomee Docker image and add the war file in `webapps` directory:
 
-	COPY <locationofapplication>/<warfile> /usr/local/tomee/webapps/<warfile>
+```dockerfile
+COPY <locationofapplication>/<warfile> /usr/local/tomee/webapps/<warfile>
+```