From 4caa5a367fdcd885f13bc800fe5b0fee14adf3e0 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Sun, 25 Sep 2016 19:47:23 -0400 Subject: [PATCH] README: Add "Download all images" and "+Install all dockcross scripts" section --- README.rst | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.rst b/README.rst index 656f4d8..fe30d58 100644 --- a/README.rst +++ b/README.rst @@ -180,6 +180,36 @@ source cross-compiler Docker image or the dockcross script itself. - ``dockcross update``: Update both the docker image, and the dockcross script. +Download all images +------------------- + +To easily download all images, the convenience target ``display_all_images`` or ``display_default_images`` +could be used:: + + curl https://raw.githubusercontent.com/dockcross/dockcross/master/Makefile -o dockcross-Makefile + for image in $(make -f dockcross-Makefile display_all_images); do + echo "Pulling dockcross/$image" + docker pull dockcross/$image + done + +Install all dockcross scripts +----------------------------- + +To automatically install in ``~/bin`` the dockcross scripts for each images already downloaded, the +convenience target ``display_all_images`` or ``display_default_images`` could be used:: + + curl https://raw.githubusercontent.com/dockcross/dockcross/master/Makefile -o dockcross-Makefile + for image in $(make -f dockcross-Makefile display_all_images); do + if [[ $(docker images -q dockcross/$image) == "" ]]; then + echo "~/bin/dockcross-$image skipping: image not found locally" + continue + fi + echo "~/bin/dockcross-$image ok" + docker run dockcross/$image > ~/bin/dockcross-$image && \ + chmod u+x ~/bin/dockcross-$image + done + + Configuration -------------