goss-org / goss

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

Goss test fails during build but manually passes within image #806

Closed jackfarzan closed 1 year ago

jackfarzan commented 1 year ago

I run goss tests within my Dockerfile so that the image doesn't get built if the tests fail. This workflow works fine for most of my images. I'm experiencing a problem in one image where my tests fails during build, but pass if I connect to the container and run the test manually. I am passing in a var file, and I confirmed during build that it contains the correct values. Any insight on why this could happen?

jackfarzan commented 1 year ago

was an issue with the path variable not being set properly on build