How to execute locally (without containers)
- Application was tested on Mac
- Goto to the root of the directory, and invoke ./execute.sh
How to execute within Minikube
- Application was tested on minikube v1.30.1 on Darwin 13.3.1 (arm64)
- Ensure minikube is running on your machine
minikube status
minikube dashboard
- ./run.sh
- Copying local impage into minikube takes at-least 3 minutes
- Copy the service url and paste it in the browser
CLI commands often used while development
mvn spring-boot:run
curl localhost:8080
curl http://localhost:8080/rover/create?direction=E&x=3&y=5
#!/bin/bash
docker build -t payment_interview . && docker run -i --rm payment_interview /app/build/payment_interview
docker build --build-arg JAR_FILE=target/payment-takehome-1.0-SNAPSHOT.jar -t jpm/roverApp .
docker build -t jpm/rover .
minikube start
minikube image rm docker.io/jpm/rover:latest
minikube image load jpm/rover
minikube image load docker.io/jpm/rover:latest
kubectl run rover --image=docker.io/jpm/rover:latest --port=8080
kubectl expose pod rover --type=LoadBalancer --port=8080
- Base command that works - docker run --rm -d --name nginx -p 80:80 nginx
- docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}'
- How to find url of the service
- minikube service rover --url
- Create 1 Rower
- Create 1 Rower
- python -m http.server
- Navigate first rovers
- Create N Rowers
- Navigate one of the rovers