-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from Clariteia/0.0.1
0.0.1
- Loading branch information
Showing
102 changed files
with
5,091 additions
and
1,630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Start System | ||
run: make up | ||
|
||
- name: Run Integration Tests | ||
run: make integration-tests | ||
|
||
- name: Stop System | ||
run: make down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
on: | ||
push: | ||
paths: | ||
- 'microservices/order/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_DB: order_db | ||
POSTGRES_USER: minos | ||
POSTGRES_PASSWORD: min0s | ||
ports: | ||
- 5432:5432 | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
zookeeper: | ||
image: wurstmeister/zookeeper:latest | ||
ports: | ||
- 2181:2181 | ||
|
||
kafka: | ||
image: wurstmeister/kafka:latest | ||
ports: | ||
- 9092:9092 | ||
env: | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_ADVERTISED_HOST_NAME: kafka | ||
defaults: | ||
run: | ||
working-directory: ./microservices/order | ||
|
||
env: | ||
MINOS_EVENTS_QUEUE_HOST: postgres | ||
MINOS_EVENTS_BROKER: kafka | ||
MINOS_COMMANDS_QUEUE_HOST: postgres | ||
MINOS_COMMANDS_BROKER: kafka | ||
MINOS_REPOSITORY_HOST: postgres | ||
MINOS_SNAPSHOT_HOST: postgres | ||
MINOS_SAGA_QUEUE_HOST: postgres | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run tests | ||
run: poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
on: | ||
push: | ||
paths: | ||
- 'microservices/product/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_DB: product_db | ||
POSTGRES_USER: minos | ||
POSTGRES_PASSWORD: min0s | ||
ports: | ||
- 5432:5432 | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
zookeeper: | ||
image: wurstmeister/zookeeper:latest | ||
ports: | ||
- 2181:2181 | ||
|
||
kafka: | ||
image: wurstmeister/kafka:latest | ||
ports: | ||
- 9092:9092 | ||
env: | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_ADVERTISED_HOST_NAME: kafka | ||
defaults: | ||
run: | ||
working-directory: ./microservices/product | ||
|
||
env: | ||
MINOS_EVENTS_QUEUE_HOST: postgres | ||
MINOS_EVENTS_BROKER: kafka | ||
MINOS_COMMANDS_QUEUE_HOST: postgres | ||
MINOS_COMMANDS_BROKER: kafka | ||
MINOS_REPOSITORY_HOST: postgres | ||
MINOS_SNAPSHOT_HOST: postgres | ||
MINOS_SAGA_QUEUE_HOST: postgres | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run tests | ||
run: poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,7 @@ ENV/ | |
|
||
# Intellij IDEa / PyCharm / etc. | ||
.idea | ||
.run | ||
|
||
# lmdb database | ||
*.mdb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
enabled: true | ||
restylers: | ||
- name: black | ||
image: restyled/restyler-black:v19.10b0 | ||
command: | ||
- black | ||
arguments: ["--line-length", "120"] | ||
include: | ||
- "**/*.py" | ||
interpreters: | ||
- python | ||
- name: isort | ||
image: restyled/restyler-isort:v5.8.0 | ||
command: | ||
- isort | ||
arguments: [] | ||
include: | ||
- "**/*.py" | ||
interpreters: | ||
- python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
build: | ||
docker-compose build --parallel | ||
|
||
up: build | ||
echo "Starting containers..." | ||
docker-compose up --detach | ||
|
||
down: | ||
echo "Stopping containers..." | ||
docker-compose down --remove-orphans | ||
|
||
logs: | ||
echo "Showing logs..." | ||
docker-compose logs --follow | ||
|
||
integration-tests: | ||
echo "Running Integration Tests..." | ||
docker-compose run tavern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.