Skip to content

Commit eef7d57

Browse files
committed
make Tomcat use temporary directory under OpenGrok data root
1 parent f9216f5 commit eef7d57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker/start.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,10 @@ def main():
654654

655655
# Start Tomcat last.
656656
logger.info("Starting Tomcat")
657+
tomcat_temp = os.path.join(OPENGROK_DATA_ROOT, "tomcat_temp")
658+
os.makedirs(tomcat_temp, exist_ok=True)
659+
tomcat_env = os.environ
660+
tomcat_env["CATALINA_TMPDIR"] = tomcat_temp
657661
tomcat_popen = subprocess.Popen(
658662
[os.path.join(tomcat_root, "bin", "catalina.sh"), "run"]
659663
)

0 commit comments

Comments
 (0)