-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (23 loc) · 1 KB
/
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
33
34
# OpenMLDB server image.
# Use this image to run a openmldb nameserver or tablet.
FROM debian:bullseye-slim
# listen port
ARG PORT=9527
# If non-empty, given directory will used as openmldb release artifact (the top directory extracted from release),
# instead of downloading from release page.
ARG OPENMLDB_ART
LABEL org.opencontainers.image.source=https://github.com/aceforeverd/openmldb-docker
WORKDIR /opt/openmldb
ENV OPENMLDB_VER=0.9.0
ADD ${OPENMLDB_ART:-https://github.com/4paradigm/OpenMLDB/releases/download/v${OPENMLDB_VER}/openmldb-${OPENMLDB_VER}-linux.tar.gz} ./
RUN if [ -z ${OPENMLDB_ART} ] ; then tar xzf openmldb-*.tar.gz --strip-components=1 && rm -f openmldb-*.tar.gz; fi
VOLUME [ "/var/lib/openmldb/", "/opt/openmldb/udf/" ]
COPY entrypoint.sh .
EXPOSE ${PORT}
# NOTE: Must pass necessary flags, or the container will simply exit.
# Here is list of required flags (may not fully covered):
# - --port or --endpoint
# - --role
# - --zk_cluster
# - --zk_root_path
ENTRYPOINT [ "./entrypoint.sh" ]