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

Restore the older native docker file using UBI minimal as base image #22617

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

cescoffier
Copy link
Member

@maxandersen as discussed.

@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/documentation area/platform Issues related to definition and interaction with Quarkus Platform labels Jan 4, 2022
@cescoffier
Copy link
Member Author

@maxandersen can you have a look?

Copy link
Member

@gsmet gsmet left a 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.

@gsmet gsmet merged commit f7b338a into quarkusio:main Jan 12, 2022
@quarkus-bot quarkus-bot bot added this to the 2.7 - main milestone Jan 12, 2022
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

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 :).

Copy link
Contributor

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?

@cescoffier cescoffier deleted the native-dockerfiles branch March 15, 2022 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/documentation area/platform Issues related to definition and interaction with Quarkus Platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants