This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
44 lines (39 loc) · 1.55 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
FROM ubuntu:16.04
ARG destEnv
# config
ENV GITHUB_TOKEN=263f9ede48d798f8d1f92bbefe34f34064ec6f3f
# system dependencies
RUN apt-get update
RUN apt-get install -y \
openjdk-8-jdk \
maven \
git \
curl \
wget
# Apache Kudu
RUN cd /etc/apt/sources.list.d && \
echo "deb http://aptly.cs.int/public xenial $destEnv" >> /etc/apt/sources.list && \
wget http://aptly.cs.int/public/cs-repo.key -O /tmp/cs-repo.key && apt-key add /tmp/cs-repo.key && rm -f /tmp/cs-repo.key && \
printf "Package: * \nPin: release a=xenial, o=aptly.cs.int \nPin-Priority: 1600 \n" > /etc/apt/preferences && \
apt-get update && \
apt-get -y dist-upgrade && \
apt-get -y install kudu kudu-master kudu-tserver libkuduclient0 libkuduclient-dev
EXPOSE 8050 8051 7050 7051
# Project
WORKDIR drill
# Install dependencies
ADD **/**/pom.xml ./
RUN mvn dependency:go-offline
# Build and cache large modules
ADD exec/vector/pom.xml exec/vector/pom.xml
RUN cd exec/vector && mvn dependency:go-offline
ADD exec/java-exec/pom.xml exec/java-exec/pom.xml
RUN cd exec/java-exec && mvn dependency:go-offline
ADD contrib/storage-kudu/pom.xml contrib/storage-kudu/pom.xml
RUN cd contrib/storage-kudu && mvn dependency:go-offline
ADD contrib/storage-hbase/pom.xml contrib/storage-hbase/pom.xml
RUN cd contrib/storage-hbase && mvn dependency:go-offline
ADD contrib/storage-jdbc/pom.xml contrib/storage-jdbc/pom.xml
RUN cd contrib/storage-jdbc && mvn dependency:go-offline
ADD contrib/format-maprdb/pom.xml contrib/format-maprdb/pom.xml
RUN cd contrib/format-maprdb && mvn dependency:go-offline