Skip to content

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 ​

DeliverableWhere to find it
Two Dockerfiles per application (dev and prod)api/Dockerfile.*, web/Dockerfile.* → Environments
The full .gitlab-ci.yml pipelineThe pipeline
GitLab runners installed on a VMRunners
Docs: technologies and architectureOverall architecture
Docs: dev vs prod differencesDev and prod environments
Docs: full pipeline diagramThe pipeline
Docs: installing and configuring the runnersRunners
No password in the repositorySecrets and access

The live addresses ​

EnvironmentWebAPI
prodhttps://trinity.jostud.comhttps://api.trinity.jostud.com
devhttps://dev.trinity.jostud.comhttps://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.