From 8454877d1740a0305c32c024c198cd7ff277ba2d Mon Sep 17 00:00:00 2001 From: Eric Windisch Date: Wed, 11 Jun 2014 15:26:28 -0700 Subject: [PATCH] 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 --- scripts/tcup/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/tcup/Dockerfile b/scripts/tcup/Dockerfile index 197cdbbf..c0b267a0 100644 --- a/scripts/tcup/Dockerfile +++ b/scripts/tcup/Dockerfile @@ -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