Merge pull request #9537 from usha-mandya/template-patch

fix numbering and section title
This commit is contained in:
Usha Mandya 2019-09-30 16:53:10 +01:00 committed by GitHub
commit 73162cff51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 46 additions and 46 deletions

View File

@ -43,7 +43,7 @@ complete the following steps:
3. Add the service template to the library 3. Add the service template to the library
4. Share the service template 4. Share the service template
### A service container image ### Create a service container image
A service template provides the description required by Docker Template to A service template provides the description required by Docker Template to
scaffold a project. A service template runs inside a container with two bind scaffold a project. A service template runs inside a container with two bind
@ -52,15 +52,15 @@ mounts:
1. `/run/configuration`, a JSON file which contains all settings such as 1. `/run/configuration`, a JSON file which contains all settings such as
parameters, image name, etc. For example: parameters, image name, etc. For example:
```json ```json
{ {
"parameters": { "parameters": {
"externalPort": "80", "externalPort": "80",
"artifactId": "com.company.app" "artifactId": "com.company.app"
}, },
... ...
} }
``` ```
2. `/project`, the output folder to which the container image writes the generated assets. 2. `/project`, the output folder to which the container image writes the generated assets.
@ -316,14 +316,14 @@ it, you must make Docker Template aware of these. To do this:
1. Edit `~/.docker/application-template/preferences.yaml` as follows: 1. Edit `~/.docker/application-template/preferences.yaml` as follows:
```yaml ```yaml
apiVersion: v1alpha1 apiVersion: v1alpha1
channel: master channel: master
kind: Preferences kind: Preferences
repositories: repositories:
- name: library-master - name: library-master
url: https://docker-application-template.s3.amazonaws.com/master/library.yaml url: https://docker-application-template.s3.amazonaws.com/master/library.yaml
``` ```
2. Add your local repository: 2. Add your local repository:
@ -331,16 +331,16 @@ repositories:
> This library contain template plugins that are required to build all Docker > This library contain template plugins that are required to build all Docker
> Templates. > Templates.
```yaml ```yaml
apiVersion: v1alpha1 apiVersion: v1alpha1
channel: master channel: master
kind: Preferences kind: Preferences
repositories: repositories:
- name: custom-services - name: custom-services
url: file:///path/to/my/library.yaml url: file:///path/to/my/library.yaml
- name: library-master - name: library-master
url: https://docker-application-template.s3.amazonaws.com/master/library.yaml url: https://docker-application-template.s3.amazonaws.com/master/library.yaml
``` ```
When configuring a local repository on Windows, the `url` structure is slightly When configuring a local repository on Windows, the `url` structure is slightly
different: different:
@ -444,14 +444,14 @@ you must make Docker Template aware of these. To do this:
1. Edit `~/.docker/application-template/preferences.yaml` as follows: 1. Edit `~/.docker/application-template/preferences.yaml` as follows:
```yaml ```yaml
apiVersion: v1alpha1 apiVersion: v1alpha1
channel: master channel: master
kind: Preferences kind: Preferences
repositories: repositories:
- name: library-master - name: library-master
url: https://docker-application-template.s3.amazonaws.com/master/library.yaml url: https://docker-application-template.s3.amazonaws.com/master/library.yaml
``` ```
2. Add your local repository: 2. Add your local repository:
@ -459,16 +459,16 @@ repositories:
> This library contain template plugins that are required to build all Docker > This library contain template plugins that are required to build all Docker
> Templates. > Templates.
```yaml ```yaml
apiVersion: v1alpha1 apiVersion: v1alpha1
channel: master channel: master
kind: Preferences kind: Preferences
repositories: repositories:
- name: custom-services - name: custom-services
url: file:///path/to/my/library.yaml url: file:///path/to/my/library.yaml
- name: library-master - name: library-master
url: https://docker-application-template.s3.amazonaws.com/master/library.yaml url: https://docker-application-template.s3.amazonaws.com/master/library.yaml
``` ```
When configuring a local repository on Windows, the `url` structure is slightly When configuring a local repository on Windows, the `url` structure is slightly
different: different: