Mayank
5 years ago
No known key found for this signature in database
GPG Key ID: D037D60476CE748C
2 changed files with
10 additions and
7 deletions
-
stage2/01-sys-tweaks/files/rc.local
-
stage2/05-docker-compose/01-run.sh
|
|
@ -44,10 +44,13 @@ fi |
|
|
|
|
|
|
|
# Check if docker images have been loaded |
|
|
|
if [ ! -f /home/umbrel/statuses/images-loaded ]; then |
|
|
|
if [ -f /home/umbrel/umbrel-docker-images.tar ]; then |
|
|
|
echo "Loading docker images" |
|
|
|
docker load -i /home/umbrel/umbrel-docker-images.tar || exit 1 |
|
|
|
rm -f /home/umbrel/umbrel-docker-images.tar |
|
|
|
if [ -f /home/umbrel/umbrel-docker-images.tar.gz ]; then |
|
|
|
echo "Loading pre-bundled Docker images" |
|
|
|
start=`date +%s` |
|
|
|
docker load -i /home/umbrel/umbrel-docker-images.tar.gz || exit 1 |
|
|
|
end=`date +%s` |
|
|
|
echo "It took $((($end - $start)/60)) minutes ($((end - start)) seconds) to load all the images" |
|
|
|
rm -f /home/umbrel/umbrel-docker-images.tar.gz |
|
|
|
touch /home/umbrel/statuses/images-loaded |
|
|
|
chown -R umbrel.umbrel /home/umbrel/statuses/images-loaded |
|
|
|
else |
|
|
|
|
|
@ -41,6 +41,6 @@ while IFS= read -r image; do |
|
|
|
docker pull --platform=linux/arm/v7 $image |
|
|
|
done <<< "$IMAGES" |
|
|
|
|
|
|
|
docker save $IMAGES -o umbrel-docker-images.tar |
|
|
|
du -h umbrel-docker-images.tar |
|
|
|
cp umbrel-docker-images.tar ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/umbrel-docker-images.tar |
|
|
|
docker save $IMAGES | gzip > umbrel-docker-images.tar.gz |
|
|
|
du -h umbrel-docker-images.tar.gz |
|
|
|
cp umbrel-docker-images.tar.gz ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/umbrel-docker-images.tar.gz |