Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(baseimage): use debian 12 #47

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

ARG DISTRO_TAG=latest

FROM maven:3-eclipse-temurin-17 as builder

Check warning on line 25 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and Test Images

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 25 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and Test Images

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 25 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and Test Images

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
ARG BRANCH=develop

# TODO (DP) add cache mount ?
Expand All @@ -36,7 +36,7 @@



FROM gcr.io/distroless/java17:${DISTRO_TAG}
FROM gcr.io/distroless/java17-debian12:${DISTRO_TAG}

ARG USR=root

Expand All @@ -55,11 +55,11 @@
ARG MAX_BROKER
ARG JVM_MAX_RAM_PERCENTAGE

ENV EXIST_HOME "/exist"

Check warning on line 58 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 58 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 58 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV CLASSPATH=/exist/lib/*


ENV JAVA_TOOL_OPTIONS \

Check warning on line 62 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 62 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 62 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
-Dfile.encoding=UTF8 \
-Dsun.jnu.encoding=UTF-8 \
-Djava.awt.headless=true \
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile_j11
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

ARG DISTRO_TAG=latest

FROM maven:3-eclipse-temurin-11 as builder

Check warning on line 25 in Dockerfile_j11

View workflow job for this annotation

GitHub Actions / Build and Test Images

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 25 in Dockerfile_j11

View workflow job for this annotation

GitHub Actions / Build and Test Images

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 25 in Dockerfile_j11

View workflow job for this annotation

GitHub Actions / Build and Test Images

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
ARG BRANCH=master

# TODO (DP) add cache mount ?
Expand All @@ -36,10 +36,14 @@



FROM gcr.io/distroless/java11-debian11:${DISTRO_TAG}
FROM gcr.io/distroless/java-base-debian12:${DISTRO_TAG}

ARG USR=root

ENV JAVA_HOME=/opt/java/openjdk
COPY --from=eclipse-temurin:11-jre --chown=${USR} $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"

# Copy eXist-db
COPY --from=builder --chown=${USR} /exist/exist-distribution/target/exist-distribution-*-dir/LICENSE /exist/LICENSE
COPY --from=builder --chown=${USR} /exist/exist-distribution/target/exist-distribution-*-dir/autodeploy /exist/autodeploy
Expand All @@ -55,11 +59,11 @@
ARG MAX_BROKER
ARG JVM_MAX_RAM_PERCENTAGE

ENV EXIST_HOME "/exist"

Check warning on line 62 in Dockerfile_j11

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 62 in Dockerfile_j11

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 62 in Dockerfile_j11

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV CLASSPATH=/exist/lib/*


ENV JAVA_TOOL_OPTIONS \

Check warning on line 66 in Dockerfile_j11

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 66 in Dockerfile_j11

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 66 in Dockerfile_j11

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
-Dfile.encoding=UTF8 \
-Dsun.jnu.encoding=UTF-8 \
-Djava.awt.headless=true \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_j8
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

ARG DISTRO_TAG=latest

FROM maven:3-eclipse-temurin-8 as builder

Check warning on line 25 in Dockerfile_j8

View workflow job for this annotation

GitHub Actions / Build and Test Images

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 25 in Dockerfile_j8

View workflow job for this annotation

GitHub Actions / Build and Test Images

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 25 in Dockerfile_j8

View workflow job for this annotation

GitHub Actions / Build and Test Images

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
ARG BRANCH=master

# TODO (DP) add cache mount ?
Expand All @@ -36,7 +36,7 @@



FROM gcr.io/distroless/java-base-debian11:${DISTRO_TAG}
FROM gcr.io/distroless/java-base-debian12:${DISTRO_TAG}

ARG USR=root

Expand All @@ -59,11 +59,11 @@
ARG MAX_BROKER
ARG JVM_MAX_RAM_PERCENTAGE

ENV EXIST_HOME "/exist"

Check warning on line 62 in Dockerfile_j8

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 62 in Dockerfile_j8

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 62 in Dockerfile_j8

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV CLASSPATH=/exist/lib/*


ENV JAVA_TOOL_OPTIONS \

Check warning on line 66 in Dockerfile_j8

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 66 in Dockerfile_j8

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 66 in Dockerfile_j8

View workflow job for this annotation

GitHub Actions / Build and Test Images

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
-Dfile.encoding=UTF8 \
-Dsun.jnu.encoding=UTF-8 \
-Djava.awt.headless=true \
Expand Down