From 5bd09bac541fce5a4676b2d06bdb4251cb53c106 Mon Sep 17 00:00:00 2001 From: Brice Ruth Date: Fri, 3 Mar 2023 16:54:29 -0600 Subject: [PATCH 01/16] Switch from openjdk/alpine image to Amazon Corretto image. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5613f6e..34c0e0b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:17-alpine +FROM amazoncorretto:17 RUN apk add --update --no-cache wget unzip curl bash jq RUN mkdir -p /opt From 30af2036dd06c7e0662ab13f8d3ea2cffe61ff33 Mon Sep 17 00:00:00 2001 From: Brice Ruth Date: Fri, 3 Mar 2023 17:00:26 -0600 Subject: [PATCH 02/16] Fix package install for AL2 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 34c0e0b..e492d30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ FROM amazoncorretto:17 -RUN apk add --update --no-cache wget unzip curl bash jq +RUN yum install -y wget unzip curl bash jq \ + && yum clean all \ + && rm -rf /var/cache/yum RUN mkdir -p /opt RUN cd /opt \ From 36f128ed85dce8af2b1d0ed3770a8281cde471b1 Mon Sep 17 00:00:00 2001 From: Wes Dean Date: Tue, 6 Jun 2023 12:05:34 -0400 Subject: [PATCH 03/16] Tidy the Dockerfile --- Dockerfile | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index e492d30..728f490 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,26 @@ FROM amazoncorretto:17 -RUN yum install -y wget unzip curl bash jq \ +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + +ENV UNZIP_VERSION="6.0" +ENV JQ_VERSION="1.5" + +ENV PMD_URL="https://api.github.com/repos/pmd/pmd/releases/latest" +ENV CHECKSTYLE_URL="https://api.github.com/repos/checkstyle/checkstyle/releases/latest" + +RUN yum install -y unzip-${UNZIP_VERSION} jq-${JQ_VERSION} \ && yum clean all \ && rm -rf /var/cache/yum RUN mkdir -p /opt -RUN cd /opt \ - && export PMD_URL=$(curl --silent https://api.github.com/repos/pmd/pmd/releases/latest | jq '.assets[] | select(.name | contains("pmd-bin-") and contains(".zip")) | .browser_download_url' | sed -e 's/^"//' -e 's/"$//') \ - && wget -nc -O pmd.zip ${PMD_URL} \ - && unzip pmd.zip \ - && rm pmd.zip \ - && mv pmd-bin* pmd +WORKDIR /opt + +RUN curl -L "$(curl --silent "${PMD_URL}" | jq -r '.assets[] | select(.name | contains("pmd-") and contains("-bin.zip")) | .browser_download_url')" > pmd.zip \ + && unzip pmd.zip \ + && rm pmd.zip \ + && mv pmd-bin* pmd -RUN cd /opt \ - && export CS_URL=$(curl --silent https://api.github.com/repos/checkstyle/checkstyle/releases/latest | jq '.assets[] | select(.name | contains("checkstyle-") and contains(".jar")) | .browser_download_url' | sed -e 's/^"//' -e 's/"$//') \ - && wget -nc -O checkstyle.jar ${CS_URL} +RUN curl -L "$(curl --silent "${CHECKSTYLE_URL}" | jq -r '.assets[] | select(.name | contains("checkstyle-") and contains(".jar")) | .browser_download_url')" > checkstyle.jar COPY run_pmd.sh /opt COPY run_cpd.sh /opt From 7d9de83657c45d7195df910d6edf7e872bdd043f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 2 Jul 2023 09:33:48 +0000 Subject: [PATCH 04/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 97bbf61..a7e88c9 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.0/checkstyle-10.12.0-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.1/checkstyle-10.12.1-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From 7ef9fe8819dcde7c6bc448205396dce69453be72 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 6 Aug 2023 09:33:33 +0000 Subject: [PATCH 05/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a7e88c9..b4df216 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.1/checkstyle-10.12.1-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.2/checkstyle-10.12.2-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From a8c690e272b36438bd2d97af4ef9e6ae4ddc3182 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 3 Sep 2023 09:33:40 +0000 Subject: [PATCH 06/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b4df216..fb8e8fa 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.2/checkstyle-10.12.2-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.3/checkstyle-10.12.3-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From 1b8de9a036b0722ee8fd5d34a28702c9bfab3c89 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 8 Oct 2023 09:33:46 +0000 Subject: [PATCH 07/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index fb8e8fa..4e6d5a6 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.3/checkstyle-10.12.3-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.4/checkstyle-10.12.4-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From d9b8425c34ec4efffabe7bde6c0eb8704e3cf331 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 19 Nov 2023 09:33:50 +0000 Subject: [PATCH 08/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4e6d5a6..61bd8ae 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.4/checkstyle-10.12.4-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.5/checkstyle-10.12.5-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From fbe7da2927511ed493260693902117b15df6d5f3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 10 Dec 2023 09:33:37 +0000 Subject: [PATCH 09/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 61bd8ae..1945896 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.5/checkstyle-10.12.5-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.6/checkstyle-10.12.6-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From 08222dd6dca200011481b8bdb023ac2659664216 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 7 Jan 2024 09:33:31 +0000 Subject: [PATCH 10/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1945896..a4448a7 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.6/checkstyle-10.12.6-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.7/checkstyle-10.12.7-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From 16117cb5deb70f8a47e74e885331e459925bd4cb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 4 Feb 2024 09:33:38 +0000 Subject: [PATCH 11/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a4448a7..1771ff8 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.7/checkstyle-10.12.7-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.13.0/checkstyle-10.13.0-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From 55ac7985289c615c8bf3fb6f925f35d625f6d0a5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 3 Mar 2024 09:34:50 +0000 Subject: [PATCH 12/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1771ff8..243a6d3 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.13.0/checkstyle-10.13.0-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.14.0/checkstyle-10.14.0-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From 15a0ce76d9956a795f574e5e3e852272509f69fe Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 17 Mar 2024 09:33:48 +0000 Subject: [PATCH 13/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 243a6d3..61085bb 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.14.0/checkstyle-10.14.0-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.14.2/checkstyle-10.14.2-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From 645c6520e876a58f9838fe101abd6b9ba94f6c34 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 7 Apr 2024 09:33:31 +0000 Subject: [PATCH 14/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 61085bb..c760d0a 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.14.2/checkstyle-10.14.2-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.15.0/checkstyle-10.15.0-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From 5dfa632789a6574f959ed761f5ef7ae3a3b5e1e0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 5 May 2024 09:33:36 +0000 Subject: [PATCH 15/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c760d0a..c19725d 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.15.0/checkstyle-10.15.0-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.16.0/checkstyle-10.16.0-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq From a94eb9f4d661153d94a9c59bcce7ab17dac2a644 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 2 Jun 2024 09:33:25 +0000 Subject: [PATCH 16/16] patch: update tools versions --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c19725d..7e4c267 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e PMD_RELEASE="https://github.com/pmd/pmd/releases/download/pmd_releases/6.55.0/pmd-bin-6.55.0.zip" -CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.16.0/checkstyle-10.16.0-all.jar" +CHECKSTYLE_RELEASE="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.17.0/checkstyle-10.17.0-all.jar" apt-get update && apt-get install --no-install-recommends -y ca-certificates wget unzip curl bash jq