From 5c4eb0bf9d7bc154e583f1d864984d56192ccb4b Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 6 Jul 2020 14:50:59 -0500 Subject: [PATCH] Add a command to trigger entrypoint cache creation stevedore will cache the entrypoint scan when needed. Since we just installed the things here, do an openstack --help to cause the entrypoints to get scanned at build time and for the cache file to be written into the container image. Change-Id: I73502be6d68c4a38561c9524b4def3c6a6f61ac6 --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ca60bb0ecb..bf5de3c755 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,7 @@ FROM docker.io/opendevorg/python-base:3.7 COPY --from=builder /output/ /output RUN /output/install-from-bindep +# Trigger entrypoint loading to trigger stevedore entrypoint caching +RUN openstack --help >/dev/null 2>&1 + CMD ["/usr/local/bin/openstack"]