forked from oracle/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 927 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright (c) 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
#
FROM openjdk:17-oraclelinux8
LABEL org.opencontainers.image.source = "https://github.com/oracle/docker-images"
ARG KV_VERSION=21.2.46
ARG DOWNLOAD_ROOT=http://download.oracle.com/otn-pub/otn_software/nosql-database
ARG DOWNLOAD_FILE="kv-ce-${KV_VERSION}.zip"
ARG DOWNLOAD_LINK="${DOWNLOAD_ROOT}/${DOWNLOAD_FILE}"
ENV KV_PROXY_PORT 8080
ENV KV_ADMIN_PORT 5999
ENV KV_PORT 5000
ENV KV_HARANGE 5010-5020
ENV KV_SERVICERANGE 5021-5049
RUN curl -OLs $DOWNLOAD_LINK && \
jar tf $DOWNLOAD_FILE | grep "kv-$KV_VERSION/lib" > extract.libs && \
jar xf $DOWNLOAD_FILE @extract.libs && \
rm -f $DOWNLOAD_FILE extract.libs
WORKDIR "/kv-$KV_VERSION"
COPY start-kvlite.sh .
RUN chmod +x start-kvlite.sh
VOLUME ["/kvroot"]
CMD ["bash", "-c", "./start-kvlite.sh"]