Debug Assignment CDO - Deployment Instructions
Prerequisites:
- Terraform
- Docker
- Ansible
Docker:
- Build the Docker images: docker build --platform linux/amd64 -t salamaattia/tdf-mvc:0.0.1.RELEASE . docker push salamaattia/tdf-mvc:0.0.1.RELEASE docker build --platform linux/amd64 -t salamaattia/tdf-db:0.0.1.RELEASE . docker push salamaattia/tdf-db:0.0.1.RELEASE
- Start the services: docker-compose up
Terraform:
- cd terraform
- terraform init
- terraform apply
Ansible:
- Update ansible_hosts with EC2 public IP.
- Run ansible playbook: ansible-playbook -i ansible_hosts playbooks.yml
Deploy and Run the Application:
- docker-compose up
Access the API:
- http://:3000/tour-de-france/cyclists
- http://:3000/tour-de-france/teams
Cleanup: terraform destroy