Skip to content

Commit 5c4eb0b

Browse files
committed
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
1 parent 870cf01 commit 5c4eb0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ FROM docker.io/opendevorg/python-base:3.7
2323
COPY --from=builder /output/ /output
2424
RUN /output/install-from-bindep
2525

26+
# Trigger entrypoint loading to trigger stevedore entrypoint caching
27+
RUN openstack --help >/dev/null 2>&1
28+
2629
CMD ["/usr/local/bin/openstack"]

0 commit comments

Comments
 (0)