From 0b9c97d765216c9ca46465e013c2a5bb3201915b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 26 Mar 2024 09:33:54 +0100 Subject: [PATCH 1/2] feat: add openapi2jsonschema --- Containerfile.multiarch | 2 ++ README.md | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Containerfile.multiarch b/Containerfile.multiarch index 54b3039..b8bc0f6 100644 --- a/Containerfile.multiarch +++ b/Containerfile.multiarch @@ -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 && \ diff --git a/README.md b/README.md index 2f77ee5..ef41065 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,8 @@ Custom Kubernetes toolkit container based on Alpine. - kubeconform - kustomize - flux-local -- Fairwinds Polaris +- polaris +- openapi2jsonschema -- 2.24.4 From b89561491586fdaa3058d6f2dfe97111bdc20a4d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 26 Mar 2024 09:37:35 +0100 Subject: [PATCH 2/2] add gnumake --- Containerfile.multiarch | 2 +- README.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Containerfile.multiarch b/Containerfile.multiarch index b8bc0f6..7592eb1 100644 --- a/Containerfile.multiarch +++ b/Containerfile.multiarch @@ -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 && \ diff --git a/README.md b/README.md index ef41065..c175e92 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,10 @@ Custom Kubernetes toolkit container based on Alpine. +- curl +- make +- tar +- git - yq - helm - kubectl -- 2.24.4