-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
ci-prerequisites.sh
executable file
·45 lines (44 loc) · 2.07 KB
/
ci-prerequisites.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Reclaim disk space, otherwise we have too little free space at the start of a job
#
# Numbers as of 2023-01-06:
#
# $ df -h
# Filesystem Size Used Avail Use% Mounted on
# /dev/root 84G 48G 36G 58% /
# tmpfs 3.4G 172K 3.4G 1% /dev/shm
# tmpfs 1.4G 1.1M 1.4G 1% /run
# tmpfs 5.0M 0 5.0M 0% /run/lock
# /dev/sda15 105M 5.3M 100M 5% /boot/efi
# /dev/sdb1 14G 4.1G 9.0G 31% /mnt
# tmpfs 695M 12K 695M 1% /run/user/1001
#
# $ docker images
# REPOSITORY TAG IMAGE ID CREATED SIZE
# node 14-alpine b4fb2cece133 3 weeks ago 123MB
# node 16-alpine bb97fd22e6f8 3 weeks ago 118MB
# node 18-alpine 6d7b7852bcd3 3 weeks ago 169MB
# ubuntu 22.04 6b7dfa7e8fdb 3 weeks ago 77.8MB
# ubuntu 20.04 d5447fc01ae6 3 weeks ago 72.8MB
# ubuntu 18.04 251b86c83674 3 weeks ago 63.1MB
# node 14 c08c80352dd3 4 weeks ago 915MB
# node 16 993a4cf9c1e8 4 weeks ago 910MB
# node 18 209311a7c0e2 4 weeks ago 991MB
# buildpack-deps buster 623b2dda3870 4 weeks ago 803MB
# buildpack-deps bullseye 8cbf14941d59 4 weeks ago 835MB
# debian 10 528ac3ebe420 4 weeks ago 114MB
# debian 11 291bf168077c 4 weeks ago 124MB
# alpine 3.16 bfe296a52501 7 weeks ago 5.54MB
# moby/buildkit latest 383075513bdc 8 weeks ago 142MB
# alpine 3.14 dd53f409bf0b 4 months ago 5.6MB
# alpine 3.15 c4fc93816858 4 months ago 5.58MB
time docker rmi node:14 node:16 node:18 node:14-alpine node:16-alpine node:18-alpine buildpack-deps:buster buildpack-deps:bullseye
# That is 979M
time sudo rm -rf /usr/share/dotnet
# That is 1.7G
time sudo rm -rf /usr/share/swift
# Remove Android
time sudo rm -rf /usr/local/lib/android
# Remove Haskell
time sudo rm -rf /opt/ghc
# Remove pipx
time sudo rm -rf /opt/pipx