-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
dd5ff1d
to
fb49a6f
Compare
@@ -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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good!
UBI8 is EOL https://endoflife.date/rhel
Fixes #338