-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
53 lines (44 loc) · 1.5 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM smizy/hbase:1.3-alpine
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL \
maintainer="smizy" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.license="Apache License 2.0" \
org.label-schema.name="smizy/apache-phoenix" \
org.label-schema.url="https://github.com/smizy" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-type="Git" \
org.label-schema.vcs-url="https://github.com/smizy/docker-apache-phoenix"
ENV PHOENIX_VERSION $VERSION
ENV PHOENIX_VER 4.14
ENV HBASE_VER 1.3
ENV PHOENIX_HOME /usr/local/phoenix-${PHOENIX_VER}
ENV PATH $PATH:${PHOENIX_HOME}/bin
RUN set -x \
&& apk update \
&& apk --no-cache add \
bash \
su-exec \
python \
wget \
## phoenix
&& mirror_url=$( \
wget -q -O - "http://www.apache.org/dyn/closer.cgi/?as_json=1" \
| grep "preferred" \
| sed -n 's#.*"\(http://*[^"]*\)".*#\1#p' \
) \
&& package_name="apache-phoenix-${PHOENIX_VERSION}-HBase-${HBASE_VER}" \
&& wget -q -O - ${mirror_url}/phoenix/${package_name}/bin/${package_name}-bin.tar.gz \
| tar -xzf - -C /usr/local \
&& mv /usr/local/${package_name}-bin ${PHOENIX_HOME} \
&& cd ${PHOENIX_HOME} \
&& mkdir -p server \
&& mv *-server.jar server/ \
## cleanup
&& rm *-tests.jar *-sources.jar
## Add user-specified CLASSPATH
ENV HBASE_CLASSPATH ${PHOENIX_HOME}/server/*
WORKDIR ${PHOENIX_HOME}