mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-10 05:07:26 +01:00
README: Add "Download all images" and "+Install all dockcross scripts" section
This commit is contained in:
parent
aa4735ddf2
commit
4caa5a367f
30
README.rst
30
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
|
||||
-------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user