mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup-cleanup.git
synced 2026-01-07 07:55:41 +00:00
- Run E2E suite via unittest discovery inside the container - Add E2E test for --id mode with real filesystem + fake dirval - Add E2E test for --all + --force-keep to ensure latest backups are skipped https://chatgpt.com/share/6954d89e-bf08-800f-be4a-5d237d190ddd
18 lines
448 B
Docker
18 lines
448 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /opt/app
|
|
|
|
# Copy project
|
|
COPY . .
|
|
|
|
# Install the project (editable is fine for tests)
|
|
RUN python -m pip install -U pip \
|
|
&& python -m pip install -e . \
|
|
&& python -m pip install -U unittest-xml-reporting >/dev/null 2>&1 || true
|
|
|
|
# Create /Backups in container (our tests will use it)
|
|
RUN mkdir -p /Backups
|
|
|
|
# Run E2E unittest
|
|
CMD ["python", "-m", "unittest", "discover", "-v", "-s", "tests/e2e", "-p", "test_*.py"]
|