build and create GUI container for searching
# build and run the docker image
docker build . -t nonjosh/dnd4e-data-html:1.0.0a
docker run -d --name dnd4e-data-html -p 1080:80 --restart always nonjosh/dnd4e-data-html:1.0.0a
# or if you use Docker Compose
docker-compose up -d
# or if you use Kubernetes
docker build . -t nonjosh/dnd4e-data-html
kubectl apply -k k8s/base
stop and remove container
# remove container and image
docker rm -f dnd4e-data-html
docker image rm nonjosh/dnd4e-data-html
# or if you use Docker Compose
docker-compose down
# or if you use Kubernetes
kubectl delete -k k8s/base
docker image rm nonjosh/dnd4e-data-html
Example call: http://localhost:1080/?search=avenger&folders[]=class&api=true
Response:
{
"request": {
"search": "avenger",
"folders": [
"class"
],
"api": "true"
},
"data": {
"class": [
"/compendium/class/Invoker.html",
"/compendium/class/Paladin.html",
"/compendium/class/Hybrid-Wizard.html",
"/compendium/class/Hybrid-Avenger.html",
"/compendium/class/Hybrid-Monk.html",
"/compendium/class/Hybrid-Shaman.html",
"/compendium/class/Hybrid-Druid.html",
"/compendium/class/Avenger.html"
]
}
}