We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a4a765 commit 3ca84e2Copy full SHA for 3ca84e2
1 file changed
opendrift_leeway_webgui/leeway/tasks.py
@@ -1,4 +1,5 @@
1
import logging
2
+import os
3
import subprocess
4
from datetime import timedelta
5
from pathlib import Path
@@ -27,6 +28,8 @@ def run_leeway_simulation(request_id):
27
28
params = [
29
"docker",
30
"run",
31
+ "--user",
32
+ f"{os.getuid()}:{os.getgid()}",
33
"-e",
34
f"COPERNICUSMARINE_SERVICE_USERNAME={settings.COPERNICUSMARINE_SERVICE_USERNAME}",
35
0 commit comments