summary refs log tree commit diff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-07-01 16:42:49 +0100
committerGitHub <noreply@github.com>2022-07-01 15:42:49 +0000
commitc04e25789ee7fa5bd57864ad7687595f44996798 (patch)
tree174c95a90755cc4b8db4e35da36222833d278107 /docker/Dockerfile
parentcomplement.sh: Permit skipping docker build (#13143) (diff)
downloadsynapse-c04e25789ee7fa5bd57864ad7687595f44996798.tar.xz
Enable Complement testing in the 'Twisted Trunk' CI runs. (#13079)
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index c676f83775..22707ed142 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -62,7 +62,13 @@ WORKDIR /synapse
 # Copy just what we need to run `poetry export`...
 COPY pyproject.toml poetry.lock /synapse/
 
-RUN /root/.local/bin/poetry export --extras all -o /synapse/requirements.txt
+
+# If specified, we won't verify the hashes of dependencies.
+# This is only needed if the hashes of dependencies cannot be checked for some
+# reason, such as when a git repository is used directly as a dependency.
+ARG TEST_ONLY_SKIP_DEP_HASH_VERIFICATION
+
+RUN /root/.local/bin/poetry export --extras all -o /synapse/requirements.txt ${TEST_ONLY_SKIP_DEP_HASH_VERIFICATION:+--without-hashes}
 
 ###
 ### Stage 1: builder
@@ -85,6 +91,7 @@ RUN \
     openssl \
     rustc \
     zlib1g-dev \
+    git \
     && rm -rf /var/lib/apt/lists/*
 
 # To speed up rebuilds, install all of the dependencies before we copy over