Skip to content

Commit bb892ba

Browse files
authored
chore: Prepare release v3.8.0 (#806)
1 parent 7e649b0 commit bb892ba

File tree

5 files changed

+111
-5
lines changed

5 files changed

+111
-5
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11

2+
<a name="v3.8.0"></a>
3+
## [v3.8.0](https://github.com/kreuzwerker/terraform-provider-docker/compare/v3.7.0...v3.8.0) (2025-10-08)
4+
5+
### Feat
6+
7+
* Add build attribute for docker_registry_image ([#805](https://github.com/kreuzwerker/terraform-provider-docker/issues/805))
8+
* Add build option for additional contexts ([#798](https://github.com/kreuzwerker/terraform-provider-docker/issues/798))
9+
* implement mac_address for networks_advanced ([#794](https://github.com/kreuzwerker/terraform-provider-docker/issues/794))
10+
* Implement docker cluster volume ([#793](https://github.com/kreuzwerker/terraform-provider-docker/issues/793))
11+
12+
213
<a name="v3.7.0"></a>
3-
## [v3.7.0](https://github.com/kreuzwerker/terraform-provider-docker/compare/v3.6.2...v3.7.0) (2025-08-13)
14+
## [v3.7.0](https://github.com/kreuzwerker/terraform-provider-docker/compare/v3.6.2...v3.7.0) (2025-08-19)
15+
16+
### Chore
17+
18+
* Prepare release v3.7.0 ([#774](https://github.com/kreuzwerker/terraform-provider-docker/issues/774))
419

520
### Feat
621

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Do you want to migrate from `v2.x` to `v3.x`? Please read the [migration guide](
2626

2727
## Example usage
2828

29-
Take a look at the examples in the [documentation](https://registry.terraform.io/providers/kreuzwerker/docker/3.7.0/docs) of the registry
29+
Take a look at the examples in the [documentation](https://registry.terraform.io/providers/kreuzwerker/docker/3.8.0/docs) of the registry
3030
or use the following example:
3131

3232

@@ -38,7 +38,7 @@ terraform {
3838
# since new versions are released frequently
3939
docker = {
4040
source = "kreuzwerker/docker"
41-
version = "3.7.0"
41+
version = "3.8.0"
4242
}
4343
}
4444
}

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ terraform {
2525
required_providers {
2626
docker = {
2727
source = "kreuzwerker/docker"
28-
version = "3.7.0"
28+
version = "3.8.0"
2929
}
3030
}
3131
}

docs/resources/registry_image.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ resource "docker_image" "image" {
3838
### Optional
3939

4040
- `auth_config` (Block List, Max: 1) Authentication configuration for the Docker registry. It is only used for this resource. (see [below for nested schema](#nestedblock--auth_config))
41+
- `build` (Block Set, Max: 1) Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. (see [below for nested schema](#nestedblock--build))
4142
- `insecure_skip_verify` (Boolean) If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
4243
- `keep_remotely` (Boolean) If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
4344
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
@@ -58,6 +59,96 @@ Required:
5859
- `username` (String) The username for the Docker registry.
5960

6061

62+
<a id="nestedblock--build"></a>
63+
### Nested Schema for `build`
64+
65+
Required:
66+
67+
- `context` (String) Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts.
68+
69+
Optional:
70+
71+
- `additional_contexts` (List of String) A list of additional build contexts. Only supported when using a buildx builder. Example: `["name=path", "src = https://example.org"}`. Please see https://docs.docker.com/reference/cli/docker/buildx/build/#build-context for more information.
72+
- `auth_config` (Block List) The configuration for the authentication (see [below for nested schema](#nestedblock--build--auth_config))
73+
- `build_args` (Map of String) Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"`
74+
- `build_id` (String) BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request.
75+
- `build_log_file` (String) Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available.
76+
- `builder` (String) Set the name of the buildx builder to use. If not set, the legacy builder is used.
77+
- `cache_from` (List of String) External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder.
78+
- `cache_to` (List of String) Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder.
79+
- `cgroup_parent` (String) Optional parent cgroup for the container
80+
- `cpu_period` (Number) The length of a CPU period in microseconds
81+
- `cpu_quota` (Number) Microseconds of CPU time that the container can get in a CPU period
82+
- `cpu_set_cpus` (String) CPUs in which to allow execution (e.g., `0-3`, `0`, `1`)
83+
- `cpu_set_mems` (String) MEMs in which to allow execution (`0-3`, `0`, `1`)
84+
- `cpu_shares` (Number) CPU shares (relative weight)
85+
- `dockerfile` (String) Name of the Dockerfile. Defaults to `Dockerfile`.
86+
- `extra_hosts` (List of String) A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form ["hostname:IP"]
87+
- `force_remove` (Boolean) Always remove intermediate containers
88+
- `isolation` (String) Isolation represents the isolation technology of a container. The supported values are
89+
- `label` (Map of String) Set metadata for an image
90+
- `labels` (Map of String) User-defined key/value metadata
91+
- `memory` (Number) Set memory limit for build
92+
- `memory_swap` (Number) Total memory (memory + swap), -1 to enable unlimited swap
93+
- `network_mode` (String) Set the networking mode for the RUN instructions during build
94+
- `no_cache` (Boolean) Do not use the cache when building the image
95+
- `platform` (String) Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform)
96+
- `pull_parent` (Boolean) Attempt to pull the image even if an older image exists locally
97+
- `remote_context` (String) A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set.
98+
- `remove` (Boolean) Remove intermediate containers after a successful build. Defaults to `true`.
99+
- `secrets` (Block List) Set build-time secrets. Only available when you use a buildx builder. (see [below for nested schema](#nestedblock--build--secrets))
100+
- `security_opt` (List of String) The security options
101+
- `session_id` (String) Set an ID for the build session
102+
- `shm_size` (Number) Size of /dev/shm in bytes. The size must be greater than 0
103+
- `squash` (Boolean) If true the new layers are squashed into a new image with a single new layer
104+
- `suppress_output` (Boolean) Suppress the build output and print image ID on success
105+
- `tag` (List of String) Name and optionally a tag in the 'name:tag' format
106+
- `target` (String) Set the target build stage to build
107+
- `ulimit` (Block List) Configuration for ulimits (see [below for nested schema](#nestedblock--build--ulimit))
108+
- `version` (String) Version of the underlying builder to use
109+
110+
<a id="nestedblock--build--auth_config"></a>
111+
### Nested Schema for `build.auth_config`
112+
113+
Required:
114+
115+
- `host_name` (String) hostname of the registry
116+
117+
Optional:
118+
119+
- `auth` (String) the auth token
120+
- `email` (String) the user emal
121+
- `identity_token` (String) the identity token
122+
- `password` (String) the registry password
123+
- `registry_token` (String) the registry token
124+
- `server_address` (String) the server address
125+
- `user_name` (String) the registry user name
126+
127+
128+
<a id="nestedblock--build--secrets"></a>
129+
### Nested Schema for `build.secrets`
130+
131+
Required:
132+
133+
- `id` (String) ID of the secret. By default, secrets are mounted to /run/secrets/<id>
134+
135+
Optional:
136+
137+
- `env` (String) Environment variable source of the secret
138+
- `src` (String) File source of the secret. Takes precedence over `env`
139+
140+
141+
<a id="nestedblock--build--ulimit"></a>
142+
### Nested Schema for `build.ulimit`
143+
144+
Required:
145+
146+
- `hard` (Number) soft limit
147+
- `name` (String) type of ulimit, e.g. `nofile`
148+
- `soft` (Number) hard limit
149+
150+
151+
61152
<a id="nestedblock--timeouts"></a>
62153
### Nested Schema for `timeouts`
63154

examples/provider/provider-tf13.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
docker = {
44
source = "kreuzwerker/docker"
5-
version = "3.7.0"
5+
version = "3.8.0"
66
}
77
}
88
}

0 commit comments

Comments
 (0)