Skip to content

Commit

Permalink
Revert to launching as root
Browse files Browse the repository at this point in the history
  • Loading branch information
remlapmot committed Sep 25, 2024
1 parent 71617dd commit 1520e30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opensafely/rstudio.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ def main(directory, name, port):
]

debug("docker: " + " ".join(docker_args))
ps = utils.run_docker(docker_args, "rstudio", "", interactive=True, user="1000:1000")
ps = utils.run_docker(docker_args, "rstudio", "", interactive=True, user="0:0")
# we want to exit with the same code that rstudio-server did
return ps.returncode
2 changes: 1 addition & 1 deletion tests/test_rstudio.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_rstudio(run):
"--init",
"--label=opensafely",
"--interactive",
"--user=1000:1000",
"--user=0:0",
f"--volume={pathlib.Path.cwd()}://workspace",
"--platform=linux/amd64",
"-p=8787:8787",
Expand Down

0 comments on commit 1520e30

Please sign in to comment.