goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.5k stars 470 forks source link

Dgoss Error when Running tests /goss/goss: no such file or directory. #923

Open viralsanghavi opened 1 month ago

viralsanghavi commented 1 month ago

I have my dockerfile and goss.yaml on the root level.

  1. In my CICD I have first built the docker image with a tag name
  2. I ran dgoss run imageName
  3. I get this error below in the ss image
aelsabbahy commented 1 month ago

My guess is either goss doesn't exist in $PATH or the goss binary architecture and container don't align.

Try setting GOSS_PATH to /usr/local/bin/goss if that doesn't work, check the architecture of the container and goss binary.

I don't like the vagueness of this error, perhaps once we identify it, the documentation or error message in dgoss can be improved.

aelsabbahy commented 4 weeks ago

Looping back on this, wondering if you had a chance to look into my suggestion above?