* Go is upgraded to 1.18 for builds
* Alpine Linux is upgraded for the runtime container
* The deploy command gains a timeout for use with faaasd
which is synchronous and would time-out otherwise.
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
build_redist runs cross-compilations, which really need to be
part of the main build, so this is being moved up in the
ordering to prevent issues like #825
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
**What**
- Initialize the go.mod from the existing Gopkg.lock
- Update to a more go module friendly version of docker/docker
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This patch consolidates the exec package for docker build so that
it uses the the go-execute package used in other OpenFaaS projects.
The aim is to allow for conditional printing of stdio whilst also
being able to capture the output.
In a future PR a CLI animation can replace the Docker build, which
will be default, but optional. If an error is found then the
result of the build will be buffered and available to print to the
user.
This change stops Docker from printing progress bars when
downloading layers. Instead a line is printed when pulling and
when a layer is complete.
* Tested for faas-cli build with multiple functions using the
sample stack.yml and --parallel=1/4.
* Adds StreamStdio option and updates Docker build version to use
Go 1.12.
* Add complete build time to output
* Add duration of each build to output
* Add --quiet flag for faas-cli build
* The --quiet flag hides output from Docker during the execution
of the docker build.
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
- tests pass and ran some exploratory tested with
build_redist.sh and binaries used on MacOS, Arch Linux (x86_64)
and Raspbian (armhf).
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Uses utility script which is multi-arch meaning we can use
one Dockerfile for varying platforms.
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
With this change, the OpenFaaS CLI tool will be able to pull function
templates from within the Docker container.
Signed-off-by: James Smith <jamessmithsmusic@gmail.com>
This commit updates all imports and references in documentation/scripts to
point at the new github OpenFaaS org.
Signed-off-by: John McCabe <john@johnmccabe.net>
This commit fixes the importpath to fully identify the `commands`
package so that the GitCommit var can be populated at build time.
This will fix binaries build by the `build_redist.sh` script, with the
Brew built release requiring the same update in the homebrew-core
formula (ie bumping the version on the command line isn't sufficient
this time).
Signed-off-by: John McCabe <john@johnmccabe.net>
* Reinstate Windows build
* Mention Dockerfile --lang type in help
* Validate that "lang" is passed in YAML
* Add vendoring packages for Windows
Signed-off-by: Alex Ellis <alexellis2@gmail.com>