Skip to content

Commit

Permalink
feat(enhancement): Add versioning for kubectlxtra and opkustomize (#10)
Browse files Browse the repository at this point in the history
* feat(enhancement): Add versioning for kubectlxtra and opkustomize
  • Loading branch information
alexbaeza authored Apr 13, 2024
1 parent e2f9817 commit 7dba2ef
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# git
.git
.gitattributes
.gitignore
.github

#IDEA
.idea

#VScode
.vscode

#files
release.config.js
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ARG KUBECTL_VERSION=1.29.2
ARG KUSTOMIZE_VERSION=5.4.1
ARG HELM_VERSION=3.14.3
ARG KUBECONFORM_VERSION=0.6.3
ARG OPKUSTOMIZE_VERSION=1.2.0
ARG KUBECTLXTRA_VERSION=1.0.0

COPY ./scripts/binary_installer.sh ./binary_installer.sh

Expand All @@ -22,11 +24,11 @@ SHELL ["/bin/bash", "-c"]
#Install kubectl
RUN ./binary_installer.sh kubectl binary "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/{INJECT_ARCH}/kubectl" /usr/bin/ help
## Install kubectlxtra (wrapper)
RUN ./binary_installer.sh kubectlxtra binary "https://github.com/alexbaeza/kubectlxtra/raw/main/kubectlxtra.sh" /usr/bin/ help
RUN ./binary_installer.sh kubectlxtra binary "https://raw.githubusercontent.com/alexbaeza/kubectlxtra/v${KUBECTLXTRA_VERSION}/kubectlxtra.sh" /usr/bin/ help
## Install kustomize
RUN ./binary_installer.sh kustomize tar "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_{INJECT_ARCH}.tar.gz" /usr/bin/ version
## Install opkustomize (wrapper)
RUN ./binary_installer.sh opkustomize binary "https://github.com/alexbaeza/opkustomize/raw/main/opkustomize.sh" /usr/bin/ help
RUN ./binary_installer.sh opkustomize binary "https://raw.githubusercontent.com/alexbaeza/opkustomize/v${OPKUSTOMIZE_VERSION}/opkustomize.sh" /usr/bin/ help
## Install Helm
RUN ./binary_installer.sh helm tar "https://get.helm.sh/helm-v${HELM_VERSION}-linux-{INJECT_ARCH}.tar.gz" /usr/bin/ "version"
## Install kubeconform
Expand Down

0 comments on commit 7dba2ef

Please sign in to comment.