Skip to content

Commit

Permalink
Merge pull request #50 from arconsis/feature/rename-quarkus-reactive
Browse files Browse the repository at this point in the history
Rename bookstore-quarkus to bookstore-quarkus-reactive
  • Loading branch information
andreas-eberle authored Feb 18, 2024
2 parents cd1cf5a + e35e907 commit e63fa76
Show file tree
Hide file tree
Showing 31 changed files with 15 additions and 379 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.
File renamed without changes.
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
364 changes: 0 additions & 364 deletions bookstore-quarkus/src/main/resources/META-INF/resources/index.html

This file was deleted.

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 e63fa76

Please sign in to comment.