Skip to content

Commit

Permalink
doc: update hcl for postgres and atlas.hcl (#3165)
Browse files Browse the repository at this point in the history
  • Loading branch information
a8m authored Sep 29, 2024
1 parent 0d30283 commit 88fd18f
Show file tree
Hide file tree
Showing 2 changed files with 377 additions and 0 deletions.
365 changes: 365 additions & 0 deletions doc/md/hcldoc/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,79 @@ diff {



### Blocks {#docker.clickhouse-blocks}




#### `docker.build` {#docker.build}
The `build` block defines the build configuration for the Docker image.
The given image is built using the provided Dockerfile and context.

~~~hcl
docker "postgres" "pg-vn" {
image = "postgres:15-vn"
build {
context = "."
dockerfile = "locale.Dockerfile"
args = {
LOCALE = "vi-VN"
}
}
}
~~~



##### `docker.build` attributes {#docker.build-attributes}



<table class="attributes-table">
<tr>
<th>Name</th>
<th>Required</th>
<th>Value</th>
</tr>
<tr>
<td id="docker.build.args"><a href="#docker.build.args"><code>args</code></a></td>
<td><code>false</code></td>
<td><code>map</code></td>
</tr>
<tr>
<td id="docker.build.context"><a href="#docker.build.context"><code>context</code></a></td>
<td><code>true</code></td>
<td><code>string</code></td>
</tr>
<tr>
<td id="docker.build.dockerfile"><a href="#docker.build.dockerfile"><code>dockerfile</code></a></td>
<td><code>false</code></td>
<td><code>string</code></td>
</tr>
<tr>
<td id="docker.build.target"><a href="#docker.build.target"><code>target</code></a></td>
<td><code>false</code></td>
<td><code>string</code></td>
</tr>
</table>




##### `docker.build` constraints {#docker.build-constraints}



| Constraint | Value
|-----------------------------|------------------------------------
| Required | `false`
| Require Name | `false`
| Repeatable | `false`
| Allow unknown blocks | `false`
| Allow unknown attributes | `false`




### Constraints {#docker.clickhouse-constraints}

Expand Down Expand Up @@ -1066,6 +1139,79 @@ diff {



### Blocks {#docker.mariadb-blocks}




#### `docker.build` {#docker.build}
The `build` block defines the build configuration for the Docker image.
The given image is built using the provided Dockerfile and context.

~~~hcl
docker "postgres" "pg-vn" {
image = "postgres:15-vn"
build {
context = "."
dockerfile = "locale.Dockerfile"
args = {
LOCALE = "vi-VN"
}
}
}
~~~



##### `docker.build` attributes {#docker.build-attributes}



<table class="attributes-table">
<tr>
<th>Name</th>
<th>Required</th>
<th>Value</th>
</tr>
<tr>
<td id="docker.build.args"><a href="#docker.build.args"><code>args</code></a></td>
<td><code>false</code></td>
<td><code>map</code></td>
</tr>
<tr>
<td id="docker.build.context"><a href="#docker.build.context"><code>context</code></a></td>
<td><code>true</code></td>
<td><code>string</code></td>
</tr>
<tr>
<td id="docker.build.dockerfile"><a href="#docker.build.dockerfile"><code>dockerfile</code></a></td>
<td><code>false</code></td>
<td><code>string</code></td>
</tr>
<tr>
<td id="docker.build.target"><a href="#docker.build.target"><code>target</code></a></td>
<td><code>false</code></td>
<td><code>string</code></td>
</tr>
</table>




##### `docker.build` constraints {#docker.build-constraints}



| Constraint | Value
|-----------------------------|------------------------------------
| Required | `false`
| Require Name | `false`
| Repeatable | `false`
| Allow unknown blocks | `false`
| Allow unknown attributes | `false`




### Constraints {#docker.mariadb-constraints}

Expand Down Expand Up @@ -1114,6 +1260,79 @@ diff {



### Blocks {#docker.mysql-blocks}




#### `docker.build` {#docker.build}
The `build` block defines the build configuration for the Docker image.
The given image is built using the provided Dockerfile and context.

~~~hcl
docker "postgres" "pg-vn" {
image = "postgres:15-vn"
build {
context = "."
dockerfile = "locale.Dockerfile"
args = {
LOCALE = "vi-VN"
}
}
}
~~~



##### `docker.build` attributes {#docker.build-attributes}



<table class="attributes-table">
<tr>
<th>Name</th>
<th>Required</th>
<th>Value</th>
</tr>
<tr>
<td id="docker.build.args"><a href="#docker.build.args"><code>args</code></a></td>
<td><code>false</code></td>
<td><code>map</code></td>
</tr>
<tr>
<td id="docker.build.context"><a href="#docker.build.context"><code>context</code></a></td>
<td><code>true</code></td>
<td><code>string</code></td>
</tr>
<tr>
<td id="docker.build.dockerfile"><a href="#docker.build.dockerfile"><code>dockerfile</code></a></td>
<td><code>false</code></td>
<td><code>string</code></td>
</tr>
<tr>
<td id="docker.build.target"><a href="#docker.build.target"><code>target</code></a></td>
<td><code>false</code></td>
<td><code>string</code></td>
</tr>
</table>




##### `docker.build` constraints {#docker.build-constraints}



| Constraint | Value
|-----------------------------|------------------------------------
| Required | `false`
| Require Name | `false`
| Repeatable | `false`
| Allow unknown blocks | `false`
| Allow unknown attributes | `false`




### Constraints {#docker.mysql-constraints}

Expand Down Expand Up @@ -1167,6 +1386,79 @@ diff {



### Blocks {#docker.postgres-blocks}




#### `docker.build` {#docker.build}
The `build` block defines the build configuration for the Docker image.
The given image is built using the provided Dockerfile and context.

~~~hcl
docker "postgres" "pg-vn" {
image = "postgres:15-vn"
build {
context = "."
dockerfile = "locale.Dockerfile"
args = {
LOCALE = "vi-VN"
}
}
}
~~~



##### `docker.build` attributes {#docker.build-attributes}



<table class="attributes-table">
<tr>
<th>Name</th>
<th>Required</th>
<th>Value</th>
</tr>
<tr>
<td id="docker.build.args"><a href="#docker.build.args"><code>args</code></a></td>
<td><code>false</code></td>
<td><code>map</code></td>
</tr>
<tr>
<td id="docker.build.context"><a href="#docker.build.context"><code>context</code></a></td>
<td><code>true</code></td>
<td><code>string</code></td>
</tr>
<tr>
<td id="docker.build.dockerfile"><a href="#docker.build.dockerfile"><code>dockerfile</code></a></td>
<td><code>false</code></td>
<td><code>string</code></td>
</tr>
<tr>
<td id="docker.build.target"><a href="#docker.build.target"><code>target</code></a></td>
<td><code>false</code></td>
<td><code>string</code></td>
</tr>
</table>




##### `docker.build` constraints {#docker.build-constraints}



| Constraint | Value
|-----------------------------|------------------------------------
| Required | `false`
| Require Name | `false`
| Repeatable | `false`
| Allow unknown blocks | `false`
| Allow unknown attributes | `false`




### Constraints {#docker.postgres-constraints}

Expand Down Expand Up @@ -1220,6 +1512,79 @@ diff {



### Blocks {#docker.sqlserver-blocks}




#### `docker.build` {#docker.build}
The `build` block defines the build configuration for the Docker image.
The given image is built using the provided Dockerfile and context.

~~~hcl
docker "postgres" "pg-vn" {
image = "postgres:15-vn"
build {
context = "."
dockerfile = "locale.Dockerfile"
args = {
LOCALE = "vi-VN"
}
}
}
~~~



##### `docker.build` attributes {#docker.build-attributes}



<table class="attributes-table">
<tr>
<th>Name</th>
<th>Required</th>
<th>Value</th>
</tr>
<tr>
<td id="docker.build.args"><a href="#docker.build.args"><code>args</code></a></td>
<td><code>false</code></td>
<td><code>map</code></td>
</tr>
<tr>
<td id="docker.build.context"><a href="#docker.build.context"><code>context</code></a></td>
<td><code>true</code></td>
<td><code>string</code></td>
</tr>
<tr>
<td id="docker.build.dockerfile"><a href="#docker.build.dockerfile"><code>dockerfile</code></a></td>
<td><code>false</code></td>
<td><code>string</code></td>
</tr>
<tr>
<td id="docker.build.target"><a href="#docker.build.target"><code>target</code></a></td>
<td><code>false</code></td>
<td><code>string</code></td>
</tr>
</table>




##### `docker.build` constraints {#docker.build-constraints}



| Constraint | Value
|-----------------------------|------------------------------------
| Required | `false`
| Require Name | `false`
| Repeatable | `false`
| Allow unknown blocks | `false`
| Allow unknown attributes | `false`




### Constraints {#docker.sqlserver-constraints}

Expand Down
Loading

0 comments on commit 88fd18f

Please sign in to comment.