This microservice is a component of a larger application that is currently in development.
The super project can be found here https://github.com/JamieC1998/FYP_Contest_Management_System
Below are the currently listed components of this larger application.
| Service Name | Description | Git Repo URL | Dockerhub Repo |
|---|---|---|---|
| Grader Service | Service responsible for grading solutions | https://github.com/JamieC1998/FYP_Grader_MicroService | https://hub.docker.com/repository/docker/jamiec1998/fyp-grader-service |
| Eureka Service | Responsible for registering services | https://github.com/JamieC1998/FYP_Eureka_Server | https://hub.docker.com/repository/docker/jamiec1998/fyp-eureka-server |
| Registration Service | Fetches current graders as well as schedule jobs to free graders | https://github.com/JamieC1998/FYP_Registration_Service | https://hub.docker.com/repository/docker/jamiec1998/fyp-registration-service |
This microservice is responsible for receive a solution along with an array of input files and expected output files. The microservice will then query all available grader services to see if any are free to accept the job, it will then schedule the job and return results.
You have two options:
git clone --recursive https://github.com/JamieC1998/FYP_Contest_Management_System.gitcd FYP_Eureka_Server./mvnw spring-boot:runEUREKA_CLIENT_SERVICEURL_DEFAULTZONE the value of this variable should contain
the IP and port on which the eureka server is operating, the default port is 8761. If you're hosting this all on one machine then the value of the variable will be as follows http://localhost:8761/eureka./mvnw spring-boot:runcd FYP_Contest_Management_Systemreplicas: 6 this value represents how many instances of the grader service you want running.docker-compose --compatibility upBelow is our documented list for this micro-service, all endpoints operate on port 8080
| Endpoint | Request Type | Utility | Example |
|---|---|---|---|
| /swagger-ui.html | GET | Allows you to access our swagger docs where you can test the endpoints | curl --location --request GET 'localhost:8080/swagger-ui.html' |
| /grader/instances | GET | Queries the eureka server for all information it has on grader services | curl --location --request GET 'localhost:8090/grader/instances' |
| /grader | GET | Queries all grader services running to get their current task status | curl --location --request GET 'localhost:8090/grader' |
For a more detailed analysis of the inputs and outputs of each end-point please refer to the swagger docs which are accessible by pulling down and running the application and accessing /swagger-ui.html.
Content type
Image
Digest
Size
231.8 MB
Last updated
over 6 years ago
docker pull jamiec1998/fyp-registration-service