An Academy API Service, is an web application service which is used for School management system/Institute/College Management portal.
- This will be deployed as a Azure Web Apps.
- App will be containerized and pushed to Docker Hub.
- Azure Web App, will be enabled with continuous deployment
- Define the Entity/Model carefully - Academy.Entity
- Create Data Access for the Model - Academy.DataAccess
- Implement Bogus for the Model - Academy.Entity.DataBogus
- Test the Data Access - Academy.Test.DataAccess
- Create Web API Controller for the Defined Model. - Academy.Service
- Build the Docker file, which exists near to solution file.
docker build --tag academy-service-api:v1.0.0 .
- Tag the Docker image.
docker tag 72dab714f095 ganeshramsr/academy-service-api:v1.0.0
docker tag 72dab714f095 ganeshramsr/academy-service-api:latest
- Push to Docker Hub
docker push ganeshramsr/academy-service-api:v1.0.0
-
To make sure this is the latest one
docker push ganeshramsr/academy-service-api:latest
-
To run as docker Image
docker run --rm -it -p 7181:443/tcp -p 7282:80/tcp academy-service-api:v1.0.0
- Optional -- To remove all unnecessary images we can use the below command
docker image prune --filter="dangling=true"
----- Removes all unused containers
docker container prune