-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(openfaas): fix issues with openfaas builds
Closes #298
- Loading branch information
Showing
4 changed files
with
70 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (C) 2018 Garden Technologies, Inc. <[email protected]> | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
import { BinaryCmd } from "../../util/ext-tools" | ||
|
||
export const faasCli = new BinaryCmd({ | ||
name: "faas-cli", | ||
specs: { | ||
darwin: { | ||
url: "https://github.com/openfaas/faas-cli/releases/download/0.7.3/faas-cli-darwin", | ||
}, | ||
linux: { | ||
url: "https://github.com/openfaas/faas-cli/releases/download/0.7.3/faas-cli", | ||
}, | ||
win32: { | ||
url: "https://github.com/openfaas/faas-cli/releases/download/0.7.3/faas-cli.exe", | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
module: | ||
description: Base image used for building openfaas modules | ||
description: Used for pre-fetching templates, before building containers | ||
name: builder | ||
type: generic | ||
build: | ||
command: ["faas-cli", "template", "pull"] | ||
command: [ | ||
"rm", "-rf", "templates", | ||
"&&", | ||
"git", "clone", "https://github.com/openfaas/templates.git", | ||
"&&", | ||
"cd templates", | ||
"&&", | ||
"git", "checkout", "85fca87", | ||
] |