Skip to content

Commit 9798653

Browse files
authoredOct 19, 2022
update opm dockerfile example to cache (operator-framework#1033)
Signed-off-by: Jordan Keister <[email protected]> Signed-off-by: Jordan Keister <[email protected]>
1 parent 614d6a9 commit 9798653

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎opm-example.Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ FROM quay.io/operator-framework/opm:latest
44

55
# Configure the entrypoint and command
66
ENTRYPOINT ["/bin/opm"]
7-
CMD ["serve", "/configs"]
7+
CMD ["serve", "/configs", "--cache-dir=/tmp/cache"]
88

9-
# Copy declarative config root into image at /configs
9+
# Copy declarative config root into image at /configs and pre-populate serve cache
1010
ADD index /configs
11+
RUN ["/bin/opm", "serve", "/configs", "--cache-dir=/tmp/cache", "--cache-only"]
1112

1213
# Set DC-specific label for the location of the DC root directory
1314
# in the image

0 commit comments

Comments
 (0)
Please sign in to comment.