feature-starter icon indicating copy to clipboard operation
feature-starter copied to clipboard

Testing with a baseImage without bash?

Open gremo opened this issue 2 years ago • 2 comments

Testing script with i.e. Alpine would fa il because missing bash, can you document how to install it before running the test?

node ➜ /workspaces/feature-starter (main) $ devcontainer features test --skip-scenarios -f color -i alpine:latest

Result:

OCI runtime exec failed: exec failed: unable to start container process: exec ./test.sh: no such file or directory: unknown

gremo avatar Feb 06 '23 23:02 gremo

Thanks for the issue. This is a known limitation for how the test command is implemented in the CLI. I've opened an issue on the CLI to track this.

joshspicer avatar Mar 08 '23 18:03 joshspicer

Thanks I've actually solved this way: https://github.com/gremo/devcontainers-features/blob/main/test/deployer/test.sh

gremo avatar Mar 08 '23 22:03 gremo