Skip to content

Commit a6145b6

Browse files
make pull before up
1 parent 63a3603 commit a6145b6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkgbuild/pkgbuild.install

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ post_install() {
1616
chown "$currentUser:$currentUser" -R "/home/$currentUser/Docker/open-notebook/"
1717
fi
1818

19+
# Pull images
20+
for image in $(grep 'image:' "/home/$currentUser/Docker/open-notebook/docker-compose.yml" | awk '{print $2}'); do
21+
echo "Please wait, this step takes time."
22+
docker pull $image 1>/dev/null
23+
done
24+
1925
# Start container
2026
docker compose -f "/home/$currentUser/Docker/open-notebook/docker-compose.yml" up -d
2127
}

0 commit comments

Comments
 (0)