Compare commits

...

2 Commits

4 changed files with 7 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ docker images --format='{{.Repository}};{{.Tag}};{{.ID}}' | grep '<none>;<none>'
# Get all used images tag in dir $PATH_ANALYSE # 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 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 # 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 ## Remove every user R packages

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e
# Print out escape sequences usable for coloured text on tty. # Print out escape sequences usable for coloured text on tty.
# shellcheck disable=2016 # shellcheck disable=2016
printf 'Colour escapes are %s\n' '\e[${value};...;${value}m' printf 'Colour escapes are %s\n' '\e[${value};...;${value}m'

View File

@@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -e
__r__(){ __r__(){
end="$1" end="$1"
for _ in $(seq 1 "$end"); do for _ in $(seq 1 "$end"); do

View File

@@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -e
__r__(){ __r__(){
end="$1" end="$1"
for _ in $(seq 1 "$end"); do for _ in $(seq 1 "$end"); do