Browse code

Fix build issue in k8s dashboard

Change-Id: Ibcfcc8556b4effb3cda8203a68bdd3ea6c8c9840
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5022
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

DheerajSShetty authored on 2018/04/18 10:23:28
Showing 1 changed files
... ...
@@ -1,11 +1,11 @@
1 1
 Summary:        Kubernetes Dashboard UI
2 2
 Name:           kubernetes-dashboard
3 3
 Version:        1.8.3
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        Apache-2.0
6 6
 URL:            https://github.com/kubernetes/dashboard
7
-Source0:        %{name}-v%{version}.tar.gz
8
-%define sha1    kubernetes-dashboard=4003c4a6d3ef311fe72ac81fa7b1b92b7d6cc04e
7
+Source0:        %{name}-%{version}.tar.gz
8
+%define sha1    kubernetes-dashboard=d0e85648129f6b480773539dc2a83e04f85c76f1
9 9
 Group:          Development/Tools
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
... ...
@@ -28,10 +28,7 @@ Kubernetes Dashboard UI.
28 28
 
29 29
 %build
30 30
 export PATH=${PATH}:/usr/bin
31
-mkdir vendor/src
32
-cd vendor
33
-cp -rf {github.com/,golang.org/,gopkg.in/,k8s.io/} src/
34
-cd ../
31
+npm install --unsafe-perm
35 32
 #Remove the lines which strips the debuginfo. 
36 33
 sed -i '/https:\/\/golang.org\/cmd\/link\//,+2d' ./build/backend.js
37 34
 ./node_modules/.bin/gulp build
... ...
@@ -55,6 +52,8 @@ cp -p -r ./src/deploy/Dockerfile %{buildroot}/opt/k8dashboard/
55 55
 /opt/k8dashboard/public/*
56 56
 
57 57
 %changelog
58
+*    Tue Apr 17 2018 Dheeraj Shetty <dheerajs@vmware.com> 1.8.3-2
59
+-    Fix build issue
58 60
 *    Tue Mar 13 2018 Dheeraj Shetty <dheerajs@vmware.com> 1.8.3-1
59 61
 -    kubernetes-dashboard 1.8.3.
60 62
 *    Mon Sep 11 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.6.3-1