Skip to content

Commit 3ca84e2

Browse files
committed
Fix permissions problem
1 parent 7a4a765 commit 3ca84e2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

opendrift_leeway_webgui/leeway/tasks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
import os
23
import subprocess
34
from datetime import timedelta
45
from pathlib import Path
@@ -27,6 +28,8 @@ def run_leeway_simulation(request_id):
2728
params = [
2829
"docker",
2930
"run",
31+
"--user",
32+
f"{os.getuid()}:{os.getgid()}",
3033
"-e",
3134
f"COPERNICUSMARINE_SERVICE_USERNAME={settings.COPERNICUSMARINE_SERVICE_USERNAME}",
3235
"-e",

0 commit comments

Comments
 (0)