-
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 #148 from Clariteia/0.0.2
0.0.2
- Loading branch information
Showing
85 changed files
with
4,423 additions
and
1,623 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
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,54 @@ | ||
on: | ||
push: | ||
paths: | ||
- 'microservices/payment/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_DB: payment_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/payment | ||
|
||
env: | ||
MINOS_REPOSITORY_HOST: postgres | ||
MINOS_SNAPSHOT_HOST: postgres | ||
MINOS_BROKER_QUEUE_HOST: postgres | ||
MINOS_BROKER_HOST: kafka | ||
|
||
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,54 @@ | ||
on: | ||
push: | ||
paths: | ||
- 'microservices/ticket/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_DB: ticket_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/ticket | ||
|
||
env: | ||
MINOS_REPOSITORY_HOST: postgres | ||
MINOS_SNAPSHOT_HOST: postgres | ||
MINOS_BROKER_QUEUE_HOST: postgres | ||
MINOS_BROKER_HOST: kafka | ||
|
||
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,54 @@ | ||
on: | ||
push: | ||
paths: | ||
- 'microservices/user/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_DB: user_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/user | ||
|
||
env: | ||
MINOS_REPOSITORY_HOST: postgres | ||
MINOS_SNAPSHOT_HOST: postgres | ||
MINOS_BROKER_QUEUE_HOST: postgres | ||
MINOS_BROKER_HOST: kafka | ||
|
||
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
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,2 @@ | ||
[virtualenvs] | ||
in-project = true |
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,37 @@ | ||
version: "3.9" | ||
|
||
services: | ||
microservice-order: | ||
build: | ||
context: microservices/order | ||
target: development | ||
volumes: | ||
- ./microservices/order:/microservice | ||
|
||
microservice-payment: | ||
build: | ||
context: microservices/payment | ||
target: development | ||
volumes: | ||
- ./microservices/payment:/microservice | ||
|
||
microservice-product: | ||
build: | ||
context: microservices/product | ||
target: development | ||
volumes: | ||
- ./microservices/product:/microservice | ||
|
||
microservice-ticket: | ||
build: | ||
context: microservices/ticket | ||
target: development | ||
volumes: | ||
- ./microservices/ticket:/microservice | ||
|
||
microservice-user: | ||
build: | ||
context: microservices/user | ||
target: development | ||
volumes: | ||
- ./microservices/user:/microservice |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM python | ||
|
||
RUN apt install git | ||
RUN pip install git+git://github.com/Clariteia/discovery.git@4e8b7b4170d9f41028421b3e810242cefd42c91a | ||
RUN pip install minos-discovery==0.0.3 | ||
|
||
COPY config.yml ./config.yml | ||
CMD ["discovery", "start", "config.yml"] |
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.