S2I image retains artifacts in /tmp/src for JBoss image

Solution Verified - Updated -

Issue

  • We see very large images after the S2I build in different technologies. As we analyzed them, we saw the source and dependency packages kept in the /tmp/src directory leading to 2GB extra space obtained by the final image.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 3
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content