Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shims for tools #499

Open
6 tasks
nicholasdille opened this issue Sep 5, 2023 · 0 comments
Open
6 tasks

Add shims for tools #499

nicholasdille opened this issue Sep 5, 2023 · 0 comments

Comments

@nicholasdille
Copy link
Contributor

nicholasdille commented Sep 5, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant