whitesource / unified-agent-distribution

51 stars 48 forks source link

Specify tmp directory for Docker Image scan #39

Open LynAutumn opened 2 years ago

LynAutumn commented 2 years ago

For scanning large Docker images, we must change the temporary directory as its space is limited and our scan therefore fails. Documentation states that "[t]he Docker image is saved to the temporary directory defined in your environment and is deleted immediately after the scan." -> so how can we change this said "temporary directory" or can it only use "/tmp"?

LenaKleyner commented 2 years ago

Hi @LynAutumn, currently there is no option to control the temporary directory location via the Unified Agent's settings however it can be achieved by tweaking the JVM -Djava.io.tmpdir parameter. A usage example: java -Djava.io.tmpdir=/path/to/tmpdir -jar unified-agent.jar -c <config-file> -d <scan-dir>