Skip to content

Commit 11e4bf1

Browse files
authored
feat(rootfs/Dockerfile): add goss tool for validating server configs (#285)
See https://github.com/aelsabbahy/goss/releases/tag/v0.3.16
1 parent 4062320 commit 11e4bf1

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ creating [issues][] and submitting [pull requests][].
1818
* [ginkgo][]: BDD testing framework for Go
1919
* [go-bindata][]: converts any file into Go source code
2020
* [golangci-lint][]: concurrent runner for Go linting tools
21+
* [goss][]: YAML-based tool for validating a server's configuration
2122
* [gox][]: simple Go cross-compiling tool
2223
* [helm][]: Kubernetes package manager
2324
* [jq][]: command-line JSON processor
@@ -97,6 +98,7 @@ You will be prompted to confirm again before any tag or release is written to Gi
9798
[Go]: https://golang.org/
9899
[go-dev index URL]: https://mcr.microsoft.com/v2/oss/azcu/go-dev/tags/list
99100
[golangci-lint]: https://github.com/golangci/golangci-lint
101+
[goss]: https://github.com/aelsabbahy/goss
100102
[gox]: https://github.com/mitchellh/gox
101103
[helm]: https://github.com/kubernetes/helm
102104
[issues]: https://github.com/deis/docker-go-dev/issues

rootfs/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ENV ANSIBLE_VERSION=2.10.3 \
99
ETCDCTL_VERSION=v3.1.8 \
1010
GO_VERSION=1.16.3 \
1111
GOLANGCI_LINT_VERSION=v1.39.0 \
12+
GOSS_VERSION=v0.3.16 \
1213
HELM_VERSION=3.5.4 \
1314
KUBECTL_VERSION=v1.18.18 \
1415
PACKER_VERSION=1.6.1 \
@@ -102,6 +103,10 @@ RUN \
102103
&& unzip /tmp/packer.zip -d /usr/local/bin \
103104
&& curl -o /usr/local/bin/shfmt -sSL https://github.com/mvdan/sh/releases/download/v{SHFMT_VERSION}/shfmt_v{SHFMT_VERSION}_linux_amd64 \
104105
&& chmod +x /usr/local/bin/shfmt \
106+
&& curl -L "https://github.com/aelsabbahy/goss/releases/download/${GOSS_VERSION}/goss-linux-amd64" -o /usr/local/bin/goss \
107+
&& chmod +rx /usr/local/bin/goss \
108+
&& curl -L "https://github.com/aelsabbahy/goss/releases/download/${GOSS_VERSION}/dgoss" -o /usr/local/bin/dgoss \
109+
&& chmod +rx /usr/local/bin/dgoss \
105110
&& pip3 install --disable-pip-version-check --no-cache-dir --upgrade pip \
106111
&& pip3 install --disable-pip-version-check --no-cache-dir azure-cli==${AZCLI_VERSION} PyJWT==${PYJWT_VERSION} shyaml ansible==${ANSIBLE_VERSION} pywinrm==${PYWINRM_VERSION} \
107112
&& apt-get purge --auto-remove -y libffi-dev python3-dev \

0 commit comments

Comments
 (0)