Compare commits
2 Commits
7fc8641a1b
...
43ce3ac0dd
Author | SHA1 | Date | |
---|---|---|---|
|
43ce3ac0dd | ||
|
91380fdc13 |
@@ -50,7 +50,7 @@ docker images --format='{{.Repository}};{{.Tag}};{{.ID}}' | grep '<none>;<none>'
|
||||
# Get all used images tag in dir $PATH_ANALYSE
|
||||
find $PATH_ANALYSE -name 'Dockerfile*' | while read file; do cat $file; echo ''; done | grep -e FROM | cut -d ' ' -f 2 | sed $'s/[^[:print:]\t]//g' | sort -u | xargs -n1 docker pull
|
||||
# Calculate total docker images size
|
||||
docker images --format {{.ID}} | xargs -n1 docker inspect | jq '.[0]["Size"]' | paste -sd + | bc | format_bytes_str
|
||||
docker images --format {{.ID}} | xargs -n1 docker inspect | jq '.[0]["Size"]' | paste -sd + | bc | format_bytes
|
||||
```
|
||||
|
||||
## Remove every user R packages
|
||||
|
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
# Print out escape sequences usable for coloured text on tty.
|
||||
# shellcheck disable=2016
|
||||
printf 'Colour escapes are %s\n' '\e[${value};...;${value}m'
|
||||
|
Reference in New Issue
Block a user