-
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.
* docs: OpenApi Specification (#9) * chore: Update docker-compose (#12) * chore: Add missing env variables and services to docker-compose * chore: Use worker default env variables * ci: Linter and formatter (#14) * chore: Add recommended vscode extensions * chore(deps): Install black formatter and ruff linter * style: Lint and format files * docs: Add linting and formatting commands to README * ci: Add linter and style checks to integration pipeline * feat: endpoint login (#15) * feat: endpoint challenge (#33) --------- Co-authored-by: Antonio Donis <[email protected]> Co-authored-by: Pedro Andrés Chaparro Quintero <[email protected]>
- Loading branch information
1 parent
f200835
commit 45d3519
Showing
23 changed files
with
957 additions
and
69 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,62 @@ | ||
name: Integration | ||
|
||
on: | ||
pull_request: | ||
branches: ["dev"] | ||
|
||
jobs: | ||
check-format: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
|
||
- name: Install dependencies | ||
run: pip install -r requirements.txt | ||
|
||
- name: Check format | ||
run: black --check . | ||
|
||
check-linter: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
|
||
- name: Install dependencies | ||
run: pip install -r requirements.txt | ||
|
||
- name: Check linter | ||
run: ruff check . | ||
|
||
test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up docker environment | ||
run: docker-compose up -d | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
|
||
- name: Install dependencies | ||
run: pip install -r requirements.txt | ||
|
||
- name: Run tests | ||
run: pytest | ||
env: | ||
PYTHONPATH: "." | ||
|
||
- name: Clean docker environment | ||
run: docker compose down --rmi all -v --remove-orphans |
This file was deleted.
Oops, something went wrong.
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,5 +1,12 @@ | ||
# Python files | ||
venv | ||
__pycache__ | ||
|
||
# Vscode files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
|
||
# Pipelines files | ||
.coverage | ||
node_modules | ||
coverage.xml |
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,8 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-python.python", | ||
"ms-python.black-formatter", | ||
"charliermarsh.ruff", | ||
"usernamehw.errorlens" | ||
] | ||
} |
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
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,4 +1,4 @@ | ||
version: '3.1' | ||
version: "3.1" | ||
|
||
services: | ||
# Gateway | ||
|
@@ -11,21 +11,38 @@ services: | |
environment: | ||
METADATA_BASEURL: http://metadata:8080 | ||
AUTHENTICATION_BASEURL: http://authentication:8080 | ||
# TODO: Worker | ||
WORKER_HOST: worker | ||
WORKER_PORT: 1099 | ||
depends_on: | ||
- worker | ||
- metadata | ||
- authentication | ||
# Microservices | ||
# TODO: Add worker service | ||
worker: | ||
image: ghcr.io/hawks-atlanta/worker-java:latest | ||
container_name: worker | ||
restart: on-failure | ||
ports: | ||
- "127.0.0.1:1099:1099" | ||
environment: | ||
METADATA_BASEURL: http://metadata:8080/api/v1 | ||
# Use the default directory that is created in the worker container | ||
# VOLUME_BASE_PATH: /tmp | ||
# VOLUME_COUNT: 3 | ||
metadata: | ||
image: ghcr.io/hawks-atlanta/metadata-scala:latest | ||
container_name: metadata | ||
restart: on-failure | ||
ports: | ||
- "127.0.0.1:8082:8080" | ||
environment: | ||
DATABASE_HOST: "postgres-db" | ||
DATABASE_HOST: "metadata-db" | ||
DATABASE_PORT: "5432" | ||
DATABASE_NAME: "database" | ||
DATABASE_USER: "username" | ||
DATABASE_PASSWORD: "password" | ||
depends_on: | ||
- metadata-db | ||
authentication: | ||
image: ghcr.io/hawks-atlanta/authentication-go:latest | ||
container_name: authentication | ||
|
@@ -34,19 +51,30 @@ services: | |
- "127.0.0.1:8083:8080" | ||
environment: | ||
DATABASE_ENGINE: postgres | ||
DATABASE_DSN: "host=postgres-db user=username password=password dbname=database port=5432 sslmode=disable" | ||
# Database | ||
postgres-db: | ||
image: postgres:latest | ||
container_name: postgres-db | ||
DATABASE_DSN: "host=authentication-db user=username password=password dbname=database port=5432 sslmode=disable" | ||
depends_on: | ||
- authentication-db | ||
# Databases | ||
authentication-db: | ||
image: postgres:alpine3.18 | ||
container_name: authentication-db | ||
restart: on-failure | ||
ports: | ||
- "127.0.0.1:5432:5432" | ||
environment: | ||
- POSTGRES_USER=username | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_DB=database | ||
|
||
metadata-db: | ||
image: postgres:alpine3.18 | ||
container_name: metadata-db | ||
restart: on-failure | ||
ports: | ||
- "127.0.0.1:5434:5432" | ||
environment: | ||
- POSTGRES_USER=username | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_DB=database | ||
postgres-admin: | ||
image: dpage/pgadmin4 | ||
container_name: postgres-admin | ||
|
@@ -56,4 +84,5 @@ services: | |
- [email protected] | ||
- PGADMIN_DEFAULT_PASSWORD=postgres | ||
depends_on: | ||
- postgres-db | ||
- authentication-db | ||
- metadata-db |
Oops, something went wrong.