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:
committed by
Git OBS Bridge
parent
2cf3d5fe22
commit
d302335b61
6
Makefile
6
Makefile
@@ -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
|
||||
|
Reference in New Issue
Block a user