-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
37 lines (30 loc) · 1.31 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
35
36
37
FROM openjdk:8-jre-alpine
MAINTAINER Russell Snyder <[email protected]>
# Build config
ARG tranquility_version=0.8.3
ARG vcs_ref=unspecified
ARG build_date=unspecified
LABEL org.label-schema.name="tranquility" \
org.label-schema.description="Druid Tranquility" \
org.label-schema.build-date="${build_date}" \
org.label-schema.vcs-url="https://github.com/rusnyder/docker-tranquility" \
org.label-schema.vcs-ref="${vcs_ref}" \
org.label-schema.version="${tranquility_version}" \
org.label-schema.schema-version="1.0" \
maintainer="Russell Snyder <[email protected]>"
# Default runtime config
ENV TRANQUILITY_PROPERTIES_ZOOKEEPER_CONNECT zookeeper
ENV TRANQUILITY_PROPERTIES_HTTP_PORT 8200
ENV TRANQUILITY_CONFIG_FILE conf/tranquility/config.json
# Install
RUN apk update \
&& apk add bash jq \
&& rm -rf /var/cache/apk/* \
&& wget -q -O - \
http://static.druid.io/tranquility/releases/tranquility-distribution-${tranquility_version}.tgz \
| tar -xzf - -C /usr/share \
&& ln -s /usr/share/tranquility-distribution-${tranquility_version} /usr/share/tranquility
COPY conf /usr/share/tranquility-distribution-${tranquility_version}/conf
COPY start-tranquility.sh /start-tranquility.sh
WORKDIR /usr/share/tranquility
ENTRYPOINT /start-tranquility.sh