-
Notifications
You must be signed in to change notification settings - Fork 163
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
Adding Kubectl to Docker container #277
base: v2.6
Are you sure you want to change the base?
Conversation
Any plans to merge this? |
Please merge this. |
I updated the commit to the latest Alpine as in the main branch |
@Arno500 alpine comes with wget, that way you dont have to install curl. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Arno500 you can take this.
FROM alpine:3.13
RUN apk add --no-cache ca-certificates openssh-client
RUN wget -q https://storage.googleapis.com/kubernetes-release/release/$(wget -q --output-document - https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod u+x kubectl && mv kubectl /bin/kubectl
COPY rancher /usr/bin/
WORKDIR /mnt
ENTRYPOINT ["rancher"]
CMD ["--help"]
@Arno500 the master branch is not the default branch and dosn`t build. Maybe you can try to pullrequest it to the v2.6 for faster merge. |
@Trackhe, can you relaunch the checks? Thanks! |
This would actually be nice to be able to use Rancher CLI with kubectl commands in CI/CD pipelines and only provide a token. It's also not much to add to the container.