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

docs: improve dev containers documentation for user start-up#15458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
EdwardAngert merged 39 commits intomainfrombp-dev-containers
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
39 commits
Select commitHold shift + click to select a range
d741460
add definitions to admin/index
EdwardAngertNov 8, 2024
3ed5c3e
init devcontainers best practice doc
EdwardAngertNov 8, 2024
dcf901c
s/definition list/bullets
EdwardAngertNov 8, 2024
16cce07
Merge remote-tracking branch 'origin' into bp-dev-containers
EdwardAngertNov 12, 2024
e96b1bc
admin/index glossary section
EdwardAngertNov 13, 2024
22e399d
when to use a dev container
EdwardAngertNov 13, 2024
4f91cd0
Merge remote-tracking branch 'origin' into bp-dev-containers
EdwardAngertNov 13, 2024
8e37e58
admin/index glossary; devcontainer known issues
EdwardAngertNov 13, 2024
985233a
devcontainer lifecycle scripts
EdwardAngertNov 13, 2024
f2c59be
devcontainers directory
EdwardAngertNov 13, 2024
b24f615
fix typo
EdwardAngertNov 13, 2024
4c28411
make fmt
EdwardAngertNov 13, 2024
fc20dc3
suggestions from review
EdwardAngertNov 20, 2024
197cfa7
add steps in tabs to add-devcontainer
EdwardAngertNov 20, 2024
5a93ff2
fix links; list templates
EdwardAngertNov 20, 2024
8e53735
make fmt + copy review addition
EdwardAngertNov 20, 2024
80bf5da
fix link
EdwardAngertNov 21, 2024
ca56186
typo fix
EdwardAngertNov 21, 2024
1491680
copy edit devcontainer/index
EdwardAngertNov 21, 2024
7f8b079
edit add-devcontainer
EdwardAngertNov 22, 2024
547cfe0
Apply suggestions from code review
EdwardAngertNov 22, 2024
d22f76f
add screenshot
EdwardAngertNov 22, 2024
ce0d2be
make fmt; copy tweaks
EdwardAngertNov 22, 2024
66fcca0
edit example
EdwardAngertNov 22, 2024
de58159
link typo
EdwardAngertNov 22, 2024
69415d4
adjust image size
EdwardAngertNov 22, 2024
ae543de
Apply suggestions from code review
EdwardAngertNov 25, 2024
ca0da6d
Apply suggestions from code review
EdwardAngertNov 25, 2024
381bb73
make fmt
EdwardAngertNov 25, 2024
ade54e9
close codeblock; edit starter template steps
EdwardAngertNov 25, 2024
e46fc13
code review
Nov 26, 2024
9982af4
make fmt
Nov 26, 2024
182d69a
rename to dev containers
Nov 26, 2024
bf2e0fa
2-col table
EdwardAngertNov 26, 2024
cd99937
make fmt
Nov 26, 2024
d17dbea
un-double bullet def list
Nov 26, 2024
2c3ca6d
s/devcontainer/dev container
Nov 26, 2024
c28f16d
comma typo
Nov 26, 2024
f344dff
Merge remote-tracking branch 'origin' into bp-dev-containers
Nov 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
add screenshot
  • Loading branch information
@EdwardAngert
EdwardAngert committedNov 22, 2024
commitd22f76f59ca8fbe0e9dc865c38d74797054b6bdf
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
# Add a dev container template to Coder

A Coder administrator adds a dev container-compatible template to Coder
(Envbuilder). This allows the template to prompt for the developer for their dev container repository's URL as a [parameter](../../extending-templates/parameters.md) when they create their workspace. Envbuilder clones the repo
and builds a container from the `devcontainer.json` specified in the repo.
(Envbuilder). This allows the template to prompt for the developer for their dev
container repository's URL as a
[parameter](../../extending-templates/parameters.md) when they create their
workspace. Envbuilder clones the repo and builds a container from the
`devcontainer.json` specified in the repo.

You can create template files through the Coder dashboard, CLI, or you can choose a template from the [Coder registry](https://registry.coder.com/templates?tag=devcontainer):
You can create template files through the Coder dashboard, CLI, or you can
choose a template from the
[Coder registry](https://registry.coder.com/templates?tag=devcontainer):

<div class="tabs">

Expand All@@ -16,7 +21,7 @@ You can create template files through the Coder dashboard, CLI, or you can choos
select **Choose a starter template**.

- Select **From scratch** to create a new template and enter information and
file contents manually.
file contents manually.

## CLI

Expand DownExpand Up@@ -59,27 +64,28 @@ You can create template files through the Coder dashboard, CLI, or you can choos
1. Create a `.zip` of the template files:

- On Mac or Windows, highlight the files and then right click. A
"compress" option is available through the right-click context menu.
"compress" option is available through the right-click context menu.

- To zip the files through the command line:

```shell
zip templates.zip Dockerfile main.tf
```
```shell
zip templates.zip Dockerfile main.tf
```

1. Select **Templates**.
1. Select **Create Template**, then **Upload template**:

![Upload template](../../../../images/templates/upload-create-your-first-template.png)

1. Drag the `.zip` file into the **Upload template** section and fill out
thedetails, then select **Create template**.
1. Drag the `.zip` file into the **Upload template** section and fill out the
details, then select **Create template**.

![Upload the template files](../../../../images/templates/upload-create-template-form.png)

</div>

To set variables such as the namespace, go to the template in your Coder dashboard and select **Settings** from the **⋮** (vertical ellipsis) menu:
To set variables such as the namespace, go to the template in your Coder
dashboard and select **Settings** from the **⋮** (vertical ellipsis) menu:

![Choose Settings from the template's menu](../../../../images/templates/template-menu-settings.png)

Expand Down
View file
Open in desktop
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This image is quite small and renders not-so-great:

Screenshot 2024-11-24 at 9 13 24 PM

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We have a general image sizing issue through out docs. Related#15495

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

IMO this should be higher resolution, regardless of any site changes

matifali reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

and smaller in size to match font size with font on the site.

Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

[8]ページ先頭

©2009-2025 Movatter.jp