File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -28,22 +28,6 @@ RUNFILES="${PYTHON_RUNFILES:-$(guess_runfiles)}"
2828
2929DOCKER=" ${DOCKER:- docker} "
3030
31- function list_diffids() {
32- for image in $( " ${DOCKER} " images -aq 2> /dev/null) ;
33- do
34- for entry in $( " ${DOCKER} " inspect -f ' {{json .RootFS.Layers}}' " ${image} " ) ;
35- do
36- echo -n $entry | python -mjson.tool | grep sha256 | cut -d' "' -f 2 | cut -d' :' -f 2
37- done
38- done
39- }
40-
41- # Fetch the diff ids of the layers loaded in the docker daemon already
42- IMAGES=$( list_diffids | sort | uniq)
43- IMAGE_LEN=$( for i in $IMAGES ; do echo -n $i | wc -c; done | sort -g | head -1 | xargs)
44-
45- [ -n " $IMAGE_LEN " ] || IMAGE_LEN=64
46-
4731# Create temporary files in which to record things to clean up.
4832TEMP_FILES=" $( mktemp -t 2> /dev/null || mktemp -t ' rules_docker_files' ) "
4933TEMP_IMAGES=" $( mktemp -t 2> /dev/null || mktemp -t ' rules_docker_images' ) "
You can’t perform that action at this time.
0 commit comments