Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
Complement: Add Synapse Workers build step
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Jan 21, 2021
1 parent 66a6190 commit a1a2056
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions complement/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,49 @@ steps:
- exit_status: 128
limit: 3

- command:
# Build the Synapse Workers docker image, which is located at:
# https://github.com/matrix-org/synapse/blob/master/docker/Docker-workers
# Note that this image is based on matrixdotorg/synapse:latest, which we're just
# pulling from docker hub
- wget https://github.com/matrix-org/synapse/archive/master.tar.gz
- tar -xzf master.tar.gz
- docker build -t matrixdotorg/synapse:workers -f synapse-master/docker/Dockerfile-workers synapse-master/
# Build the accompanying Synapse workers Complement docker container. This specifically
# sets up a Synapse worker setup for Complement, and is located at:
# https://github.com/matrix-org/complement/blob/master/dockerfiles/SynapseWorkers.Dockerfile.
- docker build -t complement-synapse -f dockerfiles/SynapseWorkers.Dockerfile dockerfiles/
# Run the tests!
#
# COMPLEMENT_CA: Enable Complement's certificate authority for authentication of
# federation requests
# COMPLEMENT_VERSION_CHECK_ITERATIONS: Starting up all the processes in this container
# can take a little while. Let's wait a bit longer than normal to decrease the
# chance of a startup timeout.
- COMPLEMENT_CA=true COMPLEMENT_VERSION_CHECK_ITERATIONS=500 COMPLEMENT_BASE_IMAGE=complement-synapse go test -v -tags synapse_blacklist ./tests
label: "\U0001F9EA Complement / Synapse Workers / :go: 1.15"
agents:
# Running every worker takes a beefy system
queue: "xlarge"
plugins:
- docker#v3.7.0:
# The dockerfile for this image is at https://github.com/matrix-org/complement/blob/master/dockerfiles/ComplementCIBuildkite.Dockerfile.
image: "matrixdotorg/complement:latest"
mount-buildkite-agent: false
# Complement needs to know if it is running under CI
environment:
- "CI=true"
publish: [ "8448:8448" ]
# Complement uses Docker so pass through the docker socket. This means Complement shares
# the host's Docker.
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
retry:
automatic:
- exit_status: 128
limit: 3


- command:
# Build the Dendrite for Complement docker image, which is located at:
# https://github.com/matrix-org/complement/blob/master/dockerfiles/Dendrite.Dockerfile.
Expand Down

0 comments on commit a1a2056

Please sign in to comment.