Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build_args also to ct_s2i_build_as_df function. #368

Merged
merged 5 commits into from
Apr 3, 2024

Conversation

phracek
Copy link
Member

@phracek phracek commented Mar 27, 2024

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.

This pull request blocks sclorg/s2i-nodejs-container#425.

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.

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek
Copy link
Member Author

phracek commented Mar 27, 2024

[test]

test-lib.sh Outdated Show resolved Hide resolved
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

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek
Copy link
Member Author

phracek commented Mar 28, 2024

[test]

Instead of use :centos7 tag

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek
Copy link
Member Author

phracek commented Mar 28, 2024

[test]

@phracek phracek force-pushed the fix_ulimit_for_building branch from dbc24ff to 47e20af Compare April 2, 2024 13:59
@phracek phracek force-pushed the fix_ulimit_for_building branch from 47e20af to 3f0dced Compare April 2, 2024 14:28
@phracek
Copy link
Member Author

phracek commented Apr 2, 2024

I have tested this updated PR with s2i-nodejs-container repo and it works

[test]

test-lib.sh Outdated Show resolved Hide resolved
@phracek
Copy link
Member Author

phracek commented Apr 2, 2024

[test]

@phracek phracek merged commit a957816 into master Apr 3, 2024
21 of 28 checks passed
@phracek phracek deleted the fix_ulimit_for_building branch April 3, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants