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
This commit is contained in:
Monty Taylor 2020-07-06 14:50:59 -05:00
parent 870cf01148
commit 5c4eb0bf9d

View File

@ -23,4 +23,7 @@ FROM
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"]