[services] Add docker-compose overrides for tests
Summary:
Adds a new docker-compose config that works together with the existing one, and overrides some properties.
Using both configs together gives a test configuration (docker compose -f docker-compose.yml -f docker-compose.tests.yml [COMMAND]).
Most of the config is overriding the environment variables to correctly point to other service containers. The test-commons.env provides environment shared by all containers, that is normally proviced by Nix when outside docker.
Also, a few other properties needed to be overridden:
- Reset custom platform option - tests will compile using the machine native architecture
- Build Identity service with pre-generated OPAQUE keypair - D9508
- Run Blob service in "auto-deletion" mode - D9509
- Terraform inside commtest container needs to have custom localstack address
- Added dedicated volume for build artifacts to speed up builds when running tests multiple tiems in local environment
Depends on D9511
Test Plan:
Added dedicated command to run all tests in local docker:
yarn run-commtest-in-docker
Its equivalent is going to be used on Buildkite
Reviewers: varun, michal, kamil, jon
Reviewed By: michal
Subscribers: ashoat, tomek, wyilio
Differential Revision: https://phab.comm.dev/D9512