From 2b2391f3f79e885491f6670088b1aab05f740363 Mon Sep 17 00:00:00 2001 From: Sandor Trombitas Date: Mon, 4 Nov 2024 11:56:39 +0200 Subject: [PATCH] chore: test gradle plugin downgrade --- test/smoke/alpine/Dockerfile | 9 +++++++++ test/smoke/docker-root/Dockerfile | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/test/smoke/alpine/Dockerfile b/test/smoke/alpine/Dockerfile index 871b4b6da0..050c88f25f 100644 --- a/test/smoke/alpine/Dockerfile +++ b/test/smoke/alpine/Dockerfile @@ -6,6 +6,15 @@ COPY ./fixtures/ /snyk/fixtures/ RUN shellspec --version RUN apk add curl jq libgcc libstdc++ +# Install Gradle +RUN apk update && \ + apk add openjdk11 && \ + wget https://services.gradle.org/distributions/gradle-7.2-bin.zip && \ + unzip gradle-7.2-bin.zip && \ + mv gradle-7.2 /opt/gradle && \ + ln -s /opt/gradle/bin/gradle /usr/bin/gradle && \ + gradle -v + WORKDIR /snyk/smoke/ ENTRYPOINT [ "./alpine/entrypoint.sh" ] diff --git a/test/smoke/docker-root/Dockerfile b/test/smoke/docker-root/Dockerfile index f8e2e85b4b..67c03ad898 100644 --- a/test/smoke/docker-root/Dockerfile +++ b/test/smoke/docker-root/Dockerfile @@ -4,6 +4,13 @@ COPY ./smoke/ /snyk/smoke/ COPY ./fixtures/ /snyk/fixtures/ RUN apt-get update && apt-get install -y curl jq + +# Install Gradle +RUN apt-get install -y wget unzip \ + && wget https://services.gradle.org/distributions/gradle-7.2-bin.zip -P /tmp \ + && unzip -d /opt/gradle /tmp/gradle-7.2-bin.zip \ + && ln -s /opt/gradle/gradle-7.2/bin/gradle /usr/bin/gradle + RUN /snyk/smoke/install-shellspec.sh --yes ENV PATH="/root/.local/bin:${PATH}"