Coder.comC
Coder.com2y ago
11 replies
yangluo

Build devcontainer failed

My purpose was to let the coder run the workspace based on the devcontainer in one of my warehouses. So I was guided to use envbuilder, and I adopted the devcontaner template and modified it (I put main.tf in the attachment).
Here's how I deploy the coder:
1. Use helm to deploy on K8s

Here are the special features of this environment:
1. For some reasons, github cannot be accessed by default on the K8s cluster. So I configured all_proxy (see main.ts) for the deployment of the coder and its workspace, and confirmed that github can be accessed normally.

Next I describe my problem:
When using main.ts in the attachment to create workspaces, an error is always reported and cannot be connected to github. I don't know how envbuild works in this process. I don't know what to do to avoid this problem?
envbuilder - Build development environments from repositories in a container
#1: 📦 Cloning https://github.com/dream-num/universer.git to /workspaces/universer.git...
Failed to clone repository: clone "https://github.com/dream-num/universer.git": Get "https://github.com/dream-num/universer.git/info/refs?service=git-upload-pack": dial tcp 20.205.243.166:443: connect: connection refused
Falling back to the default image...
#2: Deleting filesystem...
#2: 🏗️ Building image...
#2: Retrieving image manifest codercom/enterprise-base:ubuntu
#2: Retrieving image codercom/enterprise-base:ubuntu from registry index.docker.io
error: Get "https://index.docker.io/v2/": dial tcp 54.227.20.253:443: connect: connection refused
image.png
main.tf7.79KB
Was this page helpful?