Skip to content

Commit

Permalink
run dep containers in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jokester committed Jun 9, 2024
1 parent d1c1c0b commit 5d720cb
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker-compose -f tests/deps.yaml up -d
- uses: actions/setup-python@v5
with:
python-version: '3.10'
Expand Down
50 changes: 50 additions & 0 deletions tests/deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# genearted from moeflow-deploy repo like
# docker-compose -f docker-compose.yml -f docker-compose.dev.yml config moeflow-mongodb moeflow-rabbitmq
name: moeflow-backend-test-deps
services:
moeflow-mongodb:
environment:
MONGO_INITDB_ROOT_PASSWORD: CHANGE_ME
MONGO_INITDB_ROOT_USERNAME: moeflow
healthcheck:
test:
- CMD
- mongo
- --eval
- db.adminCommand('ping')
timeout: 5s
interval: 15s
start_period: 10s
image: docker.io/mongo:4.4.1
ports:
- mode: ingress
host_ip: 127.0.0.1
target: 27017
published: "27017"
protocol: tcp
restart: unless-stopped
moeflow-rabbitmq:
environment:
RABBITMQ_DEFAULT_PASS: CHANGE_ME
RABBITMQ_DEFAULT_USER: moeflow
RABBITMQ_DEFAULT_VHOST: moeflow
healthcheck:
test:
- CMD-SHELL
- rabbitmq-diagnostics -q ping
timeout: 5s
interval: 5s
start_period: 10s
image: docker.io/rabbitmq:3.8.9-management
ports:
- mode: ingress
host_ip: 127.0.0.1
target: 5672
published: "5672"
protocol: tcp
- mode: ingress
host_ip: 127.0.0.1
target: 15672
published: "15672"
protocol: tcp
restart: unless-stopped

0 comments on commit 5d720cb

Please sign in to comment.