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

Container image build fixes: #229

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

kirkrodrigues
Copy link
Member

  • Error on failure to install any package into the container image.
  • Don't use an empty array as a command (for older Bash versions).

Description

Recent failures to install packages in the CentOS container were not being caught until we tried to build CLP in the container since the script which calls the package install script didn't exit on error. In addition, mongoc and mongocxx were failing to install in the CentOS container since it uses an older version of bash which doesn't support expanding an empty array (it treats it as an unbound variable).

This PR adds error checks in the scripts which call the package install scripts and fixes the mongoc/cxx install scripts to support the older version of bash.

Validation performed

  • Validated that the mongo/cxx install failures were caught when the install scripts were configured to exit on error.
  • Validated workflows succeeded.

- Error on failure to install any package into the container image.
- Don't use an empty array as a command (for older Bash versions).
Copy link
Member

@LinZhihao-723 LinZhihao-723 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm (commit message checked)

@kirkrodrigues kirkrodrigues merged commit 4dd351c into y-scope:main Jan 12, 2024
6 checks passed
@kirkrodrigues kirkrodrigues deleted the container-build-fix branch January 12, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants