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/admin/templates/managing-templates/devcontainers/index.md
+21-78Lines changed: 21 additions & 78 deletions
Original file line number
Diff line number
Diff line change
@@ -14,91 +14,33 @@ pre-approved by platform teams in registries like
14
14
workflows, reduces the need for tickets and approvals, and promotes greater
15
15
independence for developers.
16
16
17
-
##Prerequisites
18
-
19
-
An administrator should construct or choose a base image and create a template
20
-
that includes a`devcontainer_builder` image before a developer team configures
21
-
dev containers.
22
-
23
-
##Benefits of devcontainers
24
-
25
-
There are several benefits to adding a dev container-compatible template to
26
-
Coder:
27
-
28
-
- Reliability through standardization
29
-
- Scalability for growing teams
30
-
- Improved security
31
-
- Performance efficiency
32
-
- Cost Optimization
33
-
34
-
###Reliability through standardization
35
-
36
-
Use dev containers to empower development teams to personalize their own
37
-
environments while maintaining consistency and security through an approved and
38
-
hardened base image.
39
-
40
-
Standardized environments ensure uniform behavior across machines and team
41
-
members, eliminating "it works on my machine" issues and creating a stable
42
-
foundation for development and testing. Containerized setups reduce dependency
43
-
conflicts and misconfigurations, enhancing build stability.
44
-
45
-
###Scalability for growing teams
17
+
This doc explains how to use Envbuilder to integrate dev containers in a template.
46
18
47
-
Dev containers allow organizations to handle multiple projects and teams
48
-
efficiently.
19
+
For the Docker-based Dev Containers integration, follow the[Configure a template for dev containers](../../extending-templates/devcontainers.md) documentation.
49
20
50
-
You can leverage platforms like Kubernetes to allocate resources on demand,
51
-
optimizing costs and ensuring fair distribution of quotas. Developer teams can
52
-
use efficient custom images and independently configure the contents of their
53
-
version-controlled dev containers.
54
-
55
-
This approach allows organizations to scale seamlessly, reducing the maintenance
56
-
burden on the administrators that support diverse projects while allowing
57
-
development teams to maintain their own images and onboard new users quickly.
58
-
59
-
###Improved security
60
-
61
-
Since Coder and Envbuilder run on your own infrastructure, you can use firewalls
62
-
and cluster-level policies to ensure Envbuilder only downloads packages from
63
-
your secure registry powered by JFrog Artifactory or Sonatype Nexus.
64
-
Additionally, Envbuilder can be configured to push the full image back to your
65
-
registry for additional security scanning.
66
-
67
-
This means that Coder admins can require hardened base images and packages,
68
-
while still allowing developer self-service.
69
-
70
-
Envbuilder runs inside a small container image but does not require a Docker
71
-
daemon in order to build a dev container. This is useful in environments where
72
-
you may not have access to a Docker socket for security reasons, but still need
73
-
to work with a container.
74
-
75
-
###Performance efficiency
76
-
77
-
Create a unique image for each project to reduce the dependency size of any
78
-
given project.
79
-
80
-
Envbuilder has various caching modes to ensure workspaces start as fast as
81
-
possible, such as layer caching and even full image caching and fetching via the