ci: use non-standard ports for DB and MinIO in e2e job
Some checks failed
CI / Unit & Component Tests (pull_request) Has been cancelled
CI / Backend Unit Tests (pull_request) Has been cancelled
CI / E2E Tests (pull_request) Has been cancelled
CI / Unit & Component Tests (push) Successful in 17m15s
CI / E2E Tests (push) Has been cancelled
CI / Backend Unit Tests (push) Has been cancelled
Some checks failed
CI / Unit & Component Tests (pull_request) Has been cancelled
CI / Backend Unit Tests (pull_request) Has been cancelled
CI / E2E Tests (pull_request) Has been cancelled
CI / Unit & Component Tests (push) Successful in 17m15s
CI / E2E Tests (push) Has been cancelled
CI / Backend Unit Tests (push) Has been cancelled
Avoids conflicts with any system services (PostgreSQL, MinIO) that may already occupy 5432/9000/9001 on the runner host. DB: 5433, MinIO API: 9100, MinIO console: 9101. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit was merged in pull request #6.
This commit is contained in:
@@ -73,9 +73,9 @@ jobs:
|
|||||||
MINIO_ROOT_USER: minio_admin
|
MINIO_ROOT_USER: minio_admin
|
||||||
MINIO_ROOT_PASSWORD: ci_minio_password
|
MINIO_ROOT_PASSWORD: ci_minio_password
|
||||||
MINIO_DEFAULT_BUCKETS: archive-documents
|
MINIO_DEFAULT_BUCKETS: archive-documents
|
||||||
PORT_DB: 5432
|
PORT_DB: 5433
|
||||||
PORT_MINIO_API: 9000
|
PORT_MINIO_API: 9100
|
||||||
PORT_MINIO_CONSOLE: 9001
|
PORT_MINIO_CONSOLE: 9101
|
||||||
PORT_BACKEND: 8080
|
PORT_BACKEND: 8080
|
||||||
PORT_FRONTEND: 3000
|
PORT_FRONTEND: 3000
|
||||||
|
|
||||||
@@ -83,15 +83,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# ── Infrastructure ──────────────────────────────────────────────────────
|
# ── Infrastructure ──────────────────────────────────────────────────────
|
||||||
- name: Cleanup leftover containers and free ports
|
- name: Cleanup leftover containers from previous runs
|
||||||
run: |
|
run: docker compose down --volumes --remove-orphans || true
|
||||||
docker compose down --volumes --remove-orphans || true
|
|
||||||
# Stop system-level PostgreSQL if present (host service can occupy port 5432)
|
|
||||||
sudo systemctl stop postgresql || true
|
|
||||||
# Kill any remaining container still binding to our ports
|
|
||||||
for port in 5432 9000 9001; do
|
|
||||||
docker ps -q --filter "publish=$port" | xargs -r docker stop || true
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Start DB and MinIO
|
- name: Start DB and MinIO
|
||||||
run: docker compose up -d db minio create-buckets
|
run: docker compose up -d db minio create-buckets
|
||||||
@@ -118,10 +111,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
java -jar backend/target/*.jar \
|
java -jar backend/target/*.jar \
|
||||||
--spring.profiles.active=e2e \
|
--spring.profiles.active=e2e \
|
||||||
--SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/family_archive_db \
|
--SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5433/family_archive_db \
|
||||||
--SPRING_DATASOURCE_USERNAME=archive_user \
|
--SPRING_DATASOURCE_USERNAME=archive_user \
|
||||||
--SPRING_DATASOURCE_PASSWORD=ci_db_password \
|
--SPRING_DATASOURCE_PASSWORD=ci_db_password \
|
||||||
--S3_ENDPOINT=http://localhost:9000 \
|
--S3_ENDPOINT=http://localhost:9100 \
|
||||||
--S3_ACCESS_KEY=minio_admin \
|
--S3_ACCESS_KEY=minio_admin \
|
||||||
--S3_SECRET_KEY=ci_minio_password \
|
--S3_SECRET_KEY=ci_minio_password \
|
||||||
--S3_BUCKET_NAME=archive-documents \
|
--S3_BUCKET_NAME=archive-documents \
|
||||||
|
|||||||
Reference in New Issue
Block a user