File PACKAGING_README.md of Package golang-github-prometheus-prometheus
# Packaging prometheus
0. Remove any previous `prometheus` directory, to start with a clean slate:
`rm -rf ./prometheus`
1. Adjust new prometheus package version in `_service`
2. Run `osc service disabledrun`
3. Remove the old `web_ui.tar.gz` tarball:
`rm -f ./web_ui.tar.gz`
4. Change into the newly created git clone (from the `tar_scm` service you ran in step 2):
`cd ./prometheus`
5. Run `make assets`, which will call `npm install` and `npm build` under the hood. So obviously you need to have npm installed locally...
6. Create a tarball with all node modules:
`tar cvzf ../web_ui.tar.gz web/ui/node_modules/ web/ui/package-lock.json web/ui/static/ web/ui/react-app/`
7. Proceed as usual, i.e. build locally or commit to OBS.