Go to file
Witek Bedyk 19ad1a3209 Accepting request 786027 from home:ojkastl_buildservice:Branch_grafana
update to 6.6.2; use go_modules service to provide dependencies in vendor.tar.gz; BuildRequires go1.14 to build successfully; adjust Makefile and README to current requirements for 6.6.2 (npm12, not npm10);adjust Makefile to fully work with new file names

OBS-URL: https://build.opensuse.org/request/show/786027
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/grafana?expand=0&rev=30
2020-03-19 08:58:44 +00:00
_service Accepting request 786027 from home:ojkastl_buildservice:Branch_grafana 2020-03-19 08:58:44 +00:00
_servicedata Accepting request 786027 from home:ojkastl_buildservice:Branch_grafana 2020-03-19 08:58:44 +00:00
.gitattributes Accepting request 583279 from security:logging 2018-03-07 10:11:57 +00:00
.gitignore Accepting request 583279 from security:logging 2018-03-07 10:11:57 +00:00
grafana-6.6.2.tar.gz Accepting request 786027 from home:ojkastl_buildservice:Branch_grafana 2020-03-19 08:58:44 +00:00
grafana-rpmlintrc Accepting request 583279 from security:logging 2018-03-07 10:11:57 +00:00
grafana.changes Accepting request 786027 from home:ojkastl_buildservice:Branch_grafana 2020-03-19 08:58:44 +00:00
grafana.spec Accepting request 786027 from home:ojkastl_buildservice:Branch_grafana 2020-03-19 08:58:44 +00:00
Makefile Accepting request 786027 from home:ojkastl_buildservice:Branch_grafana 2020-03-19 08:58:44 +00:00
README Accepting request 786027 from home:ojkastl_buildservice:Branch_grafana 2020-03-19 08:58:44 +00:00
vendor.tar.gz Accepting request 786027 from home:ojkastl_buildservice:Branch_grafana 2020-03-19 08:58:44 +00:00

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).
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`
- 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:

  # zypper in npm12
  # 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.

Please direct any questions to Tim Serong <tserong@suse.com>