Title: `coder templates create` using the template `docker-image-builds` and derivatives fails to build · Issue #2815 · coder/coder · GitHub
Open Graph Title: `coder templates create` using the template `docker-image-builds` and derivatives fails to build · Issue #2815 · coder/coder
X Title: `coder templates create` using the template `docker-image-builds` and derivatives fails to build · Issue #2815 · coder/coder
Description: Problem The images folder is seemingly not pushed to the host when running coder templates create on Windows clients. The second validation rule in the below template snippet seemingly always fails regardless of the availability of the r...
Open Graph Description: Problem The images folder is seemingly not pushed to the host when running coder templates create on Windows clients. The second validation rule in the below template snippet seemingly always fails...
X Description: Problem The images folder is seemingly not pushed to the host when running coder templates create on Windows clients. The second validation rule in the below template snippet seemingly always fails...
Opengraph URL: https://github.com/coder/coder/issues/2815
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`coder templates create` using the template `docker-image-builds` and derivatives fails to build","articleBody":"## Problem\r\nThe images folder is seemingly not pushed to the host when running `coder templates create` on Windows clients. The second validation rule in the below template snippet seemingly always fails regardless of the availability of the relevant images folder:\r\n```hcl\r\nvariable \"docker_image\" {\r\n description = \"What Docker image would you like to use for your workspace?\"\r\n default = \"alpine\"\r\n\r\n # List of images available for the user to choose from.\r\n # Delete this condition to give users free text input.\r\n validation {\r\n condition = contains([\r\n \"alpine\",\r\n \"ubuntu\"\r\n ], var.docker_image)\r\n error_message = \"Invalid Docker image!\"\r\n }\r\n\r\n # Prevents admin errors when the image is not found\r\n validation {\r\n condition = fileexists(\"images/${var.docker_image}.Dockerfile\")\r\n error_message = \"Invalid Docker image. The file does not exist in the images directory.\"\r\n }\r\n}\r\n```\r\n\r\nLogs: \r\n\r\nDirectory tree: \r\n\r\n\r\nThis is also reproducible with the default `docker-image-builds` template without any changes.\r\n\r\nCoder version (on both host and client): [Coder v0.7.6+a494489](https://github.com/coder/coder/commit/a494489ffac76d977c2733c8d33112bf95235ea3)","author":{"url":"https://github.com/wale","@type":"Person","name":"wale"},"datePublished":"2022-07-04T00:12:51Z","url":"https://github.com/coder/coder/issues/2815"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fc8cb1fa-2b6b-7433-6982-8855b4f2bea5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A502:1C94F:183A0EE:1EFD6E8:6B01873E |
| html-safe-nonce | bf01cff9ec3238cd06804ee87bf3a63d1a7f9c3ba68ffc6209df5e3edf68acfb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTAyOjFDOTRGOjE4M0EwRUU6MUVGRDZFODo2QjAxODczRSIsInZpc2l0b3JfaWQiOiI1MTQ4ODE5Nzc1NjMxMjMwNzgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 822246a5dee4411d461b22bdbaf446d0b332aab5f28e06d195afb2e24671cd58 |
| hovercard-subject-tag | issue:1292459066 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/2815/issue_layout |
| twitter:image | https://opengraph.githubassets.com/469d6f5cece1a69fc3c769d2a581851a53d1b03a3bae8f8c0e2d72830e9af91c/coder/coder/issues/2815 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/469d6f5cece1a69fc3c769d2a581851a53d1b03a3bae8f8c0e2d72830e9af91c/coder/coder/issues/2815 |
| og:image:alt | Problem The images folder is seemingly not pushed to the host when running coder templates create on Windows clients. The second validation rule in the below template snippet seemingly always fails... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wale |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width