S2I image retains artifacts in /tmp/src

Solution In Progress - 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 3.x and 4.x
  • Source to Image build Strategy (S2I)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In