summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2020-07-06 14:50:59 -0500
committerMonty Taylor <mordred@inaugust.com>2020-07-06 14:53:50 -0500
commit5c4eb0bf9d7bc154e583f1d864984d56192ccb4b (patch)
treed56e159b857977848de3d1cc5ccacd386f476c3b
parent870cf0114848f145f15a78415e3f4203c6338cd1 (diff)
downloadpython-openstackclient-5c4eb0bf9d7bc154e583f1d864984d56192ccb4b.tar.gz
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
-rw-r--r--Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index ca60bb0e..bf5de3c7 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"]