summaryrefslogtreecommitdiff
path: root/etc/tasks/999-clean.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-01-29 14:38:49 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-01-29 14:38:49 -0500
commit73a53c48901e120a06d221c8cb4f02076e3b9888 (patch)
tree8fb5e157dc19b8b8d22af12b5a51288802d5b660 /etc/tasks/999-clean.sh
parent92f2ea6ed46ffae5302a47452d816b5dc5784eb7 (diff)
downloaddocker-python-73a53c48901e120a06d221c8cb4f02076e3b9888.tar.gz
Introduce real toolchain
Diffstat (limited to 'etc/tasks/999-clean.sh')
-rwxr-xr-xetc/tasks/999-clean.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/tasks/999-clean.sh b/etc/tasks/999-clean.sh
index 44f5d16..c791ec5 100755
--- a/etc/tasks/999-clean.sh
+++ b/etc/tasks/999-clean.sh
@@ -4,8 +4,17 @@ if [[ ! -f /.dockerenv ]]; then
exit 1
fi
+packages=(
+ gcc
+ gcc-c++
+ gcc-gfortran
+)
+sudo yum remove -y "${packages[@]}"
sudo yum clean all
+# Remove all static libraries
+sudo find "${TOOLCHAIN_LIB}" -name '*.a' -delete
+
sudo rm -rf "${HOME}/.astropy"
sudo rm -rf "${HOME}"/*
sudo rm -rf /tmp/*