Coder provides sample Docker and Kubernetes templates for use with Envbuilder. You can import these templates and modify them to fit your specific requirements.
Below are some specific points to be aware of when using Envbuilder with a Coder deployment:
- The
ENVBUILDER_INIT_SCRIPT
should executecoder_agent.main.init_script
in order for you to be able to connect to your workspace. - In order for the Agent init script to be able to fetch the agent binary from
your Coder deployment, the resulting Devcontainer must contain a download tool
such as
curl
,wget
, orbusybox
. CODER_AGENT_TOKEN
should be included in the environment variables for the Envbuilder container. You can also setCODER_AGENT_URL
if required.
Choose a branch using ENVBUILDER_GIT_URL
with a ref/heads reference. For instance:
ENVBUILDER_GIT_URL=https://github.com/coder/envbuilder-starter-devcontainer/#refs/heads/my-feature-branch