feat: add openapi2jsonschema (#123)
ci/woodpecker/push/build-package Pipeline was successful Details
ci/woodpecker/push/build-container Pipeline was successful Details
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/notify Pipeline was successful Details

Reviewed-on: #123
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
Robert Kaussow 2024-03-26 09:44:32 +01:00 committed by Robert Kaussow
parent fd445e7f69
commit 1337dfd88a
2 changed files with 9 additions and 2 deletions

View File

@ -40,7 +40,7 @@ ENV FLUX_VERSION="${FLUX_VERSION:-v2.2.3}"
ENV PIPX_HOME=/opt/pipx
ENV PIPX_BIN_DIR=/usr/local/bin
RUN apk --update add curl tar bash python3 pipx findutils git && \
RUN apk --update add curl tar make bash python3 pipx findutils git && \
apk --no-cache upgrade libcrypto3 libssl3 && \
pipx install --include-deps flux-local=="$FLUX_LOCAL_VERSION" && \
pipx inject flux-local PyYAML && \
@ -48,6 +48,7 @@ RUN apk --update add curl tar bash python3 pipx findutils git && \
curl -SsfL -o /usr/local/bin/kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl" && \
curl -SsfL -o /usr/local/bin/kubectl-convert "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl-convert" && \
curl -SsfL -o /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_${TARGETOS}_${TARGETARCH}" && \
curl -SsfL -o /usr/local/bin/openapi2jsonschema "https://raw.githubusercontent.com/yannh/kubeconform/${KUBECONFORM_VERSION}/scripts/openapi2jsonschema.py" && \
curl -SsfL "https://get.helm.sh/helm-${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz" \
| tar xz --strip-components=1 -C /usr/local/bin "${TARGETOS}-${TARGETARCH}/helm" && \
curl -SsfL "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_${TARGETOS}_${TARGETARCH}.tar.gz" \
@ -61,6 +62,7 @@ RUN apk --update add curl tar bash python3 pipx findutils git && \
chmod 755 /usr/local/bin/kubectl && \
chmod 755 /usr/local/bin/kubectl-convert && \
chmod 755 /usr/local/bin/yq && \
chmod 755 /usr/local/bin/openapi2jsonschema && \
chmod 755 /usr/local/bin/helm && \
chmod 755 /usr/local/bin/kustomize && \
chmod 755 /usr/local/bin/kubeconform && \

View File

@ -18,13 +18,18 @@ Custom Kubernetes toolkit container based on Alpine.
<!-- spellchecker-disable -->
- curl
- make
- tar
- git
- yq
- helm
- kubectl
- kubeconform
- kustomize
- flux-local
- Fairwinds Polaris
- polaris
- openapi2jsonschema
<!-- spellchecker-enable -->