coder / terraform-provider-envbuilder

Mozilla Public License 2.0
6 stars 1 forks source link

error: no download tool found, please install curl, wget or busybox wget (when I change the DockerFile and restart the workspace). What needs to be changed further? #42

Closed johnstcn closed 2 months ago

johnstcn commented 2 months ago
          @johnstcn I still get  error: no download tool found, please install curl, wget or busybox wget (when I change the DockerFile and restart the workspace). What needs to be changed further?

terraform.txt

Originally posted by @datapedd in https://github.com/coder/terraform-provider-envbuilder/issues/31#issuecomment-2323434755

johnstcn commented 2 months ago

@datapedd that message is returned by the agent provision script. Can you share the devcontainer.json or Dockerfile that you're trying to build? You may need to add a command to install curl or wget.

datapedd commented 2 months ago

@johnstcn Curl is in the Dockerfile. The first time it builds fine, but when I just restart it, then it fails.

logs_pod.txt

024-09-02 21:11:07.078 [warn] Sending logs via AgentAPI v2 coder_version=v2.14.2+d1cd784 envbuilder v1.0.0-rc.6+23d086e - Build development environments from repositories in a container

1: 👤 Using no authentication!

1: 📦 Cloning https://github.com/coder/envbuilder-starter-devcontainer to /workspaces/envbuilder-starter-devcontainer...

1: 📦 The repository already exists! [79.289µs]

1: Deleting filesystem...

2: 🏗️ Building image...

2: Retrieving image manifest ubuntu

2: Retrieving image ubuntu from registry index.docker.i

datapedd commented 2 months ago

Found the problem. It is that curl has to be all the time in the dockerfile, if removed and then the workspace is restarted, then if fails. Should also be changed in the readme as it is not in it.

image

image

johnstcn commented 2 months ago

Should also be changed in the readme as it is not in it.

Thanks for the update @datapedd ! It sounds like a section specifically related to integrating with Coder would be useful here.