Skip to content

Commit

Permalink
add regctl
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbaber committed Mar 27, 2023
1 parent caf8a47 commit f5cf866
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM docker:20.10-cli
LABEL maintainer="Patrick Baber <[email protected]>"

ENV REGCLIENT_VERSION "0.4.7"

ARG TARGETARCH

# Install essentials
RUN apk add --no-cache \
bash \
Expand All @@ -15,6 +19,11 @@ RUN apk add --no-cache \
unzip \
wget

# Install regctl
RUN if [ "$TARGETARCH" = "arm64" ]; then ARCHITECTURE="linux-arm64"; else ARCHITECTURE="linux-amd64"; fi && \
curl -o /usr/local/bin/regctl https://github.com/regclient/regclient/releases/download/v${REGCLIENT_VERSION}/regctl-${ARCHITECTURE} && \
chmod +x /usr/local/bin/regctl

# Install Trivy
COPY --from=aquasec/trivy:0.35.0 /usr/local/bin/trivy /usr/local/bin/trivy
RUN chmod +x /usr/local/bin/trivy
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Docker image with useful CI/CD tools
- Docker Compose
- git
- openssl
- regctl
- rsync
- sshpass
- trivy
Expand Down

0 comments on commit f5cf866

Please sign in to comment.