8000 Pin Spring Petclinic in benchmarks (#8969) · DataDog/dd-trace-java@58aca3d · GitHub
[go: up one dir, main page]

Skip to content

Commit 58aca3d

Browse files
authored
Pin Spring Petclinic in benchmarks (#8969)
1 parent 2442b1f commit 58aca3d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

benchmark/Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
# Petclinic download and compilation stage
22
FROM eclipse-temurin:17-jammy as petclinic
33

4+
ARG SPRING_PETCLINIC_COMMIT=cefaf55dd124d0635abfe857c3c99a3d3ea62017
5+
46
RUN apt-get update \
57
&& apt-get -y install git \
68
&& apt-get -y clean \
79
&& rm -rf /var/lib/apt/lists/*
810

9-
RUN git clone --depth 1 --branch main --single-branch https://github.com/spring-projects/spring-petclinic.git \
10-
&& cd spring-petclinic \
11-
&& ./mvnw dependency:go-offline
11+
RUN set -eux;\
12+
git init spring-petclinic;\
13+
cd spring-petclinic;\
14+
git remote add origin https://github.com/spring-projects/spring-petclinic.git;\
15+
git fetch --depth 1 origin ${SPRING_PETCLINIC_COMMIT};\
16+
git checkout ${SPRING_PETCLINIC_COMMIT};\
17+
./mvnw dependency:go-offline
1218

1319
RUN cd spring-petclinic \
1420
&& ./mvnw package -Dmaven.test.skip=true \

0 commit comments

Comments
 (0)
0