The project on one page
The need
A grocery chain wants two applications:
- a mobile application for customers, to make buying easier (part 801, later);
- an internal web application to manage products, follow sales and see indicators, connected to a (part 702, later).
Trinity is an Epitech project in three parts. This documentation covers Part One (701): DevOps. It is delivered before the applications are developed.
What Part One delivers
We do not build the full applications yet. We build a small sample representative of the stack, and above all the whole chain that tests it, builds it and releases it automatically.
There should be two tasks for a human being to perform to deploy software: to pick the version and environment and to press the deploy button. — David Farley, Continuous Delivery
The required deliverables
| Deliverable | Where to find it |
|---|---|
| Two Dockerfiles per application (dev and prod) | api/Dockerfile.*, web/Dockerfile.* → Environments |
The full .gitlab-ci.yml pipeline | The pipeline |
| GitLab runners installed on a VM | Runners |
| Docs: technologies and architecture | Overall architecture |
| Docs: dev vs prod differences | Dev and prod environments |
| Docs: full pipeline diagram | The pipeline |
| Docs: installing and configuring the runners | Runners |
| No password in the repository | Secrets and access |
The live addresses
| Environment | Web | API |
|---|---|---|
| prod | https://trinity.jostud.com | https://api.trinity.jostud.com |
| dev | https://dev.trinity.jostud.com | https://api.dev.trinity.jostud.com |
The develop branch deploys to dev, the main branch to prod. The details are in From a commit to prod.