TestContainers have Native.java class, where it gets JNA props from "jna.tmpdir" key. How to override value of that key? like:
jna.tmpdir=/data/builds/compose-tmp
java.io.tmpdir=/data/builds/compose-tmp
Part of code where it gets jna prop:
package com.sun.jna;
public final class Native implements Version {
...
static File getTempDir() throws IOException {
File jnatmp;
String prop = System.getProperty("jna.tmpdir");
if (prop != null) {
jnatmp = new File(prop);
jnatmp.mkdirs();
}
}