Presented By -
/$$ /$$ /$$ /$$ /$$$$$$$$ /$$ /$$ /$$ /$$
| $$$ /$$$ | $$ | $$ | $$_____/ |__/ | $$ /$$/| $$
| $$$$ /$$$$ /$$$$$$ | $$$$$$$ /$$$$$$$ | $$ /$$$$$$ /$$ /$$$$$$$$ | $$ /$$/ | $$$$$$$ /$$$$$$ /$$$$$$$
| $$ $$/$$ $$ /$$__ $$| $$__ $$ /$$__ $$ | $$$$$|____ $$| $$|____ /$$/ | $$$$$/ | $$__ $$ |____ $$| $$__ $$
| $$ $$$| $$| $$ \ $$| $$ \ $$| $$ | $$ | $$__/ /$$$$$$$| $$ /$$$$/ | $$ $$ | $$ \ $$ /$$$$$$$| $$ \ $$
| $$\ $ | $$| $$ | $$| $$ | $$| $$ | $$ | $$ /$$__ $$| $$ /$$__/ | $$\ $$ | $$ | $$ /$$__ $$| $$ | $$
| $$ \/ | $$| $$$$$$/| $$ | $$| $$$$$$$ | $$ | $$$$$$$| $$ /$$$$$$$$ | $$ \ $$| $$ | $$| $$$$$$$| $$ | $$
|__/ |__/ \______/ |__/ |__/ \_______/ |__/ \_______/|__/|________/ |__/ \__/|__/ |__/ \_______/|__/ |__/
Simply build the image using
$docker build -t mohdfai/bookstore:latest .
Or
$docker-compose up -d
run it with all needed parameter:
$ docker pull mohdfai/bookestore:latest
$ docker run -d -p 8080:8080 mohdfai/bookstore:latest
That's it.
https://faizkhanbookstore.herokuapp.com/v3/api-docs/
https://faizkhanbookstore.herokuapp.com/api/v1/book/getTotalPrice
https://faizkhanbookstore.herokuapp.com/api/v1/book/getDiscountedTotalPrice
https://faizkhanbookstore.herokuapp.com/api/v1/books
https://faizkhanbookstore.herokuapp.com/api/v1/book/1
https://faizkhanbookstore.herokuapp.com/h2-console/
This image uses following commands for configuration.
docker commands | Default value | Description |
---|---|---|
Docker build |
no default | $docker build -t mohdfai/bookstore:latest . |
Docker run |
no default | docker run -d -p 8080:8080 mohdfai/bookstore:latest |
To update your setup simply pull the newest image version from docker hub and run it.
Instead of using mohdfai/bookstore:latest image, any light image can be used (e.g. openjdk:8-jdk-alpine)
Everything in my repository is published under GPL-3.
/$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$$$ /$$$$$$ /$$$$$$$ /$$$$$$$$
| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/ /$$__ $$|__ $$__//$$__ $$| $$__ $$| $$_____/
| $$ \ $$| $$ \ $$| $$ \ $$| $$ /$$/ | $$ \__/ | $$ | $$ \ $$| $$ \ $$| $$
| $$$$$$$ | $$ | $$| $$ | $$| $$$$$/ | $$$$$$ | $$ | $$ | $$| $$$$$$$/| $$$$$
| $$__ $$| $$ | $$| $$ | $$| $$ $$ \____ $$ | $$ | $$ | $$| $$__ $$| $$__/
| $$ \ $$| $$ | $$| $$ | $$| $$\ $$ /$$ \ $$ | $$ | $$ | $$| $$ \ $$| $$
| $$$$$$$/| $$$$$$/| $$$$$$/| $$ \ $$| $$$$$$/ | $$ | $$$$$$/| $$ | $$| $$$$$$$$
|_______/ \______/ \______/ |__/ \__/ \______/ |__/ \______/ |__/ |__/|________/