Skip to content

Commit

Permalink
[*] update base docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-karpovich committed Feb 15, 2024
1 parent 32d77db commit 8536382
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
6 changes: 2 additions & 4 deletions java/timebase/client/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM alpine:3.16.1
FROM amazoncorretto:11-alpine3.18

ENV DELTIX_HOME /timebase-client

RUN apk add --no-cache openjdk11-jdk && \
apk add --no-cache zlib=1.2.12-r3 && \
addgroup -S deltix --gid 1666 && adduser -S deltix -G deltix -u 1666
RUN addgroup -S deltix --gid 1666 && adduser -S deltix -G deltix -u 1666

USER deltix
COPY timebase /timebase-client
Expand Down
8 changes: 3 additions & 5 deletions java/timebase/client/src/main/docker/java17/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM alpine:3.16.1
FROM amazoncorretto:17-alpine3.18

ENV DELTIX_HOME /timebase-client
ENV DEFAULT_JVM_OPTS --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
ENV DEFAULT_JVM_OPTS --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED

RUN apk add --no-cache openjdk17-jdk && \
apk add --no-cache zlib=1.2.12-r3 && \
addgroup -S deltix --gid 1666 && adduser -S deltix -G deltix -u 1666
RUN addgroup -S deltix --gid 1666 && adduser -S deltix -G deltix -u 1666

USER deltix
COPY timebase /timebase-client
Expand Down
2 changes: 1 addition & 1 deletion java/timebase/server/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM amazoncorretto:11-alpine3.17
FROM amazoncorretto:11-alpine3.18

RUN addgroup -S deltix --gid 1666 && adduser -S deltix -G deltix -u 1666 && \
mkdir -p /timebase-home && \
Expand Down
6 changes: 2 additions & 4 deletions java/timebase/server/src/main/docker/java17/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FROM alpine:3.16.1
FROM amazoncorretto:17-alpine3.18

RUN apk add --no-cache openjdk17-jdk && \
apk add --no-cache zlib=1.2.12-r3 && \
addgroup -S deltix --gid 1666 && adduser -S deltix -G deltix -u 1666 && \
RUN addgroup -S deltix --gid 1666 && adduser -S deltix -G deltix -u 1666 && \
mkdir -p /timebase-home && \
chown deltix:deltix -R /timebase-home

Expand Down

0 comments on commit 8536382

Please sign in to comment.