devcontainers / feature-starter

A bootstrap repo for self-authoring Dev Container Features
https://containers.dev
MIT License
277 stars 132 forks source link

Testing with a baseImage without bash? #31

Open gremo opened 1 year ago

gremo commented 1 year ago

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

joshspicer commented 1 year ago

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.

gremo commented 1 year ago

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