Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9d37d7

Browse files
committed
update steps to include 1. upload through ui 2. new screenshots
1 parent8963cfb commitc9d37d7

File tree

6 files changed

+39
-7
lines changed

6 files changed

+39
-7
lines changed
-17.8 KB
Loading
-26.8 KB
Loading
Loading
-430 KB
Loading

‎docs/tutorials/template-from-scratch.md

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ use the Coder CLI.
348348

349349
![Logging in to your Coder deployment](../images/templates/coder-login-web.png)
350350

351-
1. Copy the session tokeninto the clipboard:
351+
1. Copy the session tokento the clipboard:
352352

353353
![Logging in to your Coder deployment](../images/templates/coder-session-token.png)
354354

@@ -359,7 +359,13 @@ use the Coder CLI.
359359
$
360360
```
361361

362-
1. Add your template files to your Coder deployment:
362+
###Add the template files to Coder
363+
364+
Add your template files to your Coder deployment. You can upload the template through the CLI, or through the Coder dashboard:
365+
366+
####Upload template from the Coder CLI
367+
368+
1. Run`coder templates create` from the directory with your template files:
363369

364370
```console
365371
$ pwd
@@ -372,17 +378,43 @@ use the Coder CLI.
372378

373379
```console
374380
> Confirm create? (yes/no) yes
375-
381+
376382
The template-tour template has been created! Developers can provision a workspace with this template using:
377-
378-
coder create --template="template-tour" [workspace name]
383+
384+
coder create --template="template-tour" [workspace name]
379385
```
380386

381387
1. In your web browser, log in to your Coder dashboard, select**Templates**.
382388

383-
Your template is ready to use for new workspaces.
389+
1. Once the upload completes, select**Templates** from the top to deploy it to a new workspace.
390+
391+
![Your new template, ready to use](../images/templates/template-tour.png)
392+
393+
####Upload template from the Coder dashboard
394+
395+
1. Create a`.zip` of the template files.
396+
397+
On Mac or Windows, highlight the files and then right click. A "compress" option is available through the right-click context menu.
398+
399+
Through the Linux command line, use`zip`:
400+
401+
```shell
402+
zip templates.zip Dockerfile main.tf
403+
```
404+
405+
1. Select**Templates** from the top of the Coder dashboard, then**Create Template**.
406+
407+
1. Select**Upload template**:
408+
409+
![Upload your first template](../images/templates/upload-create-your-first-template.png)
410+
411+
1. Drag the`.zip` file into the**Upload template** section and fill out the details, then select**Create template**.
412+
413+
![Upload the template files](../images/templates/upload-create-template-form.png)
414+
415+
1. Once the upload completes, select**Templates** from the top to deploy it to a new workspace.
384416

385-
![Your new template, ready to use](../images/templates/template-tour.png)
417+
![Your new template, ready to use](../images/templates/template-tour.png)
386418

387419
###Next steps
388420

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp