-
Notifications
You must be signed in to change notification settings - Fork 0
Devops #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Devops #35
Changes from 16 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
cb0623b
Merge remote-tracking branch 'origin/main' into devops
Locatelli-Flor c776f6d
Merge branch 'main' into devops
Locatelli-Flor 2e63eeb
Adds initial Docker Compose setup
Locatelli-Flor 89f9ff2
Add initial database setup with tables for documents, document chunks…
Locatelli-Flor 4bc2cb7
Merge remote-tracking branch 'origin/main' into devops
Locatelli-Flor 0bd3a5e
Refactor Docker setup: replace pgvector with new Dockerfiles for Docs…
Locatelli-Flor 38a24d6
Adds CI/CD workflows for deployment and validation
Locatelli-Flor 211feaa
Refactors PR validation workflow for clarity
Locatelli-Flor 7dcbb38
Enhances deployment workflow with summaries
Locatelli-Flor 1302887
Merge remote-tracking branch 'origin/main' into devops
Locatelli-Flor a1e48e0
Enhances deployment workflow with rollback
Locatelli-Flor 2d0f203
Add GitHub Actions workflows for deployment and PR validation
Locatelli-Flor e7fd757
Refactor Dockerfiles to streamline installation and add healthcheck
Locatelli-Flor 3719f7e
Refactor Dockerfiles to simplify file copying and improve build process
Locatelli-Flor 60ea4f2
Fix CMD syntax in Dockerfiles for consistency
Locatelli-Flor 958df99
Fix CMD syntax in Dockerfiles for consistency
Locatelli-Flor b195179
Update Python version to 3.13 and fix CMD syntax in Dockerfiles for c…
Locatelli-Flor ff38ada
Updates project dependencies
Locatelli-Flor 68ac919
Refactor import statement for clarity and add pdfplumber and minio de…
Locatelli-Flor 8d434dc
Remove rollback step from deployment workflow and adjust script secti…
Locatelli-Flor c73a517
Replace rollout status with wait for new pods to be ready in deployme…
Locatelli-Flor 3577344
Increase deployment timeout to 8 minutes and update rollout status ch…
Locatelli-Flor 20cafba
Remove redundant wait command from deployment rollout step in workflow
Locatelli-Flor cf1f966
Refactor deployment workflow to improve rollout checks and update tim…
Locatelli-Flor 9562f67
Add Discord notifications for successful and failed deployments, and …
Locatelli-Flor 34d8a48
Enhance Discord notifications with detailed deployment information fo…
Locatelli-Flor cb5dfaa
Update PR validation trigger to include opened event and adjust Pytho…
Locatelli-Flor a99e31c
Reduce rollout timeout to 30s and add debug steps for deployment stat…
Locatelli-Flor 0d1c362
Update rollout timeout to 60s and remove debug steps from deployment …
Locatelli-Flor b285743
Merge branch 'main' into devops
Locatelli-Flor b4af608
Merge remote-tracking branch 'origin/devops' into devops
Locatelli-Flor 7efd5a4
Merge remote-tracking branch 'origin/main' into devops
Locatelli-Flor ad1545f
Add SonarQube scan step to PR validation workflow
Locatelli-Flor ece3d76
Merge branch 'main' into devops
Locatelli-Flor b18a510
Refactor configuration settings to use Pydantic Field for environment…
Locatelli-Flor 90b9cb9
Merge branch 'devops' of https://github.com/ucudal/reto-xmas-2025-gol…
Locatelli-Flor 3fcffff
Add env_map for PostgreSQL configuration in Settings
Locatelli-Flor e3c823f
Refactor PostgreSQL and RabbitMQ configuration to remove env_map and …
Locatelli-Flor 7e210d1
Update Dockerfile to include Python in CMD and improve uv sync command
Locatelli-Flor 2eafa50
Merge branch 'main' into devops
Locatelli-Flor d36cc75
Merge branch 'main' into devops
Locatelli-Flor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,13 +1,22 @@ | ||
| FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim | ||
| FROM python:3.12-slim | ||
Locatelli-Flor marked this conversation as resolved.
Show resolved
Hide resolved
Locatelli-Flor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY pyproject.toml uv.lock* ./ | ||
| RUN apt-get update && apt-get install -y \ | ||
| curl \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
Locatelli-Flor marked this conversation as resolved.
Show resolved
Hide resolved
Locatelli-Flor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| RUN uv sync --frozen --no-cache || uv sync --no-cache | ||
| RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \ | ||
| mv /root/.local/bin/uv /usr/local/bin/uv && \ | ||
| mv /root/.local/bin/uvx /usr/local/bin/uvx | ||
Locatelli-Flor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| COPY . . | ||
|
|
||
| RUN uv sync --no-dev --no-cache | ||
|
|
||
Locatelli-Flor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| EXPOSE 8000 | ||
|
|
||
| CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | ||
| HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ | ||
| CMD curl -f http://localhost:8000/health || exit 1 | ||
|
|
||
| CMD ["uv", "run", "--no-sync", "uvicorn", "app:main", "--host", "0.0.0.0", "--port", "8000"] | ||
Locatelli-Flor marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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 hidden or 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,13 +1,22 @@ | ||
| FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim | ||
| FROM python:3.12-slim | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY pyproject.toml uv.lock* ./ | ||
| RUN apt-get update && apt-get install -y \ | ||
| curl \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
Locatelli-Flor marked this conversation as resolved.
Show resolved
Hide resolved
Locatelli-Flor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| RUN uv sync --frozen --no-cache || uv sync --no-cache | ||
| RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \ | ||
| mv /root/.local/bin/uv /usr/local/bin/uv && \ | ||
| mv /root/.local/bin/uvx /usr/local/bin/uvx | ||
Locatelli-Flor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| COPY . . | ||
|
|
||
| RUN uv sync --no-dev --no-cache | ||
|
|
||
Locatelli-Flor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| EXPOSE 8000 | ||
|
|
||
| CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | ||
| HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ | ||
| CMD curl -f http://localhost:8000/health || exit 1 | ||
|
|
||
| CMD ["uv", "run", "--no-sync", "uvicorn", "app:main", "--host", "0.0.0.0", "--port", "8000"] | ||
Locatelli-Flor marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.