You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Create a rich-parameter variable of the form `data coder_parameter <name>`. This will be used to create a rich parameter in the template. For example:
62
64
63
65
> See full list of available parameters [here](https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/parameter)
5. For this example, we will use the pre-built [DockerDL](https://github.com/matifali/dockerdl) images.
113
115
114
-
> **Note**: You can use any image you want. You can use a pre-built image or coder can build an image for you from the Dockerfile in _images_ directory. See
116
+
> **Note**: You can use any image you want. You can use a pre-built image or coder can build an image for you from the Dockerfile in _images_ directory. See
115
117
116
-
```hcl
117
-
data "docker_registry_image" "dockerdl" {
118
-
name = "matifali/dockerdl:${data.coder_parameter.framework.value}"
119
-
}
118
+
```hcl
119
+
data "docker_registry_image" "dockerdl" {
120
+
name = "matifali/dockerdl:${data.coder_parameter.framework.value}"
# Keep alive for other workspaces to use upon deletion
127
+
keep_locally = true
128
+
}
127
129
128
-
```
130
+
```
129
131
130
132
> Full example is available [here](https://github.com/matifali/coder-templates/blob/main/deeplearning/main.tf)
131
133
132
134
## Next steps
133
135
134
-
-[How to keep your templates up to date](./keep-up-to-date): A guide on how to keep your templates up to date with the latest changes in the upstream repository using GitHub Actions. This will allow you to keep your templates up to date without having to manually update them. [Read more](./keep-up-to-date)
136
+
[How to keep your templates up to date](./keep-up-to-date): A guide on how to keep your templates up to date with the latest changes in the upstream repository using GitHub Actions. This will allow you to keep your templates up to date without having to manually update them. [Read more](./keep-up-to-date)
0 commit comments