Skip to content

21Philip/devops-minitwit

Repository files navigation

Minitwit

A simple Twitter clone for the BSDSESM1KU course at ITU. Devops have been the main focus of this project.

By DevopsGruppeConnie (group i)

Demos

IaC

iac

CI-CD

ci-cd

Monitoring

monitor

Logging

logging

How to run locally

Requires:

Steps:

  1. Navigate to root of repository:
    cd path/to/repository
  1. Build and run development compose:
    docker compose -f docker-compose-db.yml -f docker-compose-app.yml -f docker-compose.dev.yml up --build
  1. Reached at:
    • Api: localhost:5000.
    • Web app: localhost:5001.
    • Monitoring: localhost:3000.

How to deploy

Requires:

  • Terraform
  • A valid terraform.tfvars is in the ./infra directory,
  • Authentication to cecilieelkjaer @ dockerhub (our artifact store)

Steps:

  1. Navigate to root of repository:
    cd path/to/repository
  1. Build and push docker containers to artifact store
    docker compose -f docker-compose-app.yml -f docker-compose-db.yml build
    docker compose -f docker-compose-app.yml -f docker-compose-db.yml push
  1. Navigate to the ./infra directory:
    cd ./infra
  1. Deploy:
    terraform init
    terraform apply

Create release

Releases are only made once there has been pushed with a tag. Create a release like this:

    git tag v1.0.0
    git push origin v1.0.0

Tag must begin with v (fx v1.2.3). Pushing with a tag will not trigger deploy.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors