From 3059e3ad11531e02d5cb8c6e9aa05296035f160a Mon Sep 17 00:00:00 2001 From: Micah van der Kolk Date: Fri, 17 Jun 2022 17:12:09 +1000 Subject: [PATCH] install openapi2json to convert schemas for kubeconform validation --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index cf88c98..aa712de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,12 @@ FROM cimg/ruby:3.1.1 +RUN sudo apt update && \ + sudo apt install python pip && \ + pip install pyyaml && \ + curl -L -o openapi2jsonschema.py "https://raw.githubusercontent.com/yannh/kubeconform/master/scripts/openapi2jsonschema.py" && \ + chmod 755 openapi2jsonschema.py && \ + sudo mv openapi2jsonschema.py /usr/bin/openapi2jsonschema.py + COPY --chown=circleci:circleci Gemfile* ./ RUN bundle install --jobs $(nproc) --retry 3 && \