Add Docker Makefile target

With this change, the manifests are built in a Docker container without
the need to install the pre-reqs like Golang, Jsonnet and etc.
This commit is contained in:
Carlos de Paula 2020-06-22 14:07:18 -03:00
parent 9a9e92588c
commit 956a160a62
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,9 @@ manifests: $(JSONNET_BIN) ## Builds the manifests
rm -rf manifests
./scripts/build.sh main.jsonnet $(JSONNET_BIN)
docker: ## Builds the manifests in a Docker container to avoid installing pre-requisites (Golang, Jsonnet, etc)
docker run -it --rm -v $(PWD):/work -w /work --rm golang make vendor && make
update_libs: $(JB_BINARY) ## Updates vendor libs. Require a regeneration of the manifests
$(JB_BINARY) update

View File

@ -38,7 +38,7 @@ The ingresses can use TLS with the default self-signed certificate from your Ing
Persistence for Prometheus and Grafana can be enabled in the `enablePersistence` section. Setting each to `true`, creates the volume PVCs. If no PV names are defined in `prometheusPV` and `grafanaPV`, the default StorageClass will be used to dynamically create the PVs The sizes can be adjusted in `prometheusSizePV` and `grafanaSizePV`.
Changing these parameters require a rebuild of the manifests with `make` followed by `make deploy`.
Changing these parameters require a rebuild of the manifests with `make` followed by `make deploy`. To avoid installing all pre-requisites like Golang, Jsonnet, Jsonnet-bundler, use the target `make docker` to build in a container.
## Quickstart (non K3s)