S2I image retains artifacts in /tmp/src
Issue
- We see very large images after the
S2Ibuild in different technologies. As we analyzed them, we saw the source and dependency packages kept in the/tmp/srcdirectory leading to 2GB extra space obtained by the final image.
Environment
- Red Hat OpenShift Container Platform 3.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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
