-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (27 loc) · 1.38 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
# Example gradle builder
# Note: project root should be used as build context
FROM gradle:6.3-jdk14 as gradle
# Use build layer as a partial cache
#FROM gradle as cache
#RUN mkdir -p /home/gradle/cache
#ENV GRADLE_USER_HOME /home/gradle/cache
## Future work: create seperate glob script to get all .gradle files
#COPY build.gradle.kts settings.gradle.kts /home/gradle/build_files/
#COPY aggregator/build.gradle.kts /home/gradle/build_files/aggregator/
#COPY renamer/build.gradle.kts /home/gradle/build_files/renamer/
#COPY pluginmanager/build.gradle.kts /home/gradle/build_files/pluginmanager/
#COPY datasource/plugins/elasticsearch/build.gradle.kts /home/gradle/build_files/datasource/plugins/elasticsearch/
#WORKDIR /home/gradle/build_files
#RUN gradle -i build
# Build project artifacts
#FROM gradle
#COPY --from=cache /home/gradle/cache /home/gradle/.gradle
#RUN gradle -i --no-daemon :aggregator:shadowJar :datasource:plugins:elasticsearch:shadowJar \
# :extractor:shadowJar :pluginmanager:shadowJar :renamer:shadowJar :sampleplugin:shadowJar
FROM gradle
RUN mkdir -p /home/gradle/cache
ENV GRADLE_USER_HOME /home/gradle/cache
WORKDIR /home/gradle/project/
CMD gradle -i --no-daemon :aggregator:shadowJar :datasource:plugins:elasticsearch:shadowJar \
:pluginmanager:shadowJar :pipeline:plugins:renamer:shadowJar :pipeline:plugins:adder:shadowJar \
:pipeline:plugins:pathextractor:shadowJar