TogetherCrew / operations

This repository houses a collection of code artifacts, including Github actions, Github workflows, and essential docker-compose files. These resources are instrumental in facilitating efficient and automated staging and production deployments.
1 stars 0 forks source link

CI: Dockerfile alignment for /broker-lib-py #31

Closed cyri113 closed 1 year ago

cyri113 commented 1 year ago

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

Prerequisites

cyri113 commented 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"]