-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile.hub
20 lines (20 loc) · 1.01 KB
/
Dockerfile.hub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM centos:7
RUN yum install -y java-1.8.0-openjdk wget curl
RUN mkdir -p /home/presto && cd /home/presto &&\
wget https://repo1.maven.org/maven2/com/facebook/presto/presto-server/0.234.2/presto-server-0.234.2.tar.gz &&\
tar xzvf presto-server-0.234.2.tar.gz &&\
rm -rf presto-server-0.234.2.tar.gz &&\
mv presto-server-0.234.2 presto-server &&\
wget https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/0.234.2/presto-cli-0.234.2-executable.jar &&\
chmod +x presto-cli-0.234.2-executable.jar &&\
mv presto-cli-0.234.2-executable.jar /usr/local/bin/presto
WORKDIR /home/presto/presto-server
CMD bin/launcher start && presto --server localhost:8080 --catalog kubesql --schema kubesql
RUN yum install -y maven
COPY etc/ etc/
COPY pom.xml /home/kubesql/
RUN cd /home/kubesql && mvn clean && mvn package
COPY . /home/kubesql/
RUN cd /home/kubesql && mvn clean && mvn package &&\
mkdir -p /home/presto/presto-server/plugin/kubesql &&\
mv target/*.jar /home/presto/presto-server/plugin/kubesql