mirror of
https://github.com/openfaas/faas.git
synced 2025-06-11 17:56:47 +00:00
Using functions.json instead of store-arch.json
Signed-off-by: Rishabh Gupta <r.g.gupta@outlook.com>
This commit is contained in:
parent
832d174c37
commit
7b09992565
@ -43,7 +43,6 @@ RUN chown -R app:app ./
|
|||||||
|
|
||||||
USER app
|
USER app
|
||||||
|
|
||||||
# Patch to ARM64 store
|
RUN sed -ie s/x86_64/arm64.json/g /home/app/assets/script/funcstore.js
|
||||||
RUN sed -ie s/store.json/store-arm64.json/g /home/app/assets/script/funcstore.js
|
|
||||||
|
|
||||||
CMD ["./gateway"]
|
CMD ["./gateway"]
|
||||||
|
@ -55,7 +55,7 @@ ENV https_proxy ""
|
|||||||
COPY --from=build /go/src/github.com/openfaas/faas/gateway/gateway .
|
COPY --from=build /go/src/github.com/openfaas/faas/gateway/gateway .
|
||||||
|
|
||||||
COPY assets assets
|
COPY assets assets
|
||||||
RUN sed -ie s/store.json/store-armhf.json/g /home/app/assets/script/funcstore.js
|
RUN sed -ie s/x86_64/armhf/g /home/app/assets/script/funcstore.js
|
||||||
RUN chown -R app:app ./
|
RUN chown -R app:app ./
|
||||||
USER app
|
USER app
|
||||||
|
|
||||||
|
@ -20,7 +20,8 @@ funcStoreModule.component('funcStore', {
|
|||||||
controller: ['FuncStoreService', '$mdDialog', '$window', function FuncStoreController(FuncStoreService, $mdDialog, $window) {
|
controller: ['FuncStoreService', '$mdDialog', '$window', function FuncStoreController(FuncStoreService, $mdDialog, $window) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
this.storeUrl = 'https://raw.githubusercontent.com/openfaas/store/master/store.json';
|
this.arch = "x86_64";
|
||||||
|
this.storeUrl = 'https://raw.githubusercontent.com/openfaas/store/master/functions.json';
|
||||||
this.selectedFunc = null;
|
this.selectedFunc = null;
|
||||||
this.functions = [];
|
this.functions = [];
|
||||||
this.message = '';
|
this.message = '';
|
||||||
@ -47,7 +48,9 @@ funcStoreModule.component('funcStore', {
|
|||||||
FuncStoreService.fetchStore(self.storeUrl)
|
FuncStoreService.fetchStore(self.storeUrl)
|
||||||
.then(function (data) {
|
.then(function (data) {
|
||||||
self.loading = false;
|
self.loading = false;
|
||||||
self.functions = data;
|
self.functions = data.functions
|
||||||
|
.filter(f => f.images.hasOwnProperty(self.arch))
|
||||||
|
.map(f => Object.assign(f, { "image": f["images"][self.arch] }));
|
||||||
})
|
})
|
||||||
.catch(function (err) {
|
.catch(function (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user