diff options
| author | Monty Taylor <mordred@inaugust.com> | 2020-07-06 14:50:59 -0500 |
|---|---|---|
| committer | Monty Taylor <mordred@inaugust.com> | 2020-07-06 14:53:50 -0500 |
| commit | 5c4eb0bf9d7bc154e583f1d864984d56192ccb4b (patch) | |
| tree | d56e159b857977848de3d1cc5ccacd386f476c3b | |
| parent | 870cf0114848f145f15a78415e3f4203c6338cd1 (diff) | |
| download | python-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-- | Dockerfile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"] |
