Skip to content

Commit

Permalink
Add jb
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunet committed Aug 6, 2020
1 parent 6d35242 commit c7d593b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]
## [v0.3.1] - 2020-08-06
### Added
- Add `jb` (jsonnet-bundler)

### Changed
- Accept `jsonnet` version as Docker build argument

Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ FROM alpine

ARG HELM2_VERSION=2.15.2
ARG HELM_VERSION=3.2.2
ARG JB_VERSION=0.4.0
ARG KUBEVAL_VERSION=0.15.0
ARG KUSTOMIZE_VERSION=3.6.1

Expand All @@ -25,6 +26,8 @@ RUN apk add --no-cache --virtual .builddeps \
| tar -zxvf - -C /usr/local/bin --strip-component=1 linux-amd64/helm \
&& curl -sSfL "https://get.helm.sh/helm-v${HELM2_VERSION}-linux-amd64.tar.gz" \
| tar -zxvf - -C /usr/local/bin --transform='s#^linux-amd64/helm$#helm2#' linux-amd64/helm \
&& curl -sSfL "https://github.com/jsonnet-bundler/jsonnet-bundler/releases/download/v${JB_VERSION}/jb-linux-amd64" -o /usr/local/bin/jb \
&& chmod +x /usr/local/bin/jb \
&& curl -sSfL "https://github.com/instrumenta/kubeval/releases/download/${KUBEVAL_VERSION}/kubeval-linux-amd64.tar.gz" \
| tar -zxvf - -C /usr/local/bin kubeval \
&& curl -sSfL "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz" \
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ version.BuildInfo{Version:"v3.2.2", GitCommit:"a6ea66349ae3015618da4f547677a14b9
$ docker run --rm paytmcanada/kubernetes-ci:v0.3.1 helm2 version --client
Client: &version.Version{SemVer:"v2.15.2", GitCommit:"8dce272473e5f2a7bf58ce79bb5c3691db54c96b", GitTreeState:"clean"}

$ docker run --rm paytmcanada/kubernetes-ci:v0.3.1 jb --version
v0.4.0

$ docker run --rm paytmcanada/kubernetes-ci:v0.3.1 jsonnet --version
Jsonnet commandline interpreter v0.16.0

Expand Down
4 changes: 4 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -euo pipefail

readonly HELM2_VERSION=2.15.2
readonly HELM_VERSION=3.2.2
readonly JB_VERSION=0.4.0
readonly JSONNET_VERSION=0.16.0
readonly KUBEVAL_VERSION=0.15.0
readonly KUSTOMIZE_VERSION=3.6.1
Expand All @@ -16,6 +17,9 @@ printf ">>> Checking helm version is %s...\n" "${HELM_VERSION}"
printf ">>> Checking helm2 version is %s...\n" "${HELM2_VERSION}"
[[ "$(helm2 version --client --template '{{.Client.SemVer}}')" == "v${HELM2_VERSION}" ]]

printf ">>> Checking jb version is %s...\n" "${JB_VERSION}"
[[ "$(jb --version 2>&1)" == "v${JB_VERSION}" ]]

printf ">>> Checking jsonnet version is %s...\n" "${JSONNET_VERSION}"
[[ "$(jsonnet --version)" == "Jsonnet commandline interpreter v${JSONNET_VERSION}" ]]

Expand Down

0 comments on commit c7d593b

Please sign in to comment.