Skip to content

Commit 8bdcdee

Browse files
committed
feat(northbound_api): initial commit
Signed-off-by: Alexandros Patras <patras@uth.gr>
1 parent c333789 commit 8bdcdee

11 files changed

Lines changed: 2297 additions & 0 deletions

File tree

northbound-api/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Use the official Python image
2+
FROM python:3.9-slim
3+
4+
# Set the working directory inside the container
5+
WORKDIR /app
6+
7+
# Copy the current directory contents into the container
8+
COPY . /app
9+
10+
# Install the Python dependencies
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
# Expose the port that FastAPI will run on
14+
EXPOSE 8000
15+
16+
# Command to run FastAPI using Uvicorn
17+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

northbound-api/MLSysOps_Schemas/mlsysops_schemas.py

Lines changed: 1223 additions & 0 deletions
Large diffs are not rendered by default.

northbound-api/docker-compose.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
services:
2+
api_service:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
container_name: api_service
7+
restart: always
8+
ports:
9+
- "8000:8000"
10+
environment:
11+
- REDIS_HOST=172.25.27.72
12+
- REDIS_PORT=6379
13+
- REDIS_DB_NUMBER=0
14+
- REDIS_QUEUE_NAME=valid_descriptions_queue
15+
- REDIS_PASSWORD=secret
16+
- REDIS_CHANNEL_NAME=my_channel
17+
- REDIS_DICT_NAME=system_app_hash
18+
volumes:
19+
- ./config:/app/config
20+
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload

0 commit comments

Comments
 (0)