Fix docker-compose to use pre-built images for integration tests

The compose file had build: sections which caused docker-compose to build
its own tagged images (pulse-test-pulse-test) instead of using the
pre-built images (pulse:test, pulse-mock-github:test).

Changed to use image: tags to reference the pre-built images. This ensures
the PULSE_AUTH_USER and PULSE_AUTH_PASS environment variables are properly
applied to the running containers.

Related to #695
This commit is contained in:
rcourtman 2025-11-12 09:53:49 +00:00
parent db35ad7c88
commit 3b80ec9e84

View file

@ -3,9 +3,7 @@ version: '3.8'
services: services:
# Mock GitHub API server for controlled testing # Mock GitHub API server for controlled testing
mock-github: mock-github:
build: image: pulse-mock-github:test
context: ./mock-github-server
dockerfile: Dockerfile
container_name: pulse-mock-github container_name: pulse-mock-github
ports: ports:
- "8080:8080" - "8080:8080"
@ -27,9 +25,7 @@ services:
# Pulse server under test # Pulse server under test
pulse-test: pulse-test:
build: image: pulse:test
context: ../../
dockerfile: Dockerfile
container_name: pulse-test-server container_name: pulse-test-server
ports: ports:
- "7655:7655" - "7655:7655"