aqua-docker

Install tools in Docker image

Overview

aqua-docker is a CLI installing CLIs in Docker images.

⚠️ Restriction

aqua-docker assumes that installed CLIs work as a single executable file. So some tools such as tfenv can’t be supported.

Requirements

  • Docker

How to use

Please run aqua-docker by go run command in Dockerfile.

e.g.

FROM golang:1.18.4 AS aqua
COPY aqua.yaml /aqua.yaml
RUN go run github.com/aquaproj/[email protected] --aqua-version v1.17.1 --config /aqua.yaml --dest /dist actionlint reviewdog

FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=aqua /dist/* /usr/local/bin/

How does it works?

  1. Install aqua
  2. Run aqua i
  3. Create a directory (By default, the directory path is dist, but you can change this by -dest option) and copy files at the directory

LICENSE

MIT

GitHub

View Github