Commit Graph
6 Commits
Author SHA1 Message Date
darroyo 3b0e6b4a3f build: make build-and-push.sh runnable from any directory
- Resolve PROJECT_DIR from the script's own location by default
  (works with absolute, relative and symlinked invocations)
- Allow override via --project-dir flag or PROJECT_DIR env var
- Improve error message for invalid --project-dir paths
- Update usage and README accordingly
2026-09-08 18:20:49 -03:00
darroyo ceebfb33f8 build: add native build and unregistry push script
scripts/build-and-push.sh builds the native image with the Mandrel
Dockerfile and pushes it to a remote Docker host via docker-pussh
(unregistry), transferring only missing layers over SSH.

- Name and tag default to pom.xml artifactId/version (overridable)
- Builds for linux/amd64; --skip-build to pussh only
- Verifies image presence on the remote after push and prints
  a ready-to-use docker run hint

README updated with a 'Building and deploying natively' section.
2026-09-07 18:02:37 -03:00
darroyo 73875aab94 build: move Dockerfile under src/main/docker
- Restore the Quarkus-default location for the container build recipe
- Drop the stale !Dockerfile entry from .dockerignore (file no longer at root)
2026-09-07 17:51:33 -03:00
darroyo 6d1b7643df build: replace scaffold Dockerfiles with native multi-stage image
- Add Dockerfile using Mandrel jdk-21 builder and quarkus-micro-image:2.0 runtime
- Run as non-root user 1001, expose 8080, set TZ=America/Santiago
- Bind http host to 0.0.0.0 for container networking
- Remove obsolete Quarkus-generated Dockerfiles (jvm, legacy-jar, native, native-micro)
- Tighten .dockerignore to ship only build inputs (mvnw, .mvn, pom.xml, src)
- Add api.http with /status and /q/health request samples
2026-09-07 17:10:49 -03:00
darroyo e5c382fe0a feat: bootstrap Quarkus app with status endpoint and MicroProfile Health
- Scaffold Quarkus 3.39.2 (Java 21, Maven) with rest-jackson and smallrye-health
- Add GET /status returning application uptime, version and JVM metrics
- Add ApplicationHealthCheck (@Readiness) exposing /q/health/ready
- Configure application name, version and health root path
- Cover endpoints with StatusResourceTest (@QuarkusTest + rest-assured)
2026-09-07 16:45:01 -03:00
darroyo 558063cf3e Initial commit 2026-09-07 19:30:23 +00:00