You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zip 2019-09-26-raspbian-buster-lite.zip 2019-09-26-raspbian-buster-lite.img
at this point,I realized that for some unknown reason,the zipped file wasn't decompressed correctly by the zip utility,which gives a generic unzip extraction error. So,I've thought to use tar and the error is gone. So we can jump to step 3 :
tar -czvf 2019-09-26-raspbian-buster-lite.tar.gz 2019-09-26-raspbian-buster-lite.img
So,now I had to modify slightly Dockerfile and entrypoint.sh files like this :
entrypoint.sh :
#!/bin/sh
GIB_IN_BYTES="1073741824"
target="${1:-pi1}"
image_path="/sdcard/filesystem.img"
zip_path="/filesystem.tar.gz"
if [ ! -e $image_path ]; then
# echo "No filesystem detected at ${image_path}!"
if [ -e $zip_path ]; then
echo "Extracting fresh filesystem..."
# unzip $zip_path
tar -xzvf $zip_path
mv *.img $image_path
else
exit 1
fi
fi
Dockerfile :
FROM dockerpi-vm as dockerpi
ARG FILESYSTEM_IMAGE_URL="http://ziomario.ns0.it/2019-09-26-raspbian-buster-lite.tar.gz"
ADD $FILESYSTEM_IMAGE_URL /filesystem.tar.gz
But as I said at the beginning,I wanted to have persistent data storage,but only for the VM model 3,the one with the parameter "machine=raspi3b". I realized that starting the container like this :
-v $HOME/.dockerpi:/sdcard lukechilds/dockerpi
it enables the persistence of the datas only for the VM model 1,the one with the paramter "machine=versatilepb" but I'm not interested to it AND if I start the VM like this :
My goal is to enable the persistent data storage using a bigger raspbian buster image file. This is what I did :
at this point,I realized that for some unknown reason,the zipped file wasn't decompressed correctly by the zip utility,which gives a generic unzip extraction error. So,I've thought to use tar and the error is gone. So we can jump to step 3 :
So,now I had to modify slightly Dockerfile and entrypoint.sh files like this :
But as I said at the beginning,I wanted to have persistent data storage,but only for the VM model 3,the one with the parameter "machine=raspi3b". I realized that starting the container like this :
-v $HOME/.dockerpi:/sdcard lukechilds/dockerpi
it enables the persistence of the datas only for the VM model 1,the one with the paramter "machine=versatilepb" but I'm not interested to it AND if I start the VM like this :
-v $HOME/.dockerpi:/sdcard lukechilds/dockerpi pi3
it is not supported. It doesn't even enable the persistence for the VM model 3,but only for the model 1. So,let's jump to point 6)
and finally,point 7 :
The text was updated successfully, but these errors were encountered: