Skip to content

Commit c91d3d5

Browse files
authoredJul 30, 2024
update gradle and move newrelic tasks into dockerfile (#16)
1 parent 2e0248a commit c91d3d5

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed
 

‎Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
FROM gradle:7.5.1-jdk17 AS builder
1+
FROM gradle:8.9.0-jdk17 AS builder
22
COPY --chown=gradle:gradle . /home/gradle/src
33
WORKDIR /home/gradle/src
4-
RUN gradle downloadNewrelic && gradle unzipNewrelic
4+
RUN apt-get update && apt-get install -y unzip curl
5+
RUN curl -O https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic-java.zip \
6+
&& unzip newrelic-java.zip
57
RUN gradle bootJar --no-daemon
68

79
FROM amazoncorretto:17-alpine

‎build.gradle

+1-12
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,4 @@ jacocoTestReport {
3434
xml.required = true
3535
xml.outputLocation = file("$rootDir/reports/coverage.xml")
3636
}
37-
}
38-
39-
task downloadNewrelic(type: Download) {
40-
mkdir 'newrelic'
41-
src 'https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic-java.zip'
42-
dest file('newrelic')
43-
}
44-
45-
task unzipNewrelic(type: Copy) {
46-
from zipTree(file('newrelic/newrelic-java.zip'))
47-
into rootDir
48-
}
37+
}

0 commit comments

Comments
 (0)
Please sign in to comment.