-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (19 loc) · 934 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
FROM maven:3.5-jdk-8
LABEL maintainer <[email protected]>
## RUN process
# Install K2JVMCompiler
ADD docker/k2.tar.gz /opt/techio/
RUN wget https://github.com/JetBrains/kotlin/releases/download/v1.1.50/kotlin-compiler-1.1.50.zip -O /opt/kotlinc.zip \
&& unzip /opt/kotlinc.zip -d /opt \
&& rm -f /opt/kotlinc.zip \
&& (cd /opt/techio/k2 ; find ../../kotlinc/lib -type f -exec ln -s {} \;)
#RUN gunzip -c /opt/techio/k2.tar.gz | tar xvC /opt/techio \
# && rm /opt/techio/k2.tar.gz
COPY docker/kotlin-compiler-junit-runner.sh /opt/techio/junit-runner/
COPY maven3-junit4-runner/target/maven3-junit4-runner-0.0.1-SNAPSHOT-jar-with-dependencies.jar /opt/techio/junit-runner/junit-runner.jar
## BUILD process
ARG USER_HOME_DIR="/root"
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
COPY docker/settings.xml $USER_HOME_DIR/.m2/
COPY docker/build.sh /project/build
ENTRYPOINT ["/opt/techio/junit-runner/kotlin-compiler-junit-runner.sh"]