tcup default to printing documentation if run without tcup.py

There should only be one way of running tcup. To make it clear
to users that might attempt directly running the Docker image,
that they must use tcup.py, print the documentation to those
users via STDOUT. It also ensures that users get the correct
documentation for running their version of the tcup image.

Change-Id: Id18f1316c5d7ee4f64c0c2c1c6a32cfc6b648b35
This commit is contained in:
Eric Windisch 2014-06-11 15:26:28 -07:00
parent 5e7f95254b
commit 8454877d17

View File

@ -47,3 +47,9 @@ RUN pip install -r /refstack/test-requirements.txt
# Running tempest setup
RUN cd tempest && git checkout stable/havana
RUN cd tempest && python setup.py install
# The tcup.py frontend must be used to run this Docker image
# The following CMD statement will run and print the documentation
# to inform the user of the proper way of running tcup. This
# CMD statement is overriden by tcup.py
CMD cat refstack/doc/tcup.md