Adds a new target stage for faas-cli's Docker image having a root user that can be used with
CI/CD environments like Google Cloud Build.
Also add a [Breaking Change] that switches from using `CMD` in the Dockerfile to `ENTRYPOINT`
which allows overriding commands in CI/CD environments.
Signed-off-by: Utsav Anand <utsavanand2@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>
With this change the CI releases a tagged Docker image named
`faas-cli` after every GitHub release/tag and pushes the image
to a docker reistry.
Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>