@@ -42,39 +42,40 @@ FROM alpine:3.17.0 as tools
42
42
ARG TARGETARCH
43
43
44
44
# renovate: datasource=github-releases depName=helm/helm
45
- ENV HELM_VERSION=v3.11.0
45
+ ENV HELM_VERSION=v3.17.3
46
46
47
47
# renovate: datasource=github-releases depName=alco/goon
48
48
ENV GOON_VERSION=v1.1.1
49
49
50
50
# renovate: datasource=github-releases depName=pluralsh/plural-cli
51
- ENV CLI_VERSION=v0.7.8
52
-
53
- # renovate: datasource=github-releases depName=accurics/terrascan
54
- ENV TERRASCAN_VERSION=v1.17.1
51
+ ENV CLI_VERSION=v0.12.8
55
52
56
53
# renovate: datasource=github-releases depName=aquasecurity/trivy
57
- ENV TRIVY_VERSION=v0.36 .1
54
+ ENV TRIVY_VERSION=v0.64 .1
58
55
59
56
RUN apk add --update --no-cache curl ca-certificates unzip wget openssl && \
60
57
# download helm
61
- curl -L https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz | tar xvz && \
58
+ echo "installing helm" && \
59
+ curl -L https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz | tar xz && \
62
60
mv linux-${TARGETARCH}/helm /usr/local/bin/helm && \
63
61
# download goon
64
- curl -L https://github.com/alco/goon/releases/download/${GOON_VERSION}/goon_linux_${TARGETARCH}.tar.gz | tar xvz && \
65
- mv goon /usr/local/bin/goon && \
62
+ # echo "installing goon" && \
63
+ # curl -L https://github.com/alco/goon/releases/download/${GOON_VERSION}/goon_linux_${TARGETARCH}.tar.gz | tar xvz && \
64
+ # mv goon /usr/local/bin/goon && \
66
65
# download plural cli
67
- curl -L https://github.com/pluralsh/plural-cli/releases/download/${CLI_VERSION}/plural-cli_console_${CLI_VERSION/v/}_Linux_${TARGETARCH}.tar.gz | tar xvz plural && \
66
+ echo "installing plural" && \
67
+ curl -L https://github.com/pluralsh/plural-cli/releases/download/${CLI_VERSION}/plural-cli_${CLI_VERSION#v}_Linux_${TARGETARCH}.tar.gz | tar xvz plural && \
68
68
mv plural /usr/local/bin/plural && \
69
69
# download terrascan
70
- if [ "$TARGETARCH" = "amd64" ]; then \
71
- curl -L https://github.com/accurics/terrascan/releases/download/${TERRASCAN_VERSION}/terrascan_${TERRASCAN_VERSION/v/}_Linux_x86_64.tar.gz > terrascan.tar.gz; \
72
- else \
73
- curl -L https://github.com/accurics/terrascan/releases/download/${TERRASCAN_VERSION}/terrascan_${TERRASCAN_VERSION/v/}_Linux_${TARGETARCH}.tar.gz > terrascan.tar.gz; \
74
- fi && \
75
- tar -xf terrascan.tar.gz terrascan && rm terrascan.tar.gz && \
76
- mv terrascan /usr/local/bin/terrascan && \
70
+ # if [ "$TARGETARCH" = "amd64" ]; then \
71
+ # curl -L https://github.com/accurics/terrascan/releases/download/${TERRASCAN_VERSION}/terrascan_${TERRASCAN_VERSION/v/}_Linux_x86_64.tar.gz > terrascan.tar.gz; \
72
+ # else \
73
+ # curl -L https://github.com/accurics/terrascan/releases/download/${TERRASCAN_VERSION}/terrascan_${TERRASCAN_VERSION/v/}_Linux_${TARGETARCH}.tar.gz > terrascan.tar.gz; \
74
+ # fi && \
75
+ # tar -xf terrascan.tar.gz terrascan && rm terrascan.tar.gz && \
76
+ # mv terrascan /usr/local/bin/terrascan && \
77
77
# download trivy
78
+ echo "installing trivy" && \
78
79
if [ "$TARGETARCH" = "amd64" ]; then \
79
80
curl -L https://github.com/aquasecurity/trivy/releases/download/${TRIVY_VERSION}/trivy_${TRIVY_VERSION/v/}_Linux-64bit.tar.gz > trivy.tar.gz; \
80
81
elif [ "$TARGETARCH" = "arm64" ]; then \
@@ -84,9 +85,9 @@ RUN apk add --update --no-cache curl ca-certificates unzip wget openssl && \
84
85
mv trivy /usr/local/bin/trivy && \
85
86
# make tools executable
86
87
chmod +x /usr/local/bin/helm && \
87
- chmod +x /usr/local/bin/goon && \
88
+ # chmod +x /usr/local/bin/goon && \
88
89
chmod +x /usr/local/bin/plural && \
89
- chmod +x /usr/local/bin/terrascan && \
90
+ # chmod +x /usr/local/bin/terrascan && \
90
91
chmod +x /usr/local/bin/trivy
91
92
92
93
FROM erlang:24.3.4.6-alpine
@@ -112,8 +113,8 @@ WORKDIR /opt/app
112
113
113
114
COPY --from=tools /usr/local/bin/plural /usr/local/bin/plural
114
115
COPY --from=tools /usr/local/bin/helm /usr/local/bin/helm
115
- COPY --from=tools /usr/local/bin/goon /usr/local/bin/goon
116
- COPY --from=tools /usr/local/bin/terrascan /usr/local/bin/terrascan
116
+ # COPY --from=tools /usr/local/bin/goon /usr/local/bin/goon
117
+ # COPY --from=tools /usr/local/bin/terrascan /usr/local/bin/terrascan
117
118
COPY --from=tools /usr/local/bin/trivy /usr/local/bin/trivy
118
119
COPY --from=builder /opt/built .
119
120
0 commit comments