Skip to content

Commit

Permalink
[*] docker for java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-karpovich committed Nov 8, 2022
1 parent b2588da commit f0398cd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions java/timebase/client/src/main/docker/java17/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine:3.16.1

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

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

USER deltix
COPY timebase /timebase-client
ENTRYPOINT ["/bin/sh", "-c", "/timebase-client/bin/tickdb.sh"]
17 changes: 17 additions & 0 deletions java/timebase/server/src/main/docker/java17/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM alpine:3.16.1

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 && \
mkdir -p /timebase-home && \
chown deltix:deltix -R /timebase-home

ENV DELTIX_HOME /timebase-server
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

USER deltix
WORKDIR /timebase-home

COPY timebase /timebase-server
EXPOSE 8011
ENTRYPOINT ["/bin/sh", "-c", "/timebase-server/bin/tdbserver.sh -home /timebase-home"]

0 comments on commit f0398cd

Please sign in to comment.