A simple Fruits REST API built using Quarkus.
- Docker Desktop for Mac/Linux/Windows
- Drone CI CLI
- Docker Registry e.g Docker Hub credentials
- Java 11+
Copy the .env.example
to .env
and update the following variables to suit your settings.
PLUGIN_REGISTRY
- the docker registry to usePLUGIN_TAG
- the tag to push the image to docker registryPLUGIN_REPO
- the docker registry repositoryPLUGIN_USERNAME
- the docker Registry usernamePLUGIN_PASSWORD
- the docker registry password
Comment/Uncomment and update the database settings in .env
based on the Database that you plan to use. Currently only Postgresql/MariaDB are supported.
drone exec --trusted --env-file=.env
The command will test, build and push the container image to the $PLUGIN_REPO:$PLUGIN_TAG
.
docker-compose up
The application provides a Swagger UI that is accessible at http://localhost:8080/q/swagger-ui which could be used to work with the API.