From 38b55cce85721e033ae96126f76f65eb7d629c3d Mon Sep 17 00:00:00 2001 From: Jordan Keister Date: Wed, 19 Oct 2022 08:52:03 -0500 Subject: [PATCH] update opm dockerfile example to cache Signed-off-by: Jordan Keister --- opm-example.Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opm-example.Dockerfile b/opm-example.Dockerfile index a59dfb1af..3e368fbc0 100644 --- a/opm-example.Dockerfile +++ b/opm-example.Dockerfile @@ -4,10 +4,11 @@ FROM quay.io/operator-framework/opm:latest # Configure the entrypoint and command ENTRYPOINT ["/bin/opm"] -CMD ["serve", "/configs"] +CMD ["serve", "/configs", "--cache-dir=/tmp/cache"] -# Copy declarative config root into image at /configs +# Copy declarative config root into image at /configs and pre-populate serve cache ADD index /configs +RUN ["/bin/opm", "serve", "/configs", "--cache-dir=/tmp/cache", "--cache-only"] # Set DC-specific label for the location of the DC root directory # in the image