-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Restore the older native docker file using UBI minimal as base image #22617
Conversation
@maxandersen can you have a look? |
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 makes perfect sense so let's get this in as things are piling up like crazy and CR1 is next week.
@@ -497,6 +497,23 @@ And finally, run it with: | |||
docker run -i --rm -p 8080:8080 quarkus-quickstart/getting-started | |||
---- | |||
|
|||
=== Manually using the minimal base image |
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.
According to this file[1] content looks differently. Is this 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.
Could you be more explicit? I have no idea what you're complaining about :).
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.
Dockerfile from docs/src/main/asciidoc/building-native-image.adoc
(lines 506-512):
FROM <...>
WORKDIR /work/
COPY target/*-runner /work/application
RUN chmod 775 /work
EXPOSE 8080
CMD <...>
Dockerfile from docs/src/main/asciidoc/quarkus-runtime-base-image.adoc
(lines 115-125):
FROM <...>
WORKDIR /work/
RUN chown 1001 /work \
&& chmod "g+rwX" /work \
&& chown 1001:root /work
COPY --chown=1001:root target/*-runner /work/application
EXPOSE 8080
USER 1001
CMD <...>
It looks like these commands target the same case, yet they are different. What I am curious about, is if it intentional, or not?
@maxandersen as discussed.