This is an example application that does not do much.
Read First Round Instructions.
You may build the Docker image locally:
docker build -t myapp .
And start the application locally:
docker run -d -p 80:5000 --name myapp myapp
You can now test your application responses:
curl localhost
First Problem: 1depot
Request API:
POST localhost:3000/cvrp
Postman JSON body:
{problem_name:"name",problem_data:{vehicle_capacity:100,depot:[1,-1],customer_demands:[2,1,3,9,13,21,6,22,10,23,2,15,10,23,8,5,14,6,15,18,15,10,17,1,1,18,7,12,9,26,60,12,17,9,7,13,24,10,17,24,25,1,20,14,6,9,11,2,11,17,3,1,8,12,9,13],customer_locations:[[37,61],[77,81],[35,21],[1,93],[21,39],[63,7],[97,95],[3,7],[5,3],[36,22],[64,10],[6,8],[24,40],[86,82],[68,14],[28,46],[10,8],[8,14],[10,10],[104,104],[38,24],[80,82],[22,46],[26,40],[4,10],[10,12],[26,44],[4,10],[4,98],[78,82],[64,8],[98,98],[24,40],[10,8],[8,96],[8,8],[84,90],[8,8],[86,86],[6,94],[10,10],[80,82],[102,96],[36,26],[44,28],[22,46],[100,100],[28,42],[30,40],[78,84],[10,4],[78,84],[6,8],[10,94],[40,66],[10,16]]}};
Alternatively, you may use the images built by gitlab.
-
Provide your docker engine with your gitlab repository credentials.
Use your gitlab username and password:
docker login glr.honestbee.com
-
Once you push code, Gitlab will run a build the CI pipeline.
docker run -d -p 80:5000 --name vrp_sample glr.honestbee.com/binhngoc17/vrp_sample:master
Once the application is successfully deployed, a grading stage will evaluate the deployed code.
The resulting score will be updated and published to the leaderboard