Comments (3)
Hello, thank you for opening this. My guess would be you may be attempting to run a Mac binary in Linux.
Download the proper Goss binary somewhere on your Mac. Set GOSS_PATH env var to that binary.
For debugging, you can just manually copy the Goss binary you have today into the container and run it to see if it gives the same error.
My guess is you need the Linux-amd64 or Linux-arm* versions.. to be honest, I'm not up to date on the latest m1/m2 Mac docker story.
If you find a binary that works, can you report back on this issue.. I'd love to update the docs for others.. m1/m2+ chips seem like they'll be a common developer setup for the future.
from goss.
Thanks @aelsabbahy - That clarifies a lot. Admittedly, I wasn't expecting dgoss
to rely on a goss
binary living on the host; I was expecting its sole dependency to essentially be docker
itself.
So, to resolve the error I describe above, I first downloaded a goss-linux-amd64
:
curl \
--fail \
--silent \
--show-error \
--location \
"https://github.com/goss-org/goss/releases/download/v0.3.23/goss-linux-amd64" \
--output goss
Then, I used this goss
as the value of GOSS_PATH
when running dgoss
:
$ GOSS_PATH=goss dgoss run --tty --entrypoint sh klakegg/hugo
INFO: Starting docker container
INFO: Container ID: 7f820b06
INFO: Sleeping for 0.2
INFO: Container health
INFO: Running Tests
File: /bin/hugo: exists: matches expectation: [true]
Total Duration: 0.015s
Count: 1, Failed: 0, Skipped: 0
INFO: Deleting container
from goss.
Feel free to submit a PR updating the documentation if you feel it would help the next person.
Thank you for validating this!
from goss.
Related Issues (20)
- Error with `contain-substring/mach-regexp` matcher and `json/junit` formatters HOT 2
- Unable to detect `php-fpm` service with `port` resource HOT 3
- Goss crashes when json or junit output is used with io.Readers HOT 1
- Publish documentation HOT 3
- Facing Error exec: not started while executing tests of type command HOT 9
- Goss Linux AMD64 Download Mislabeled HOT 3
- Has anyone used goss in s390x environment? HOT 2
- Add more labels to prometheus output format HOT 4
- Duplicate Key Override Behavior HOT 3
- Dinamic variables and envs HOT 3
- Prometheus Output Format Oddity HOT 6
- kgoss uses a chmod call not supported by busybox HOT 1
- Cannot write command tests without shell (sh) HOT 4
- command stdout matcher with AND and NOT HOT 4
- Write test report artifacts directly HOT 5
- install.sh: Install latest release HOT 1
- Remove Molecule from Community Contributions section in readme
- Set a custom user agent string for http checks HOT 4
- Unable to read the documentation HOT 6
- Use goss as a go package outside of the CLI HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goss.