SHA256
1
0
forked from pool/grafana

Accepting request 706491 from home:jcavalheiro:monitoring

- Remove phantomjs dependency

OBS-URL: https://build.opensuse.org/request/show/706491
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/grafana?expand=0&rev=15
This commit is contained in:
Jan Fajerski
2019-05-30 14:48:25 +00:00
committed by Git OBS Bridge
parent 2cf3d5fe22
commit d302335b61
4 changed files with 11 additions and 14 deletions

View File

@@ -21,6 +21,8 @@ tar:
tar -xf ../$$tar && \
cd $$basename && \
sed -i 's/base\///' public/sass/base/_fonts.scss && \
# patch frontend html template to remove phantomjs dependant link \
sed -i 's/<a.*<i class=".*fa-camera">.*<\/a>//g' public/app/features/dashboard/components/ShareModal/template.html && \
yarn install --pure-lockfile && \
grunt release && \
cp -pr tmp/public . && \
@@ -28,6 +30,10 @@ tar:
cd .. && \
echo "Updating $$basename/tools $$basename/public in tarball..." && \
tar -rf ../$$tar $$basename/tools $$basename/public && \
# remove phantomjs binary \
tar -f ../$$tar --delete $$basename/tools/phantomjs/phantomjs && \
# remove go.mod and go.sum as we build exclusively using vendor deps \
tar -f ../$$tar --delete $$basename/go.mod $$basename/go.sum && \
cd .. && \
xz $$tar && \
rm -rf $$tmpdir