- Add comprehensive K8s test setup guide to CLAUDE.md (section 8) - Document K8s architecture, Docker image requirements, and job execution - Update ARCHITECTURE.md with CI/CD infrastructure details - Fix Dockerfile to use python3 -m pip and proper non-root user handling - Upgrade addon to Odoo 17.0 and update XML view syntax
20 lines
635 B
Docker
20 lines
635 B
Docker
FROM odoo:17.0
|
|
|
|
# Install Python testing dependencies using the system Python
|
|
RUN python3 -m pip install --no-cache-dir \
|
|
pytest \
|
|
pytest-odoo \
|
|
pytest-bdd \
|
|
pytest-cov \
|
|
pytest-html \
|
|
requests
|
|
|
|
# Copy addon to Odoo addons path
|
|
RUN mkdir -p /mnt/extra-addons && chmod 777 /mnt/extra-addons
|
|
COPY --chown=odoo:odoo addons/itsulu_blog_publisher /mnt/extra-addons/itsulu_blog_publisher
|
|
|
|
# Set working directory to a temp location for test running
|
|
WORKDIR /tmp/test
|
|
|
|
# Default command runs tests (can be overridden)
|
|
CMD ["python3", "-m", "pytest", "tests/", "-v", "--html=/tmp/report.html", "--self-contained-html"]
|