forked from woggioni/rbcs
Compare commits
2
Commits
cd2f1de610
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91f9e9184c
|
||
|
|
4b2f2da35f
|
@@ -28,6 +28,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
builder: "multiplatform-builder"
|
builder: "multiplatform-builder"
|
||||||
context: "docker/build/docker"
|
context: "docker/build/docker"
|
||||||
|
build-args: VERSION=${{ steps.retrieve-version.outputs.VERSION }},REVISION=${{ github.sha }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
@@ -41,6 +42,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
builder: "multiplatform-builder"
|
builder: "multiplatform-builder"
|
||||||
context: "docker/build/docker"
|
context: "docker/build/docker"
|
||||||
|
build-args: VERSION=${{ steps.retrieve-version.outputs.VERSION }},REVISION=${{ github.sha }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
@@ -54,6 +56,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
builder: "multiplatform-builder"
|
builder: "multiplatform-builder"
|
||||||
context: "docker/build/docker"
|
context: "docker/build/docker"
|
||||||
|
build-args: VERSION=${{ steps.retrieve-version.outputs.VERSION }},REVISION=${{ github.sha }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
@@ -67,6 +70,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
builder: "multiplatform-builder"
|
builder: "multiplatform-builder"
|
||||||
context: "docker/build/docker"
|
context: "docker/build/docker"
|
||||||
|
build-args: VERSION=${{ steps.retrieve-version.outputs.VERSION }},REVISION=${{ github.sha }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
@@ -80,6 +84,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
builder: "multiplatform-builder"
|
builder: "multiplatform-builder"
|
||||||
context: "docker/build/docker"
|
context: "docker/build/docker"
|
||||||
|
build-args: VERSION=${{ steps.retrieve-version.outputs.VERSION }},REVISION=${{ github.sha }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
@@ -93,6 +98,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
builder: "multiplatform-builder"
|
builder: "multiplatform-builder"
|
||||||
context: "docker/build/docker"
|
context: "docker/build/docker"
|
||||||
|
build-args: VERSION=${{ steps.retrieve-version.outputs.VERSION }},REVISION=${{ github.sha }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
|
|||||||
@@ -1,15 +1,25 @@
|
|||||||
|
ARG VERSION, REVISION
|
||||||
FROM eclipse-temurin:25-jre-alpine AS base-release
|
FROM eclipse-temurin:25-jre-alpine AS base-release
|
||||||
|
LABEL org.opencontainers.image.authors="Walter Oggioni <walter.oggioni@agentmail.to>"
|
||||||
|
LABEL org.opencontainers.image.version="${VERSION}"
|
||||||
|
LABEL org.opencontainers.image.revision="${REVISION}"
|
||||||
|
LABEL org.opencontainers.image.source=https://gitea.woggioni.net/woggioni/rbcs
|
||||||
|
|
||||||
RUN adduser -D rbcs
|
RUN adduser -D rbcs
|
||||||
USER rbcs
|
USER rbcs
|
||||||
ENV RBCS_CONFIGURATION_DIR="/etc/rbcs"
|
ENV RBCS_CONFIGURATION_DIR="/etc/rbcs"
|
||||||
WORKDIR /var/lib/rbcs
|
WORKDIR /var/lib/rbcs
|
||||||
|
|
||||||
FROM base-release AS release-vanilla
|
FROM base-release AS release-vanilla
|
||||||
|
LABEL org.opencontainers.image.title=rbcs
|
||||||
|
LABEL org.opencontainers.image.description=RBCS vanilla image
|
||||||
ADD rbcs-cli-envelope-*.jar rbcs.jar
|
ADD rbcs-cli-envelope-*.jar rbcs.jar
|
||||||
ADD logback.xml /etc/rbcs/logback.xml
|
ADD logback.xml /etc/rbcs/logback.xml
|
||||||
ENTRYPOINT ["java", "-jar", "/var/lib/rbcs/rbcs.jar"]
|
ENTRYPOINT ["java", "-jar", "/var/lib/rbcs/rbcs.jar"]
|
||||||
|
|
||||||
FROM base-release AS release-memcache
|
FROM base-release AS release-memcache
|
||||||
|
LABEL org.opencontainers.image.title=rbcs-memcache
|
||||||
|
LABEL org.opencontainers.image.description=RBCS image with memcache plugin
|
||||||
ADD --chown=rbcs:rbcs rbcs-cli-envelope-*.jar rbcs.jar
|
ADD --chown=rbcs:rbcs rbcs-cli-envelope-*.jar rbcs.jar
|
||||||
RUN mkdir plugins
|
RUN mkdir plugins
|
||||||
WORKDIR /var/lib/rbcs/plugins
|
WORKDIR /var/lib/rbcs/plugins
|
||||||
@@ -19,6 +29,8 @@ ADD logback.xml /etc/rbcs/logback.xml
|
|||||||
ENTRYPOINT ["java", "-jar", "/var/lib/rbcs/rbcs.jar"]
|
ENTRYPOINT ["java", "-jar", "/var/lib/rbcs/rbcs.jar"]
|
||||||
|
|
||||||
FROM base-release AS release-redis
|
FROM base-release AS release-redis
|
||||||
|
LABEL org.opencontainers.image.title=rbcs-redis
|
||||||
|
LABEL org.opencontainers.image.description=RBCS image with redis plugin
|
||||||
ADD --chown=rbcs:rbcs rbcs-cli-envelope-*.jar rbcs.jar
|
ADD --chown=rbcs:rbcs rbcs-cli-envelope-*.jar rbcs.jar
|
||||||
RUN mkdir plugins
|
RUN mkdir plugins
|
||||||
WORKDIR /var/lib/rbcs/plugins
|
WORKDIR /var/lib/rbcs/plugins
|
||||||
@@ -28,6 +40,8 @@ ADD logback.xml /etc/rbcs/logback.xml
|
|||||||
ENTRYPOINT ["java", "-jar", "/var/lib/rbcs/rbcs.jar"]
|
ENTRYPOINT ["java", "-jar", "/var/lib/rbcs/rbcs.jar"]
|
||||||
|
|
||||||
FROM base-release AS release-full
|
FROM base-release AS release-full
|
||||||
|
LABEL org.opencontainers.image.title=rbcs-full
|
||||||
|
LABEL org.opencontainers.image.description=RBCS image with all plugins
|
||||||
ADD --chown=rbcs:rbcs rbcs-cli-envelope-*.jar rbcs.jar
|
ADD --chown=rbcs:rbcs rbcs-cli-envelope-*.jar rbcs.jar
|
||||||
RUN mkdir plugins
|
RUN mkdir plugins
|
||||||
WORKDIR /var/lib/rbcs/plugins
|
WORKDIR /var/lib/rbcs/plugins
|
||||||
@@ -45,6 +59,8 @@ RUN adduser -D -u 1000 rbcs -h /var/lib/rbcs
|
|||||||
RUN chown rbcs:rbcs /var/tmp/rbcs
|
RUN chown rbcs:rbcs /var/tmp/rbcs
|
||||||
|
|
||||||
FROM scratch AS release-native
|
FROM scratch AS release-native
|
||||||
|
LABEL org.opencontainers.image.title=rbcs-native
|
||||||
|
LABEL org.opencontainers.image.description=RBCS image with a native executable with GraalVM
|
||||||
COPY --from=base-native /etc/passwd /etc/passwd
|
COPY --from=base-native /etc/passwd /etc/passwd
|
||||||
COPY --from=base-native /etc/rbcs /etc/rbcs
|
COPY --from=base-native /etc/rbcs /etc/rbcs
|
||||||
COPY --from=base-native /var/lib/rbcs /var/lib/rbcs
|
COPY --from=base-native /var/lib/rbcs /var/lib/rbcs
|
||||||
@@ -57,6 +73,8 @@ ENV RBCS_CONFIGURATION_DIR="/etc/rbcs"
|
|||||||
ENTRYPOINT ["/usr/bin/rbcs-cli", "-XX:MaximumHeapSizePercent=70", "-Dio.netty.tmpdir=/var/tmp/rbcs", "-Dlogback.configurationFile=/etc/rbcs/logback.xml"]
|
ENTRYPOINT ["/usr/bin/rbcs-cli", "-XX:MaximumHeapSizePercent=70", "-Dio.netty.tmpdir=/var/tmp/rbcs", "-Dlogback.configurationFile=/etc/rbcs/logback.xml"]
|
||||||
|
|
||||||
FROM debian:12-slim AS release-jlink
|
FROM debian:12-slim AS release-jlink
|
||||||
|
LABEL org.opencontainers.image.title=rbcs-jlink
|
||||||
|
LABEL org.opencontainers.image.description=RBCS image with a jlink distribution
|
||||||
RUN mkdir -p /usr/share/java/rbcs
|
RUN mkdir -p /usr/share/java/rbcs
|
||||||
RUN --mount=type=bind,source=.,target=/build/distributions tar -xf /build/distributions/rbcs-cli*.tar -C /usr/share/java/rbcs
|
RUN --mount=type=bind,source=.,target=/build/distributions tar -xf /build/distributions/rbcs-cli*.tar -C /usr/share/java/rbcs
|
||||||
RUN chmod 755 /usr/share/java/rbcs/bin/*
|
RUN chmod 755 /usr/share/java/rbcs/bin/*
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Args=-O3 \
|
|||||||
-march=x86-64-v3 \
|
-march=x86-64-v3 \
|
||||||
--gc=serial \
|
--gc=serial \
|
||||||
--enable-url-protocols=jpms \
|
--enable-url-protocols=jpms \
|
||||||
--pgo=native-image/default.iprof \
|
--pgo=conf/default.iprof \
|
||||||
--initialize-at-run-time=io.netty \
|
--initialize-at-run-time=io.netty \
|
||||||
--initialize-at-build-time=net.woggioni.rbcs.common.RbcsUrlStreamHandlerFactory,net.woggioni.rbcs.common.RbcsUrlStreamHandlerFactory$JpmsHandler \
|
--initialize-at-build-time=net.woggioni.rbcs.common.RbcsUrlStreamHandlerFactory,net.woggioni.rbcs.common.RbcsUrlStreamHandlerFactory$JpmsHandler \
|
||||||
--trace-object-instantiation=ch.qos.logback.classic.Logger \
|
--trace-object-instantiation=ch.qos.logback.classic.Logger \
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
// mavenLocal {
|
|
||||||
// content {
|
|
||||||
// includeGroup 'net.woggioni.gradle'
|
|
||||||
// includeGroup 'net.woggioni.gradle.lombok'
|
|
||||||
// includeGroup 'net.woggioni.gradle.finalguard'
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
maven {
|
maven {
|
||||||
url = getProperty('gitea.maven.url')
|
url = getProperty('gitea.maven.url')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user