Compare commits

1 Commits

Author SHA1 Message Date
16f10e101a refactor: replace Spring Boot with Jooby framework
- Remove Spring Boot dependencies and annotations.
- Implement Jooby MVC controllers and Guice dependency injection.
- Migrate persistence layer to Ebean ORM.
- Configure Flyway migrations and ApiErrorController.
- Update application configuration to HOCON format.
2026-03-03 08:49:55 +01:00
3 changed files with 9 additions and 6 deletions

View File

@@ -41,11 +41,10 @@ COPY --from=build /app/bootstrap/target/bootstrap-*.jar app.jar
# -XX:TieredStopAtLevel=1: Arranque más rápido y menos uso de RAM del compilador JIT # -XX:TieredStopAtLevel=1: Arranque más rápido y menos uso de RAM del compilador JIT
# -XX:MaxRAMPercentage: Se ajusta dinámicamente al límite de Docker # -XX:MaxRAMPercentage: Se ajusta dinámicamente al límite de Docker
ENV JAVA_OPTS="-XX:+UseContainerSupport \ ENV JAVA_OPTS="-XX:+UseContainerSupport \
-XX:MaxRAMPercentage=50.0 \ -XX:MaxRAMPercentage=75.0 \
-Xms32m \
-Xmx96m \
-XX:+UseSerialGC \ -XX:+UseSerialGC \
-XX:TieredStopAtLevel=1" -XX:TieredStopAtLevel=1 \
-Xms128m"
EXPOSE 80 EXPOSE 80

2
Jenkinsfile vendored
View File

@@ -2,7 +2,7 @@ pipeline {
agent any agent any
environment { environment {
REGISTRY_URL = "registry.nortapp.com" REGISTRY_URL = "registry.pablotj.com"
USER = "andromeda" USER = "andromeda"
PASS = credentials('docker-registry-password') PASS = credentials('docker-registry-password')
} }

View File

@@ -2,10 +2,13 @@ STACK=pablotj-portfolio
APP_NAME=pablotj-portfolio-api APP_NAME=pablotj-portfolio-api
IMAGE_NAME=$(APP_NAME) IMAGE_NAME=$(APP_NAME)
REGISTRY_URL=registry.nortapp.com REGISTRY_URL=registry.pablotj.com
NAMESPACE=andromeda NAMESPACE=andromeda
TAG?=latest TAG?=latest
HOST_PORT=8181
CONTAINER_PORT=8080
IMAGE_FULL=$(REGISTRY_URL)/$(NAMESPACE)/$(IMAGE_NAME):$(TAG) IMAGE_FULL=$(REGISTRY_URL)/$(NAMESPACE)/$(IMAGE_NAME):$(TAG)
build: build:
@@ -23,6 +26,7 @@ run:
--label com.docker.compose.service="$(APP_NAME)" \ --label com.docker.compose.service="$(APP_NAME)" \
--label com.docker.compose.project="$(STACK)" \ --label com.docker.compose.project="$(STACK)" \
--network andromeda \ --network andromeda \
-p $(HOST_PORT):$(CONTAINER_PORT) \
--env-file .env \ --env-file .env \
$(IMAGE_FULL) $(IMAGE_FULL)