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

Container image containing CLI for each language #2149

Open
MalteMagnussen opened this issue Oct 2, 2023 · 1 comment
Open

Container image containing CLI for each language #2149

MalteMagnussen opened this issue Oct 2, 2023 · 1 comment
Labels
@component/cdk8s-cli Issue related to cdk8s-cli effort/large 1+ weeks feature-request New/Enhanced functionality wanted priority/p2 Dependent on community feedback. PR's are welcome :)

Comments

@MalteMagnussen
Copy link

Description of the feature or enhancement:

I'd like the cdk8s-team to provide offical images for the cli, for each language ( python, go, typescript, etc, )

I'd like to be able to easily find that image via Google on something like Docker Hub.

Use Case:

I'd like to make a pipeline where I run something like this:

cdk8s import go-app
cdk8s import <insert various crds>
go run *.go  # Synthesize app
kubectl apply dist/

This requires the tools (Go and cdk8s) to be present in the CI environment.

In most CI providers, you can run inside of an image.

So to avoid everyone using cdk8s in automation to have to build their own image, you could provide an official one, and save us a lot of time :)


This is a 🚀 Feature Request

@MalteMagnussen MalteMagnussen added feature-request New/Enhanced functionality wanted needs-triage Priority and effort undetermined yet labels Oct 2, 2023
@MalteMagnussen
Copy link
Author

Did something like this for cdk8s with Golang

FROM node
RUN npm install -g cdk8s-cli
COPY --from=go /usr/local/go/ /usr/local/go/
ENV PATH="/usr/local/go/bin:${PATH}"
WORKDIR /root
ENTRYPOINT [ "cdk8s" ]

Then I can build it like docker build . --tag cdk8s

And synth my stuff like docker run -v .:/root cdk8s synth

Then people don't need to install a lot of things locally to try out my cdk8s project :) They just need Docker.

@iliapolo iliapolo added effort/large 1+ weeks priority/p2 Dependent on community feedback. PR's are welcome :) and removed needs-triage Priority and effort undetermined yet labels Jun 1, 2024
@iliapolo iliapolo added the @component/cdk8s-cli Issue related to cdk8s-cli label Sep 20, 2024
@iliapolo iliapolo transferred this issue from cdk8s-team/cdk8s-cli Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@component/cdk8s-cli Issue related to cdk8s-cli effort/large 1+ weeks feature-request New/Enhanced functionality wanted priority/p2 Dependent on community feedback. PR's are welcome :)
Projects
None yet
Development

No branches or pull requests

2 participants