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

Update to redhat/ubi9 for UBI based images #342

Merged
merged 7 commits into from
Jan 7, 2025
Merged

Update to redhat/ubi9 for UBI based images #342

merged 7 commits into from
Jan 7, 2025

Conversation

julienp
Copy link
Contributor

@julienp julienp commented Dec 16, 2024

UBI8 is EOL https://endoflife.date/rhel

Fixes #338

@julienp julienp marked this pull request as ready for review December 17, 2024 10:55
@julienp julienp requested a review from a team as a code owner December 17, 2024 10:55
@@ -399,6 +399,10 @@ func TestEnvironment(t *testing.T) {
if imageVariant == "pulumi" {
expectedPath += ":/root/.pulumi/bin"
}
// When running in bash, the UBI images include /root/.local/bin:/root/bin:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this intentional, or de we need to exclude these? Does this pull in any additional binaries for the user that might not be expected?

Copy link
Contributor Author

@julienp julienp Jan 6, 2025

Choose a reason for hiding this comment

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

This is a change in the UBI9 images, the stock bashrc now includes:

# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
    PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH

This seems OK to me. We have tests for the binaries we provide to ensure they are at the path we expect, and there are no binaries in these folders in our images. Users would have to explicitly install something, which I think makes this ok.

I'd also rather not make the images behave too differently from stock UBI9 for users by changing the default bashrc.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good!

@pulumi pulumi deleted a comment Dec 21, 2024
@julienp julienp enabled auto-merge (squash) January 7, 2025 08:14
@julienp julienp merged commit 8d93111 into main Jan 7, 2025
51 checks passed
@julienp julienp deleted the julienp/ubi-9 branch January 7, 2025 09:02
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.

Update to redhat ubi9
2 participants