goss-org / goss

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

dgoss and vars parameter #755

Closed bostrowski13 closed 2 years ago

bostrowski13 commented 2 years ago

tl;dr - can i use --vars with dgoss, and if so how?

I was wondering if its possible to use dgoss with the --vars param. I have yaml files that contain configs my docker container is built with, but when i try to pass --vars to this it fails.

dgoss run --vars configenv/version1.yml -it myhub.test/my_image:latest /bin/bash 
unknown flag: --vars
See 'docker run --help'.
aelsabbahy commented 2 years ago

Let me know if this works for you:

https://github.com/aelsabbahy/goss/tree/master/extras/dgoss#goss_vars

aelsabbahy commented 2 years ago

Closing this out as answered. Feel free to open a new issue if it's not.