You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add build_args also to ct_s2i_build_as_df function. (#368)
* Add build_args also to `ct_s2i_build_as_df` function.
We have to functions to build image. This one and `ct_test_app_dockerfile`
In case of --ulimit is defined in s2i_args variable we will add this parameter
to docker/podman command line.
An example:
$ s2i_args="pull-policy=never --incremental -e DEV_MODE=true -v /var/lib/psql --ulimit nofile=4096:4096"
$ echo "$s2i_args" | grep -q '\--ulimit' && build_args=$(echo "$s2i_args" | grep -o -e '\--ulimit[[:space:]]\S*\w=*')
$ echo $build_args
--ulimit nofile=4096:4096
The second example:
$ s2i_args="pull-policy=never --incremental -e DEV_MODE=true -v /var/lib/psql --ulimit nofile=4096:4096 -v /etc"
$ echo "$s2i_args" | grep -q '\--ulimit' && build_args=$(echo "$s2i_args" | grep -o -e '\--ulimit[[:space:]]\S*\w=*')
$ echo $build_args
--ulimit nofile=4096:4096
* Add wrapper for building images by podman with arguments
Signed-off-by: Petr "Stone" Hracek <[email protected]>
0 commit comments