diff options
author | David Robertson <davidr@element.io> | 2022-04-07 12:43:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 11:43:31 +0000 |
commit | 3a7e97c7ade17a47517aadc0e9e305a1894119ac (patch) | |
tree | cf5c5f440c436a0a7ce44160c35f196a05c3ea53 /docker/start.py | |
parent | Support the v1 endpoint for `/relations`. (#12403) (diff) | |
download | synapse-3a7e97c7ade17a47517aadc0e9e305a1894119ac.tar.xz |
Poetry: use locked environment in Docker images (#12385)
Diffstat (limited to '')
-rwxr-xr-x | docker/start.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docker/start.py b/docker/start.py index ec9eeb49ae..ac62bbc8ba 100755 --- a/docker/start.py +++ b/docker/start.py @@ -108,7 +108,7 @@ def generate_config_from_template(config_dir, config_path, environ, ownership): # Hopefully we already have a signing key, but generate one if not. args = [ - "python", + sys.executable, "-m", "synapse.app.homeserver", "--config-path", @@ -158,7 +158,7 @@ def run_generate_config(environ, ownership): # generate the main config file, and a signing key. args = [ - "python", + sys.executable, "-m", "synapse.app.homeserver", "--server-name", @@ -175,7 +175,7 @@ def run_generate_config(environ, ownership): "--open-private-ports", ] # log("running %s" % (args, )) - os.execv("/usr/local/bin/python", args) + os.execv(sys.executable, args) def main(args, environ): @@ -254,12 +254,12 @@ running with 'migrate_config'. See the README for more details. log("Starting synapse with args " + " ".join(args)) - args = ["python"] + args + args = [sys.executable] + args if ownership is not None: args = ["gosu", ownership] + args os.execve("/usr/sbin/gosu", args, environ) else: - os.execve("/usr/local/bin/python", args, environ) + os.execve(sys.executable, args, environ) if __name__ == "__main__": |