Changing the directory where the initdb is unpacked
pal548 opened this issue · 2 comments
pal548 commented
Hello, we're facing an issue running build with Jenkins, Cannot run program "/tmp/embedded-pg/PG-cb4c5b55707c145bb9aa5d2425d52f0c/bin/initdb": error=2, No such file or directory
Due to security reasons we can not write to /tmp
, so is it possible to change the directory where the initdb is unpacked?
tomix26 commented
Hi @pal548, thanks for the question. You can change the directory either by using the ot.epg.working-dir
system property or by passing additional configuration in form of EmbeddedPostgres.Builder
and setting the overrideWorkingDirectory
property to any path you want.
pal548 commented
It works, thanks a lot.