-
Notifications
You must be signed in to change notification settings - Fork 0
FEAT: PAAL-152 Dockerimage for Testworkflow #4
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
2 commits merged into
main
from
feature/PAAL-152-Dockerimage-dockerimage-for-testworkflow
Nov 14, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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 |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # Python cache and compiled files | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
| *.so | ||
| .Python | ||
|
|
||
| # Testing | ||
| .pytest_cache/ | ||
| .coverage | ||
| htmlcov/ | ||
| .tox/ | ||
|
|
||
| # Virtual environments | ||
| venv/ | ||
| env/ | ||
| ENV/ | ||
|
|
||
| # IDE and editor files | ||
| .vscode/ | ||
| .idea/ | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
|
|
||
| # Git | ||
| .git/ | ||
| .gitignore | ||
|
|
||
| # Environment variables | ||
| .env | ||
| .env.* | ||
|
|
||
| # Documentation | ||
| *.md | ||
|
|
||
| # Data directories (created at runtime) | ||
| data/ | ||
| results/ | ||
|
|
||
| # Temporary files | ||
| *.log | ||
| *.tmp | ||
| .DS_Store |
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 |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| FROM python:3.13-slim | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # Install runtime and build dependencies (git is needed for Gitpython, which is a dependency of Ragas) | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| git \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install UV package manager | ||
| COPY --from=ghcr.io/astral-sh/uv:0.9 /uv /bin/uv | ||
|
|
||
| # Copy dependency files | ||
| COPY pyproject.toml uv.lock ./ | ||
|
|
||
| # Install dependencies using UV | ||
| RUN uv sync | ||
|
|
||
| # Copy scripts to root dir | ||
| COPY scripts/* ./ | ||
|
|
||
| # Create directories for data and results | ||
| RUN mkdir -p data/datasets data/experiments results | ||
|
|
||
| # Set environment variables | ||
| ENV PYTHONUNBUFFERED=1 \ | ||
| PYTHONDONTWRITEBYTECODE=1 | ||
|
|
||
| # Make scripts executable | ||
| RUN chmod +x *.py | ||
|
|
||
| # Set 'uv run python3' entrypoint so we can run scripts directly | ||
| ENTRYPOINT ["uv", "run", "python3"] |
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 |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Testworkflows Docker Image Makefile | ||
|
|
||
| # Image configuration | ||
| IMAGE_NAME ?= testworkflows | ||
| IMAGE_TAG ?= latest | ||
|
|
||
| # Full image reference | ||
| IMAGE := $(IMAGE_NAME):$(IMAGE_TAG) | ||
|
|
||
| .PHONY: help | ||
| help: ## Display this help message | ||
| @echo "Testworkflows Docker Image Management" | ||
| @echo "" | ||
| @echo "Usage: make [target]" | ||
| @echo "" | ||
| @awk 'BEGIN {FS = ":.*##"; printf "Targets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " %-15s %s\n", $$1, $$2 } /^##@/ { printf "\n%s\n", substr($$0, 5) } ' $(MAKEFILE_LIST) | ||
|
|
||
| ## Build the Docker image | ||
| .PHONY: build | ||
| build: | ||
| docker build -t $(IMAGE) . | ||
|
|
||
| ## Run container | ||
| .PHONY: run | ||
| run: | ||
| docker run --rm -it $(IMAGE) |
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.