Commit Graph

8 Commits

Author SHA1 Message Date
Utsav Anand
372d120c34 Add root user for faas-cli invokation
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>
2020-06-29 16:58:27 +01:00
Alex Ellis (OpenFaaS Ltd)
38ecd73a60 Consolidate exec package with go-execute
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>
2019-12-07 20:05:54 +00:00
Alex Ellis
87193ed211 Update path for build
Path moved from /root/ to /usr/bin/ for container which is
pushed to the remote registry

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-09 17:29:47 +01:00
Ivana Yovcheva (VMware)
101bee35e1 Update CI to create a docker faas-cli image
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>
2018-05-20 19:19:30 +01:00
Minh-Quan TRAN
09c255a550 Stop build if gofmt returns files need to be re-formatted
Fix syntax for stack/stack.go and stack/stack_test.go

Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
2017-09-13 17:27:14 -07:00
Minh-Quan TRAN
76a9dd8dd8 Use go 1.9 in travis. Add gofmt check in CI. go fmt for sample/github_hmac/handler.go
Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
2017-09-13 17:27:14 -07:00
Alex Ellis
5b57b46bb1 add skipBuild for non-Node/Python images 2017-06-01 17:30:03 +01:00
Alex Ellis
3a01d9d207 Add build file 2017-04-14 19:16:09 +01:00