docs: update to absolute path for registry image context (#246)

This commit is contained in:
Manuel Vogel 2021-07-09 09:04:43 +02:00 committed by GitHub
parent 44081ad4b1
commit e7e80fa23f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -2,6 +2,6 @@ resource "docker_registry_image" "helloworld" {
name = "helloworld:1.0"
build {
context = "pathToContextFolder"
context = "${path.cwd}/absolutePathToContextFolder"
}
}

View file

@ -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 {