forked from spark-jobserver/spark-jobserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.test
29 lines (21 loc) · 722 Bytes
/
Dockerfile.test
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
FROM openjdk:8-jdk
USER root
# install and cache sbt, python
RUN echo 'deb http://dl.bintray.com/sbt/debian /' > /etc/apt/sources.list.d/sbt.list && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 99E82A75642AC823 && \
apt-get -qq update && \
apt-get install -y --force-yes python3 python3-pip python-pip sbt=1.1.6
WORKDIR /usr/src/app/
# install other ci deps
COPY ci ci
RUN ci/install-python-dependencies.sh && \
ci/install-spark.sh
# add sbt and cache deps
COPY project project
COPY build.sbt .
RUN sbt update
# add the rest of the code
COPY . .
ENV SPARK_HOME /tmp/spark-2.4.4-bin-hadoop2.7
ENV JAVA_OPTIONS "-Xmx1500m -Dakka.test.timefactor=3"
CMD ["/usr/src/app/run_tests.sh"]