Add version information to Quay on startup
Fixes https://jira.coreos.com/browse/QUAY-802
This commit is contained in:
parent
79258fc498
commit
3f1bfc3d9a
3 changed files with 30 additions and 1 deletions
12
displayversion.py
Normal file
12
displayversion.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from _init import __version__, __gitrev__
|
||||
|
||||
def displayversion():
|
||||
version_string = ('Quay %s (%s)' % (__version__, __gitrev__.strip())).strip()
|
||||
|
||||
print '=' * (len(version_string) + 4)
|
||||
print '= ' + version_string + ' ='
|
||||
print '=' * (len(version_string) + 4)
|
||||
print ""
|
||||
|
||||
if __name__ == "__main__":
|
||||
displayversion()
|
|
@ -6,7 +6,7 @@ cat << "EOF"
|
|||
\ \ \ \ / / | |__| | | |__| | / ____ \ | |
|
||||
\ \/ \ \/ / \_ ___/ \____/ /_/ \_\ |_|
|
||||
\__/ \__/ \ \__
|
||||
\___\ by CoreOS
|
||||
\___\ by Red Hat
|
||||
|
||||
Build, Store, and Distribute your Containers
|
||||
|
||||
|
|
|
@ -14,6 +14,23 @@ then
|
|||
fi
|
||||
|
||||
|
||||
cat << "EOF"
|
||||
__ __
|
||||
/ \ / \ ______ _ _ __ __ __
|
||||
/ /\ / /\ \ / __ \ | | | | / \ \ \ / /
|
||||
/ / / / \ \ | | | | | | | | / /\ \ \ /
|
||||
\ \ \ \ / / | |__| | | |__| | / ____ \ | |
|
||||
\ \/ \ \/ / \_ ___/ \____/ /_/ \_\ |_|
|
||||
\__/ \__/ \ \__
|
||||
\___\ by Red Hat
|
||||
|
||||
Build, Store, and Distribute your Containers
|
||||
|
||||
|
||||
EOF
|
||||
|
||||
venv/bin/python -m displayversion
|
||||
|
||||
case "$MODE" in
|
||||
"interactive")
|
||||
echo "Copying $MODE files"
|
||||
|
|
Reference in a new issue