Skip to content

Devops-2022-Group-R/itu-minitwit

Repository files navigation

ITU MiniTwit

Updated by: Group R

To build the MiniTwit Docker image:

docker build -t minitwit .

To run the MiniTwit Docker container:

docker run -p 8080:8080 -it minitwit

Deploy

The project is automatically deployed when a new :latest tag is pushed to Docker Hub. This happens automatically once a commit is made to the master branch.

This assumes that Azure has been set up correctly.

Azure setup

Prerequisites

Steps

  1. Make sure the working directory is .infrastructure (cd .infrastructure from the project root).
  2. Ensure that you have the .infrastructure/.tfvars file and replace the <add_value> fields with your secrets and config values.
  3. Run terraform apply -var-file .tfvars