Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Student submission directory (students submit via Moodle/link, not git)
# DO NOT write to this directory during labs — it's for manual grading/inspection only.
submissions/
# submissions/

# Instructor-only reference submissions (dry-run results, not student deliverables)
# These show what "correct" looks like; students don't see them.
Expand Down
6 changes: 6 additions & 0 deletions app/events/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
__pycache__
*.pyc
.git
.env
*.md
.vscode
3 changes: 3 additions & 0 deletions app/events/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY main.py .

EXPOSE 8081
RUN addgroup --system app && adduser --system --ingroup app app
RUN chown -R app:app /app
USER app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8081"]
6 changes: 6 additions & 0 deletions app/gateway/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
__pycache__
*.pyc
.git
.env
*.md
.vscode
3 changes: 3 additions & 0 deletions app/gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY main.py .

EXPOSE 8080
RUN addgroup --system app && adduser --system --ingroup app app
RUN chown -R app:app /app
USER app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
6 changes: 6 additions & 0 deletions app/payments/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
__pycache__
*.pyc
.git
.env
*.md
.vscode
3 changes: 3 additions & 0 deletions app/payments/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY main.py .

EXPOSE 8082
RUN addgroup --system app && adduser --system --ingroup app app
RUN chown -R app:app /app
USER app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8082"]
280 changes: 280 additions & 0 deletions submissions/lab2.md

Large diffs are not rendered by default.