Skip to content

limadelrey/quarkus-classify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

https://www.youtube.com/watch?v=CZcoKflJwlw

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Java 11
Maven 3.6.1
Docker 19.03.5
AWS S3 credentials

Running

Setup AWS S3 credentials

https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials_profiles.html

1 - Create plain text file "credentials" on /.aws folder;
2 - Paste the following content with your own credentials:
[default]
aws_access_key_id = YOUR_AWS_ACCESS_KEY_ID
aws_secret_access_key = YOUR_AWS_SECRET_ACCESS_KEY

Create Docker network

$ docker network create quarkus-hackaton-network

Run Docker Compose (setup all needed services):

$ docker-compose up

Run BE source connector properties:

https://github.com/limadelrey/quarkus-hackaton/blob/master/infrastructure/be-source-connector.properties

Open http://localhost:3030 (sometimes it takes ~2 minutes to run)

Open Connectors > New > PostgresConnector > Paste "be-source-connector.properties" content > Create

Testing

Run UI application w/ live reload:

$ mvn compile quarkus:dev

Run BE application w/ live reload (don't forget to set your AWS S3 credentials file on /.aws/credentials location):

$ mvn compile quarkus:dev

Generate AI native image:

$ mvn package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=limadelrey/quarkus-hackaton-graalvm-with-python

Run stress tests

Run Apache Bench stress tests:

$ ab -n 1000 -c 10 http://localhost:8081/api/v1/image-classification

Other informations

Useful endpoints:

Access UI:

Access Swagger UI:

Access Kafka:

Access Prometheus:

Access Jaeger: