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
Copy file name to clipboardExpand all lines: docs/tutorials/template-from-scratch.md
+24-40
Original file line number
Diff line number
Diff line change
@@ -14,18 +14,13 @@ To follow this guide, you'll need:
14
14
[Docker](https://docs.docker.com/get-docker/) and [Coder](../install/index.md)
15
15
installed on it.
16
16
17
-
> When setting up your computer or computing instance, make sure to install
18
-
> Docker first, then Coder. Otherwise, you'll need to add the `coder` user to
19
-
> the `docker` group.
17
+
- When setting up your computer or computing instance, make sure to install Docker first, then Coder. Otherwise, you'll need to add the `coder` user to the `docker` group.
20
18
21
19
- The URL for your Coder instance. If you're running Coder locally, the default
22
20
URL is [http://127.0.0.1:3000](http://127.0.0.1:3000).
23
21
24
22
- A text editor. For this tour, we use [GNU nano](https://nano-editor.org/).
25
23
26
-
> Haven't written Terraform before? Check out Hashicorp's
27
-
> [Getting Started Guides](https://developer.hashicorp.com/terraform/tutorials).
28
-
29
24
## What's in a template
30
25
31
26
The main part of a Coder template is a [Terraform](https://terraform.io)`tf`
@@ -36,6 +31,9 @@ Coder can provision all Terraform modules, resources, and properties. The Coder
36
31
server essentially runs a `terraform apply` every time a workspace is created,
37
32
started, or stopped.
38
33
34
+
> Haven't written Terraform before? Check out Hashicorp's
35
+
> [Getting Started Guides](https://developer.hashicorp.com/terraform/tutorials).
36
+
39
37
Here's a simplified diagram that shows the main parts of the template we'll
40
38
create.
41
39
@@ -47,10 +45,8 @@ On your local computer, create a directory for your template and create the
47
45
`Dockerfile`.
48
46
49
47
```sh
50
-
mkdir template-tour
51
-
cd template-tour
52
-
mkdir build
53
-
nano build/Dockerfile
48
+
mkdir -p template-tour/build &&cd$_
49
+
nano Dockerfile
54
50
```
55
51
56
52
You'll enter a simple `Dockerfile` that starts with the
0 commit comments