Skip to content

Add shims for tools #499

Open
Open
@nicholasdille

Description

Prepare shims

  • Prerequisites

    • Docker
  • kubectl

    go run ./cmd/uniget generate kubectl --base cgr.dev/chainguard/static:latest \
    | docker build -t kubectl --load -
    docker run --interactive --tty --rm \
        --user "$(id -u):$(id -g)" \
        --workdir "/${USER}" \
        --env USER="${USER}" \
        --env HOME="/${USER}" \
        --volume "${HOME}/.kube:/${USER}/.kube" \
        kubectl \
            /usr/local/bin/kubectl version --client
  • docker

    go run ./cmd/uniget generate docker buildx docker-compose docker-scout --base cgr.dev/chainguard/static:latest \
    | docker build -t docker --load -
    docker run --interactive --tty --rm \
        --user "$(id -u):$(getent group docker | cut -d: -f3)" \
        --workdir "/${USER}" \
        --env USER="${USER}" \
        --env HOME="/${USER}" \
        --volume /var/run/docker.sock:/var/run/docker.sock \
        docker \
            /usr/local/bin/docker version

Build composite images

  • Docker and plugins (e.g. buildx, compose, scout)
  • Like kubectl and helm?
  • Use chainguard images like cgr.dev/chainguard/python:latest

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions