Installation
Manual installation
Latest
curl -L https://github.com/goss-org/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss
chmod +rx /usr/local/bin/goss
curl -L https://github.com/goss-org/goss/releases/latest/download/dgoss -o /usr/local/bin/dgoss
# Alternatively, using the latest master
# curl -L https://raw.githubusercontent.com/goss-org/goss/master/extras/dgoss/dgoss -o /usr/local/bin/dgoss
chmod +rx /usr/local/bin/dgoss
Specific Version
# See https://github.com/goss-org/goss/releases for release versions
VERSION=v0.4.8
curl -L "https://github.com/goss-org/goss/releases/download/${VERSION}/goss-linux-amd64" -o /usr/local/bin/goss
chmod +rx /usr/local/bin/goss
# (optional) dgoss docker wrapper (use 'master' for latest version)
VERSION=v0.4.8
curl -L "https://github.com/goss-org/goss/releases/download/${VERSION}/dgoss" -o /usr/local/bin/dgoss
chmod +rx /usr/local/bin/dgoss
Build it yourself
Alternatively, you can build it with goreleaser. To
build a binary, use gorelease build, and to only build for the same OS and
architecture as the machine you're building on, include the --single-target
flag. The --clean flag will clean up any existing builds, and --snapshot
will allow you to build against something other than a tag.
Here's an example:
$ goreleaser build --clean --single-target --snapshot
• skipping validate...
• cleaning distribution directory
• loading environment variables
• getting and validating git state
• ignoring errors because this is a snapshot error=git doesn't contain any tags - either add a tag or use --snapshot
• using tags previous=<unknown> current=v0.0.0
• pipe skipped or partially skipped reason=disabled during snapshot mode
• parsing tag
• setting defaults
• partial
• snapshotting
• building snapshot... version=0.0.1-next
• running before hooks
• running hook=go mod tidy
• ensuring distribution directory
• setting up metadata
• writing release metadata
• loading go mod information
• build prerequisites
• building binaries
• partial build match=target=linux_arm64_v8.0
• building paths=cmd/goss binaries=goss target=linux_arm64_v8.0
• took: 31s
• writing artifacts metadata
• build succeeded after 31s
• thanks for using GoReleaser!
$ tree dist
dist
├── artifacts.json
├── binaries_linux_arm64_v8.0
│ └── goss <- your binary
├── config.yaml
└── metadata.json
2 directories, 4 files