Skip to content

Commit

Permalink
Rename bookstore-quarkus to bookstore-quarkus-reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-eberle committed Feb 15, 2024
1 parent d9b608f commit 5151aff
Show file tree
Hide file tree
Showing 33 changed files with 34 additions and 383 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: bookstore-quarkus
ECR_REPOSITORY: bookstore-quarkus-reactive
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$GITHUB_SHA -t $ECR_REGISTRY/$ECR_REPOSITORY .
docker push -a $ECR_REGISTRY/$ECR_REPOSITORY
working-directory: ./bookstore-quarkus
working-directory: ./bookstore-quarkus-reactive
2 changes: 1 addition & 1 deletion .github/workflows/terraform-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
repository-names:
description: "The name of all the new ECR repositories to be created e.g.: 'bookstore-quarkus,bookstore-springboot' "
description: "The name of all the new ECR repositories to be created e.g.: 'bookstore-quarkus-reactive,bookstore-springboot' "
type: "string"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The main endpoints of the API consists of:

Currently you can find the following implementations of the Book Store REST API:

1) [Quarkus](./bookstore-quarkus)
1) [Quarkus](./bookstore-quarkus-reactive)
2) [Quarkus Synchronous](./bookstore-quarkus-sync)
3) [Spring Boot](./bookstore-springboot)
4) [NestJS](./bookstore-nestjs)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bookstore-quarkus Project
# bookstore-quarkus-reactive Project

This project uses Quarkus, the Supersonic Subatomic Java Framework.

Expand Down Expand Up @@ -43,7 +43,7 @@ Or, if you don't have GraalVM installed, you can run the native executable build
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true
```

You can then execute your native executable with: `./build/bookstore-quarkus-1.0.0-SNAPSHOT-runner`
You can then execute your native executable with: `./build/bookstore-quarkus-reactive-1.0.0-SNAPSHOT-runner`

If you want to learn more about building native executables, please consult https://quarkus.io/guides/gradle-tooling.

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
# Quarkus
quarkusPluginId=io.quarkus
quarkusPluginVersion=3.7.2
quarkusPluginVersion=3.7.3
quarkusPlatformGroupId=io.quarkus.platform
quarkusPlatformArtifactId=quarkus-bom
quarkusPlatformVersion=3.7.2
quarkusPlatformVersion=3.7.3
#
# Kotlin
kotlinVersion=1.9.22
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions bookstore-quarkus-sync/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bookstore-quarkus Project
# bookstore-quarkus-sync Project

This project uses Quarkus, the Supersonic Subatomic Java Framework.

Expand Down Expand Up @@ -43,7 +43,7 @@ Or, if you don't have GraalVM installed, you can run the native executable build
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true
```

You can then execute your native executable with: `./build/bookstore-quarkus-1.0.0-SNAPSHOT-runner`
You can then execute your native executable with: `./build/bookstore-quarkus-sync-1.0.0-SNAPSHOT-runner`

If you want to learn more about building native executables, please consult https://quarkus.io/guides/gradle-tooling.

Expand Down
4 changes: 2 additions & 2 deletions bookstore-quarkus-sync/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
# Quarkus
quarkusPluginId=io.quarkus
quarkusPluginVersion=3.7.2
quarkusPluginVersion=3.7.3
quarkusPlatformGroupId=io.quarkus.platform
quarkusPlatformArtifactId=quarkus-bom
quarkusPlatformVersion=3.7.2
quarkusPlatformVersion=3.7.3
#
# Kotlin
kotlinVersion=1.9.22
Expand Down
364 changes: 0 additions & 364 deletions bookstore-quarkus/src/main/resources/META-INF/resources/index.html

This file was deleted.

15 changes: 15 additions & 0 deletions postman/Bookstore Quarkus Sync (k8s).postman_environment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"id": "bd98e2c1-11e3-4568-8ad6-aafe07e404b5",
"name": "Bookstore Quarkus Sync (k8s)",
"values": [
{
"key": "host",
"value": "https://bookstore-quarkus-sync.benchmarks.k8s.dev.arconsis.com",
"type": "default",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2024-02-15T18:42:29.418Z",
"_postman_exported_using": "Postman/10.23.1"
}
12 changes: 6 additions & 6 deletions terraform/deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ module "ecs_tasks_sg" {
}

data "aws_ecr_repository" "quarkus_repository" {
name = "bookstore-quarkus"
name = "bookstore-quarkus-reactive"
}

module "ecs_quarkus_app" {
Expand All @@ -164,19 +164,19 @@ module "ecs_quarkus_app" {
subnet_ids = module.vpc.private_subnet_ids
vpc_id = module.vpc.vpc_id
service = {
name = "bookstore-quarkus"
name = "bookstore-quarkus-reactive"
desired_count = 1
max_count = 1
}
task_definition = {
name = "bookstore-quarkus"
name = "bookstore-quarkus-reactive"
image = "${data.aws_ecr_repository.quarkus_repository.repository_url}:${var.image_tag}"
aws_logs_group = "ecs/bookstore-quarkus"
aws_logs_group = "ecs/bookstore-quarkus-reactive"
host_port = 3000
container_port = 3000
container_name = "bookstore-quarkus"
container_name = "bookstore-quarkus-reactive"
health_check_path = "/quarkus/q/health"
family = "bookstore-quarkus-task"
family = "bookstore-quarkus-reactive-task"
env_vars = [
# Check how to configure writer and reader endpoints
{
Expand Down
2 changes: 1 addition & 1 deletion terraform/ecr_repositories/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable "repositories" {
description = "Defines the repositories to create"
type = set(string)
default = [
"bookstore-quarkus",
"bookstore-quarkus-reactive",
"bookstore-quarkus-sync",
"bookstore-springboot",
"bookstore-nestjs",
Expand Down

0 comments on commit 5151aff

Please sign in to comment.