1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 23:38:06 +02:00

Add a bin/images script

This commit is contained in:
Shane Kilkelly 2020-07-02 14:23:16 +01:00
parent 153835464a
commit 103c9d646a

25
bin/images Executable file
View file

@ -0,0 +1,25 @@
#! /usr/bin/env bash
set -euo pipefail
function usage() {
echo "Usage: bin/images"
echo ""
echo "Prints information about overleaf docker images on the system"
}
function __main__() {
if [[ "${1:-null}" == "help" ]] \
|| [[ "${1:-null}" == "--help" ]] ; then
usage && exit
fi
echo "---- Community Edition Images ----"
docker images | grep '^sharelatex/sharelatex\s'
echo "---- Server Pro Images ----"
docker images | grep '^quay.io/sharelatex/sharelatex-pro\s'
echo "---- TexLive Images ----"
docker images | grep '^quay.io/sharelatex/texlive'
}
__main__ "$@"