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

Single layer extension container #141

Merged
merged 2 commits into from
May 30, 2023
Merged

Conversation

praveenkumar
Copy link
Member

@praveenkumar praveenkumar commented May 25, 2023

Fixes #138

gbraad
gbraad previously requested changes May 25, 2023
Copy link
Contributor

@gbraad gbraad left a comment

Choose a reason for hiding this comment

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

This does not solve the request where they expect a single layer
#138

You will have:

COPY --from=builder /opt/app-root/src/...  /extension
COPY --from=builder /opt/app-root/src/dist /extension/dist

So still two layers.

This needs a modifcation to the build process so only a single
folder is needed. Why not doing the folder setup in the builder
part, so that:

COPY --from=builder /opt/app-root/src/dist/extension /extension

would suffice.

Note: At the moment a low(er) priority.

@gbraad gbraad linked an issue May 25, 2023 that may be closed by this pull request
@gbraad
Copy link
Contributor

gbraad commented May 30, 2023

@evidolob @anjannath I addressed the issues of Praveen's PR. Please have a look

@gbraad gbraad requested review from evidolob and anjannath May 30, 2023 07:03
@gbraad gbraad changed the title Dockerfile: Remove extra layer when copying content from builder Single layer extension container May 30, 2023
@benoitf
Copy link
Contributor

benoitf commented May 30, 2023

thank you guys 🎉

@gbraad gbraad dismissed their stale review May 30, 2023 07:42

Addressed issues

@gbraad gbraad merged commit 7d6aa22 into crc-org:main May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

OCI image of the extension has too many layers
4 participants