Skip to content

Commit

Permalink
add clearing cache to justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikN committed Aug 12, 2024
1 parent 286a35d commit ad6a2aa
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,23 @@ publish:
#!/bin/bash
export SNAPCRAFT_STORE_CREDENTIALS=$(cat exported.txt)
snapcraft login
snapcraft upload --release edge husarion-rplidar*.snap
snapcraft upload --release edge husarion-rplidar*.snap

list-lxd-cache:
#!/bin/bash
sudo du -h --max-depth=1 /var/snap/lxd/common/lxd/storage-pools/default/containers/ | sort -h

remove-lxd-cache:
#!/bin/bash
lxc project switch snapcraft

for container in $(lxc list --format csv -c n); do
lxc delete $container --force
done

echo "verify:"
sudo du -h --max-depth=1 /var/snap/lxd/common/lxd/storage-pools/default/containers/
df -h

lxc project switch default

0 comments on commit ad6a2aa

Please sign in to comment.