-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (27 loc) · 1011 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
FROM alpine:latest
MAINTAINER Shota Kondo <der.passant.b@gmail.com>
ENV PRESTO_VERSION 0.189
RUN apk add --no-cache --virtual .fetch-deps \
curl \
tar \
&& apk add --no-cache --virtual .run-deps \
util-linux \
less \
openjdk8-jre \
python \
&& mkdir -p /opt/presto/etc \
&& mkdir -p /var/presto/data \
&& curl https://repo1.maven.org/maven2/com/facebook/presto/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz | \
tar -xz -C /opt/presto --strip-components 1 \
&& chmod +x /opt/presto/bin/launcher \
&& mkdir -p /usr/local/bin \
&& curl -o /usr/local/bin/presto-cli \
https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar \
&& chmod +x /usr/local/bin/presto-cli \
&& apk del .fetch-deps
EXPOSE 8080
VOLUME /var/presto/data
COPY ./files /opt/gen_config
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/opt/presto/bin/launcher", "run"]