-
Notifications
You must be signed in to change notification settings - Fork 3
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
Switch async images to UBI #11
Conversation
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.
@tomgeorge could you please clarify how the PR was tested, also wondering it there are any issues with the following config / scripts after the UBI switch:
dockerfiles/agent/Dockerfile
Outdated
# Add user that will be able to start watcher binary but nothing more | ||
# the result will be propagated then into scratch image | ||
# See https://stackoverflow.com/a/55757473/12429735RUN |
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.
probably the comment should be udpated
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.
AFAIK ubi and non-ubi are separated Dockerfiles
like Dockerfile with alpine and Dockerfile.rhel with ubi8 from
@benoitf we do not plan to have non-ubi dockerfiles |
@ibuziuk why ? all images of che are not ubi based by default |
@benoitf I believe it is up to plugin / component developers to decide ;-) |
it's a diff of more than 200MB per image for nothing |
@tomgeorge maybe it is possible to use - https://catalog.redhat.com/software/containers/ubi8/ubi-minimal/5c359a62bed8bd75a2c3fba8 |
Signed-off-by: Tom George <[email protected]>
I have working
|
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.
@tomgeorge based on the discussion with @benoitf let's have separate ubi and alpine images for the product and project respectively
Added the alpine Dockerfiles back and named the ubi dockerfiles |
@benoitf could you please review? |
dockerfiles/agent/ubi.Dockerfile
Outdated
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
|
||
FROM registry.redhat.io/ubi8/ubi-minimal:8.3 |
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.
Please add a comment line
# https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/ubi8-minimal
Helping to see new images
Also, please stick to a given version like FROM registry.access.redhat.com/ubi8-minimal:8.3-230
dockerfiles/agent/ubi.Dockerfile
Outdated
@@ -0,0 +1,67 @@ | |||
#!/bin/bash |
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.
I think it's a copy/error typo of the header (Dockerfile is not a bash script)
# See https://stackoverflow.com/a/55757473/12429735RUN | ||
# | ||
RUN microdnf update -y \ | ||
&& microdnf install -y \ |
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.
please follow convention of && at end of lines or beginning of lines
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.
I do have && at beginning of lines, it's the same as dockerfiles/agent/Dockerfile
?
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.
Ok maybe I read the only wrong line
&& mkdir /var/run/sshd && \
dockerfiles/storage/ubi.Dockerfile
Outdated
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
|
||
FROM registry.redhat.io/ubi8/ubi-minimal:8.3 |
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.
same remarks than for the other Dockerfile (bash header, comment to see new updates and stick to a fine grain version tag)
Signed-off-by: Tom George <[email protected]>
Switch the alpine images to UBI, #10
Signed-off-by: Tom George [email protected]