Accepting request 874474 from home:tserong:branches:server:monitoring

Update to version 7.4.2

OBS-URL: https://build.opensuse.org/request/show/874474
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/grafana?expand=0&rev=52
This commit is contained in:
Witek Bedyk
2021-02-26 14:07:38 +00:00
committed by Git OBS Bridge
parent 1c85b61d33
commit 6b0443b68b
10 changed files with 1195 additions and 21 deletions

12
README
View File

@@ -1,27 +1,25 @@
The tarball is generated via the OBS source service, but Grafana
needs to ship the compiled frontend assets as well, which have to
be built by running yarn and grunt inside the source tree (see
https://github.com/grafana/grafana#building-frontend-assets).
be built by running yarn inside the source tree (see
https://github.com/grafana/grafana/blob/master/contribute/developer-guide.md#frontend).
This can't be done at build time on OBS, because it involves
downloading and installing packages from the internet, so instead
we have a Makefile which does the following:
- Runs `osc service disabledrun` to get the latest source tarball
- Unpacks the tarball to a temporary directory
- Runs `yarn install --pure-lockfile && grunt release`
- Runs `yarn install --pure-lockfile && yarn build`
- Adds the generated "vendor" and "public" content to the tarball,
then compresses it with xz.
- The tarball can then be used by OBS to build an RPM.
In order for this to work you need to have npm >= 6, < 12, yarn and
grunt installed. To get set up, run:
In order for this to work you need to have npm >= 14 and yarn installed.
# zypper in npm12
# zypper in npm14
# zypper in obs-service-download_files obs-service-go_modules \
obs-service-obs_scm
# npm install -g yarn
# npm install -g grunt-cli
Then, to package a new release of Grafana, run `make` then `osc ci`
and you should be good.