Skip to content

revert ubuntu based images back to single stage#523

Merged
mbroz2 merged 4 commits into
mainfrom
singleStage
Jul 21, 2023
Merged

revert ubuntu based images back to single stage#523
mbroz2 merged 4 commits into
mainfrom
singleStage

Conversation

@mbroz2

@mbroz2 mbroz2 commented Jul 21, 2023

Copy link
Copy Markdown
Contributor

Revert ubuntu based images back to single stage as requested by docker team for the official builds

@mbroz2 mbroz2 requested review from leochr, tjwatson and wraschke July 21, 2023 05:08
@mbroz2 mbroz2 self-assigned this Jul 21, 2023
Comment thread ga/23.0.0.6/full/Dockerfile.ubuntu.ibmjava8
@mbroz2 mbroz2 requested a review from tjwatson July 21, 2023 13:44
FROM websphere-liberty:23.0.0.6-kernel-java8-ibmjava AS installBundle
FROM websphere-liberty:kernel-java8-ibmjava

USER root

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How did this work before without USER root?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think that's a question for @leochr, and whether we need it for all the full images, including java8

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

USER root shouldn't be used, especially with single-stage Dockerfile as that'll switch the default user of Liberty full image. I believe it was added as part of multi-stage Dockerfiles changes, but I don't think it's needed to perform the operations in the full image.

Comment thread ga/23.0.0.6/kernel/Dockerfile.ubuntu.ibmjava8

@leochr leochr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@mbroz2 similar comment as OL about openssl installation. We should add it for the same reasons to the openjdk-based Dockerfiles of kernel images (for latest and 23.0.0.6). Thank you.

@mbroz2

mbroz2 commented Jul 21, 2023

Copy link
Copy Markdown
Contributor Author

@leochr udpated

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.

4 participants