mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-02-03 20:29:30 -05:00
docs: update to absolute path for registry image context (#246)
This commit is contained in:
parent
44081ad4b1
commit
e7e80fa23f
3 changed files with 4 additions and 4 deletions
|
|
@ -17,7 +17,7 @@ resource "docker_registry_image" "helloworld" {
|
|||
name = "helloworld:1.0"
|
||||
|
||||
build {
|
||||
context = "pathToContextFolder"
|
||||
context = "${path.cwd}/absolutePathToContextFolder"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -45,7 +45,7 @@ resource "docker_registry_image" "helloworld" {
|
|||
|
||||
Required:
|
||||
|
||||
- **context** (String) The path to the context folder
|
||||
- **context** (String) The absolute path to the context folder. You can use the helper function '${path.cwd}/context-dir'.
|
||||
|
||||
Optional:
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ resource "docker_registry_image" "helloworld" {
|
|||
name = "helloworld:1.0"
|
||||
|
||||
build {
|
||||
context = "pathToContextFolder"
|
||||
context = "${path.cwd}/absolutePathToContextFolder"
|
||||
}
|
||||
}
|
||||
|
|
@ -241,7 +241,7 @@ func resourceDockerRegistryImage() *schema.Resource {
|
|||
},
|
||||
"context": {
|
||||
Type: schema.TypeString,
|
||||
Description: "The path to the context folder",
|
||||
Description: "The absolute path to the context folder. You can use the helper function '${path.cwd}/context-dir'.",
|
||||
Required: true,
|
||||
ForceNew: true,
|
||||
StateFunc: func(val interface{}) string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue