prometheus/scripts
Jan Fajerski 2c3d45c88a
Replace vfsgen with embed for static web assets (#10220)
* remove vfsgen usages

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>

* web: use embed package for static assets

This requires go 1.16.

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>

* circleci: drop go generate in web/ui

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>

* Makefile: compress web assets before build

This commit add compression before (and decompression after) prometheus
is build. This ensures that gzipped assets are embeded in the prometheus
binary, if the builtinassets build tag is passed. If the build tag is
not passed this step is still executed but has no effect.
All this is executed in a subshell so that we can run the decompress
step even if the build step fails, but retain the exit code of promu.
This cleanup could also cover interrupts, but I left that out for now.

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2022-03-09 10:21:31 +01:00
..
compress_assets.sh Replace vfsgen with embed for static web assets (#10220) 2022-03-09 10:21:31 +01:00
errcheck_excludes.txt Changed error exclude 2021-06-11 12:29:03 -04:00
genproto.sh docs: Replace go get with go install for command installation (#9098) 2021-08-27 11:08:21 +02:00
sync_codemirror.sh codemirror-promql moved to prometheus org (#9651) 2021-11-03 12:46:58 +01:00
sync_repo_files.sh Create github workflows dir if not present 2021-09-11 14:08:07 -04:00
tools.go Add new Go build tags. 2021-08-27 10:24:14 +02:00