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:
parent
153835464a
commit
103c9d646a
1 changed files with 25 additions and 0 deletions
25
bin/images
Executable file
25
bin/images
Executable 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__ "$@"
|
Loading…
Add table
Add a link
Reference in a new issue