Skip to content

Commit

Permalink
Merge pull request #5566 from snyk/test/gradle-plugin
Browse files Browse the repository at this point in the history
fix: smoke test failure no gradle
  • Loading branch information
sandor-trombitas authored Nov 5, 2024
2 parents aee8f98 + 2b2391f commit e301dbe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/smoke/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
7 changes: 7 additions & 0 deletions test/smoke/docker-root/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit e301dbe

Please sign in to comment.