-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (18 loc) · 885 Bytes
/
Copy pathDockerfile
File metadata and controls
20 lines (18 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# S3-Lite WAL demo image. Build: make image (podman build works as-is)
#
# Runtime env vars:
# S3_MODE=aws|minio (default minio) AWS_REGION, S3_BUCKET (aws mode)
# MINIO_ENDPOINT (minio mode) DEMO_MESSAGES, DEMO_LEDGERS (workload size)
# On ECS, credentials come from the task role automatically — set nothing.
FROM docker.io/library/maven:3.9-eclipse-temurin-17 AS build
WORKDIR /src
# Resolve dependencies as a separate layer so code-only changes rebuild fast
COPY pom.xml .
RUN mvn -q -B dependency:go-offline
COPY src ./src
RUN mvn -q -B package -DskipTests
FROM docker.io/library/eclipse-temurin:17-jre
COPY --from=build /src/target/s3lite-wal-*-shaded.jar /app.jar
# The demo buffers the whole workload in flight; let the JVM use most of the
# container's memory instead of the 25% default.
ENTRYPOINT ["java", "-XX:MaxRAMPercentage=75.0", "-jar", "/app.jar"]