ceph/monitoring/ceph-mixin/jsonnet-build.sh
Arthur Outhenin-Chalandre 8ff1e6b399
monitoring: build jsonnet/jb only for testing
Build jsonnet and jb in the testso that we can build ceph without
internet access and still be able to run the test needed for monitoring
using jsonnet tools.

Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
2022-02-03 13:08:37 +01:00

11 lines
248 B
Bash
Executable File

#!/bin/sh -ex
JSONNET_VERSION="v0.18.0"
OUTPUT_DIR=${1:-$(pwd)}
git clone -b ${JSONNET_VERSION} --depth 1 https://github.com/google/go-jsonnet.git
cd go-jsonnet
go build ./cmd/jsonnet
go build ./cmd/jsonnetfmt
mv jsonnet jsonnetfmt ${OUTPUT_DIR}