@@ -35,25 +35,25 @@ if [[ -z "$COMPLEMENT_DIR" ]]; then
35
35
echo " Checkout available at 'complement-master'"
36
36
fi
37
37
38
+ # Build the base Synapse image from the local checkout
39
+ docker build -t matrixdotorg/synapse -f " docker/Dockerfile" .
40
+
38
41
# If we're using workers, modify the docker files slightly.
39
42
if [[ -n " $WORKERS " ]]; then
40
- BASE_IMAGE=matrixdotorg/synapse-workers
41
- BASE_DOCKERFILE=docker/Dockerfile-workers
43
+ # Build the workers docker image (from the base Synapse image).
44
+ docker build -t matrixdotorg/synapse-workers -f " docker/Dockerfile-workers" .
45
+
42
46
export COMPLEMENT_BASE_IMAGE=complement-synapse-workers
43
47
COMPLEMENT_DOCKERFILE=SynapseWorkers.Dockerfile
44
48
# And provide some more configuration to complement.
45
49
export COMPLEMENT_CA=true
46
50
export COMPLEMENT_VERSION_CHECK_ITERATIONS=500
47
51
else
48
- BASE_IMAGE=matrixdotorg/synapse
49
- BASE_DOCKERFILE=docker/Dockerfile
50
52
export COMPLEMENT_BASE_IMAGE=complement-synapse
51
53
COMPLEMENT_DOCKERFILE=Synapse.Dockerfile
52
54
fi
53
55
54
- # Build the base Synapse image from the local checkout
55
- docker build -t $BASE_IMAGE -f " $BASE_DOCKERFILE " .
56
- # Build the Synapse monolith image from Complement, based on the above image we just built
56
+ # Build the Complement image from the Synapse image we just built.
57
57
docker build -t $COMPLEMENT_BASE_IMAGE -f " $COMPLEMENT_DIR /dockerfiles/$COMPLEMENT_DOCKERFILE " " $COMPLEMENT_DIR /dockerfiles"
58
58
59
59
cd " $COMPLEMENT_DIR "
0 commit comments