DevPod doesn't support local features
I have
"features": {
...
"./local-subdir1": {},
"./local-subdir2": {}
}
devcontainer build supports this syntax. Devpod doesn't, it just prints 20:08:56 info Creating devcontainer... and exits immediately
It happens when there are >1 users in the system. Devcontainers runs everything as UID 1000, I run as UID 1001, workaround is sudo chown...
@iirekm thanks for creating this issue! What happens if you run with debug via devpod build --debug ...? We will investigate how we can do this differently
Hi @iirekm, I tried the same scenario on the current version of devpod cli i.e. v0.2.1 , and the image build is successful. Can you try the latest version of devpod cli or let us know the version you are running currently to help us filter out the issue source.
I have the same problem that localfeature doesn't work. I am using v0.5.2.
Following is the captured error Error piping stdin: write |1: file already closed
08:38:12 info time="2024-02-15T00:38:12Z" level=info msg="Performing slow lookup of group ids for root"
08:38:12 info time="2024-02-15T00:38:12Z" level=info msg="Running: [/bin/sh -c cd /tmp/build-features/0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh]"
08:38:12 info dockerless build: exit status 127
08:38:12 debug Connection to SSH Server closed
08:38:12 debug Done setting up container
08:38:12 info Error piping stdin: write |1: file already closed
08:38:12 info Process exited with status 1
08:38:12 info run agent command
08:38:12 info github.com/loft-sh/devpod/pkg/devcontainer/sshtunnel.ExecuteCommand.func2
08:38:12 info D:/a/devpod/devpod/pkg/devcontainer/sshtunnel/sshtunnel.go:122
08:38:12 info runtime.goexit
08:38:12 info C:/hostedtoolcache/windows/go/1.20.5/x64/src/runtime/asm_amd64.s:1598
08:38:12 info devcontainer up
08:38:12 info github.com/loft-sh/devpod/cmd/agent/workspace.(*UpCmd).Run
08:38:12 info D:/a/devpod/devpod/cmd/agent/workspace/up.go:96
08:38:12 info github.com/loft-sh/devpod/cmd/agent/workspace.NewUpCmd.func1
08:38:12 info D:/a/devpod/devpod/cmd/agent/workspace/up.go:52
08:38:12 info github.com/spf13/cobra.(*Command).execute
08:38:12 info D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:916
08:38:12 info github.com/spf13/cobra.(*Command).ExecuteC
08:38:12 info D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:1044
08:38:12 info github.com/spf13/cobra.(*Command).Execute
08:38:12 info D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:968
08:38:12 info github.com/loft-sh/devpod/cmd.Execute
08:38:12 info D:/a/devpod/devpod/cmd/root.go:90
08:38:12 info main.main
08:38:12 info D:/a/devpod/devpod/main.go:8
08:38:12 info runtime.main
08:38:12 info C:/hostedtoolcache/windows/go/1.20.5/x64/src/runtime/proc.go:250
08:38:12 info runtime.goexit
08:38:12 info C:/hostedtoolcache/windows/go/1.20.5/x64/src/runtime/asm_amd64.s:1598
08:38:12 info exit status 1
08:38:12 debug Connection to SSH Server closed