-
Notifications
You must be signed in to change notification settings - Fork 1
/
tools.docker
42 lines (35 loc) · 1.11 KB
/
tools.docker
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
FROM abdullin/tga-pipeline:base-latest
MAINTAINER Azat Abdullin <[email protected]>
ARG KEX_VERSION=0.0.8
ARG TEST_SPARK_COMMIT=aec399f79d0fc98daa21c214733e707db00f9048
# make tools dir
USER root
RUN mkdir /var/tools
# install kex
USER root
WORKDIR /var/tools
RUN mkdir kex
WORKDIR /var/tools/kex
RUN wget https://github.com/vorpal-research/kex/releases/download/$KEX_VERSION/kex-$KEX_VERSION.zip
RUN unzip kex-$KEX_VERSION.zip
ENV KEX_HOME=/var/tools/kex
# install TestSpark
USER root
WORKDIR /var/tools
RUN git clone https://github.com/AbdullinAM/TestSpark.git
WORKDIR /var/tools/TestSpark
RUN git checkout $TEST_SPARK_COMMIT
## try to prebuild TestSpark
# do not prebuild TestSpark because it causes problems if someone tries to run docker as non-root user
# ./gradlew headless || true
ENV TEST_SPARK_HOME=/var/tools/TestSpark
# run tool
USER root
WORKDIR /tga-pipeline
RUN ./gradlew :tga-tool:build
# give access to all users
RUN chmod a+r -R /tga-pipeline
RUN chmod a+w -R /tga-pipeline
RUN chmod a+r -R /var/tools
RUN chmod a+w -R /var/tools
ENTRYPOINT ["java", "-jar", "/tga-pipeline/tga-tool/build/libs/tga-tool.jar"]