container-native-deployment

Featured

Use when packaging Spring Boot 4 as an OCI image, JVM container, AOT application, or GraalVM native executable. Covers buildpacks, layers, runtime hints, probes, security, and verification.

DevOps & Infrastructure 225 stars 37 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
78
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Container and Native Deployment Choose JVM, AOT cache, checkpoint/restore, or native from measured requirements. ## Container image - Prefer Boot build-image tasks with Cloud Native Buildpacks for standard services. - Preserve dependency, loader, snapshot, and application layers for cache reuse. - Pin compatible builder/run image families and promote immutable digests. - Run as non-root and use a read-only filesystem where possible. - Inject secrets at runtime; never copy credentials into a build context or image layer. - Configure graceful shutdown and platform termination timing together. ## Runtime behavior - Verify JVM memory and CPU ergonomics under real container limits. - Expose Actuator liveness and readiness probes separately. - Use a startup probe for expensive initialization. - Keep writable paths explicit and bounded. ## Native image and AOT - Use GraalVM 25 or newer with Boot 4 native build support. - Register narrow `RuntimeHints` for reflection, resources, serialization, JNI, or proxies. - Respect the closed-world model: runtime bean topology and classpath cannot change. - Review profile and conditional-bean behavior during AOT processing. - Run native integration tests against the produced executable. ## Supply chain - Generate an SBOM, scan the final image, and regularly rebuild on patched run images. - Sign and attest release images where the delivery platform supports it. ## Examples - See `examples/good-dockerfile` and `examples/bad-dockerfile...

Details

Author
rrezartprebreza
Repository
rrezartprebreza/spring-boot-skills
Created
4 months ago
Last Updated
6 days ago
Language
Java
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

DevOps & Infrastructure Listed

containerization

Containerize applications with Docker and Kubernetes — writing optimized Dockerfiles, multi-stage builds, image layering, and Kubernetes deployment configs. Use when writing or reviewing a Dockerfile, choosing a base image, debugging a container build, or configuring Kubernetes pods and health checks. This skill is specific to Docker containerization and Kubernetes configuration and does NOT cover CI/CD pipelines, monitoring/alerting, or secret management.

1 Updated 1 weeks ago
ecoma-io
AI & Automation Featured

graalvm-native-image

Provides expert guidance for building GraalVM Native Image executables from Java applications. Use when converting JVM applications to native binaries, optimizing cold start times, reducing memory footprint, configuring native build tools for Maven or Gradle, resolving reflection and resource issues in native builds, or implementing framework-specific native support for Spring Boot, Quarkus, and Micronaut. Triggers include "graalvm native image", "native executable java", "java cold start optimization", "native build tools", "ahead of time compilation java", "reflection config graalvm", "native image build failure".

330 Updated 2 days ago
giuseppe-trisciuoglio
DevOps & Infrastructure Listed

docker-development

Use when optimising a Dockerfile, creating or improving docker-compose configurations, implementing multi-stage builds, auditing container security, or reducing image size. Triggers on "Dockerfile", "docker-compose", "container", "image size", "build cache", or "Docker best practices".

2 Updated 3 days ago
tmj-90