Closed cyri113 closed 1 year ago
Dockerfile python for inspiration. For a library we only need the test
target.
FROM python:3.10-bullseye AS base
WORKDIR /project
COPY . .
RUN pip3 install -r requirements.txt
FROM base AS test
CMD ["python3", "-m", "coverage", "run" ,"-m", "pytest", "tests"]
Problem
TogetherCrew is based on micro-services. As the number of micro-services will continue to grow, it is of vital importance to ensure that they follow the same CI pipeline, else developers the quality and speed of delivery of the product will be put at risk.
Solution
We have already developed a CI pipeline for the TogetherCrew project. Now we need to align our existing repositories to this pipeline.
Task
Notes
base
,test
,build
, andprod
targets as they are used in the CI/CD process.Prerequisites
21