feat: add openapi2jsonschema
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2023-03-08 13:12:35 +01:00
parent d37d778e6c
commit ae159035ad
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -30,12 +30,16 @@ ENV SPELLCHECKER_VERSION="${SPELLCHECKER_VERSION:-6.1.1}"
ENV JSBEAUTIFY_VERSION="${JSBEAUTIFY_VERSION:-1.14.7}" ENV JSBEAUTIFY_VERSION="${JSBEAUTIFY_VERSION:-1.14.7}"
# renovate: datasource=pypi depName=yamllint # renovate: datasource=pypi depName=yamllint
ENV YAMLLINT_VERSION="${YAMLLINT_VERSION:-1.29.0}" ENV YAMLLINT_VERSION="${YAMLLINT_VERSION:-1.29.0}"
# renovate: datasource=github-releases depName=yannh/kubeconform
ENV KUBECONFORM_VERSION="${KUBECONFORM_VERSION:-v0.5.0}"
RUN apk --update add --no-cache python3 py3-pip curl make tar git bash && \ RUN apk --update add --no-cache python3 py3-pip curl make tar git bash && \
curl -SsfL -o /usr/local/bin/gomplate "https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_${TARGETOS}-${TARGETARCH}${TARGETVARIANT}" && \ curl -SsfL -o /usr/local/bin/gomplate "https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_${TARGETOS}-${TARGETARCH}${TARGETVARIANT}" && \
curl -SsfL -o /usr/local/bin/url-parser "https://github.com/thegeeklab/url-parser/releases/download/${URL_PARSER_VERSION}/url-parser-${TARGETOS}-${TARGETARCH}${TARGETVARIANT//v/-}" && \ curl -SsfL -o /usr/local/bin/url-parser "https://github.com/thegeeklab/url-parser/releases/download/${URL_PARSER_VERSION}/url-parser-${TARGETOS}-${TARGETARCH}${TARGETVARIANT//v/-}" && \
curl -SsfL -o /usr/local/bin/openapi2jsonschema "https://raw.githubusercontent.com/yannh/kubeconform/${KUBECONFORM_VERSION}/scripts/openapi2jsonschema.py" && \
chmod 755 /usr/local/bin/gomplate && \ chmod 755 /usr/local/bin/gomplate && \
chmod 755 /usr/local/bin/url-parser && \ chmod 755 /usr/local/bin/url-parser && \
chmod 755 /usr/local/bin/openapi2jsonschema && \
npm install -q --location=global \ npm install -q --location=global \
"prettier@$PRETTIER_VERSION" \ "prettier@$PRETTIER_VERSION" \
"spellchecker-cli@$SPELLCHECKER_VERSION" \ "spellchecker-cli@$SPELLCHECKER_VERSION" \