fission/builder image, log collection improvement in builder (#397)
Create a container image with the buidler, so we can avoid copying the builder binary into the env container during the env container build. Gather both stdout and stderr of a build into the logs. * Add Dockerfile for builder + update release scripts * Improve logging of buildermgr and builder * Add support for environment-scoped buildcmd * Fix fork/exec wd when package is a file * Update tests to also include builder image * Add logging to builder's fork/exec
This commit is contained in:
committed by
Soam Vasani
parent
da820186f0
commit
b2678783b6
+21
-1
@@ -93,6 +93,24 @@ push_fetcher_image() {
|
||||
docker push $tag
|
||||
}
|
||||
|
||||
build_builder_image() {
|
||||
version=$1
|
||||
tag=fission/builder:$version
|
||||
|
||||
pushd $DIR/builder/cmd
|
||||
|
||||
./build.sh
|
||||
docker build -t $tag .
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
push_builder_image() {
|
||||
version=$1
|
||||
tag=fission/builder:$version
|
||||
docker push $tag
|
||||
}
|
||||
|
||||
build_and_push_env_image() {
|
||||
version=$1
|
||||
envdir=$2
|
||||
@@ -172,13 +190,15 @@ build_all() {
|
||||
|
||||
build_fission_bundle_image $version
|
||||
build_fetcher_image $version
|
||||
build_builder_image $version
|
||||
build_all_cli
|
||||
build_charts $version
|
||||
}
|
||||
|
||||
push_all() {
|
||||
push_fission_bundle_image $version
|
||||
push_fetcher_image $version
|
||||
push_fetcher_image $version
|
||||
push_builder_image $version
|
||||
}
|
||||
|
||||
tag_and_release() {
|
||||
|
||||
Reference in New Issue
Block a user