goss-org / goss

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

macOS support #192

Closed petemounce closed 4 years ago

petemounce commented 7 years ago

Similarly to #26, it would be great to get macOS support. I assume since you welcomed PRs for FreeBSD, you might also welcome ones that add macOS support?

aelsabbahy commented 7 years ago

One point to clarify. Since Goss runs locally on the target machine. This enhancement would be for those interested in using Goss to validate a macos system.

dgoss works fine on macos if the target docker is Linux.

brianantonelli commented 7 years ago

I have it compiling on OS X fine, but I get some errors when invoking it through dgoss.

aelsabbahy commented 7 years ago

To get dgoss working on Mac:

# Install dgoss
curl -L https://raw.githubusercontent.com/aelsabbahy/goss/master/extras/dgoss/dgoss -o /usr/local/bin/dgoss
chmod +rx /usr/local/bin/dgoss

# Download goss to your preferred location
curl -L https://github.com/aelsabbahy/goss/releases/download/v0.3.1/goss-linux-amd64 - o ~/Downloads/goss-linux-amd64

# Set your GOSS_PATH to the above location
export GOSS_PATH=~/Downloads/goss-linux-amd64

# Use dgoss
dgoss edit ...
dgoss run ...

Since Goss is running inside the container, no cross compile is needed.

aelsabbahy commented 7 years ago

I've updated the dgoss readme with Mac installation instructions

twhiston commented 6 years ago

So what additionally would be needed to validate an OSX install? (ie use goss for mac rather than from mac) maybe we could use homebrew for the package checking (as most automation I have seen uses homebrew to install/validate things, ie ansible), what other items do we need to deal with? i'd be really willing to work on this if we can break the task down into well defined chunks.

automaticgiant commented 6 years ago

works fine for me. my use case is the http/dns/tcp stuff that i can use remotely to validate a terraform stack comes up. i stick it in a provisioner so it can bluegreen the dns only if the stack starts taking traffic correctly. this is a killer use case as it has the waiting/timeout stuff. i just would like the binaries added to releases.

estahn commented 6 years ago

349 should help with this.

petemounce commented 6 years ago

380 is trying to add macOS binaries to the releases.

SpokeyWheeler commented 6 years ago

Another request for macOS binaries, please!

ssbarnea commented 4 years ago

... no progress so far, starting to loose hope. Even worse using the installer on macos does copy the linux binaries instead of failing with a "not supported yet error".

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

aelsabbahy commented 4 years ago

Community supported macOS (and windows) alpha binaries are now part of a goss release, see #585