Skip to content

Used to create a json response for every request that cannot be parsed by the ingress towards the api endpoint

Notifications You must be signed in to change notification settings

food2gether/api-fallback-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-fallback-service

Quality Gate Status Coverage GitHub Actions GitHub Release

This project is a simple quarkus rest serivce responding to any request with a simple 404 response and a json body.

Running the application in dev mode

You can run your application in dev mode that enables live coding using:

./mvnw quarkus:dev

Run the application in cluster mode

# If you are on windows it is recommended to use virtualbox as driver for minikube
minikube config set driver virtualbox
bash k8s/setup.sh <github-token>

This will setup a local minikube cluster with all components deployed. It will replace the deployment targeting this application with a service pointing to the host machine. This way you can run the application in dev mode and is accessable as if it was running in the cluster.

Package the application for production

./mvnw package -Pnative

Build the docer image

NOTE: You need to build the application first with maven

docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/api-fallback-service .

Run the docker image

docker run -i --rm -p 8080:8080 ghcr.io/food2gether/api-fallback-service:<version>

About

Used to create a json response for every request that cannot be parsed by the ingress towards the api endpoint

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •