Giter Site home page Giter Site logo

Comments (3)

aelsabbahy avatar aelsabbahy commented on June 12, 2024 1

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.

mdb avatar mdb commented on June 12, 2024

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.

aelsabbahy avatar aelsabbahy commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.