Usage of S2I_DELETE_SOURCE on Source to Image build with OpenJDK images

Solution Verified - Updated -

Issue

  • How to clean the /tmp/src and the spare jar on S2I process using OpenJDK builder images?

  • The S2I builds using OpenJDK builder images cleans-up/remove the /tmp/src directory.

  • How to preserve the source and its associated Java dependencies while performing S2I builds using OpenJDK builder images?

Environment

  • OpenJDK 8, 11, 17, 21
  • Red hat OpenShift Container Platform (OCP)
    • 4.x

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