Skip to content

Commit ce64808

Browse files
authored
RHAIENG-2111: chore(trustyai): clean up temporary build files (#2740)
1 parent 0982c10 commit ce64808

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

jupyter/trustyai/ubi9-python-3.12/devel_env_setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ if [[ $(uname -m) == "ppc64le" ]] || [[ $(uname -m) == "s390x" ]]; then
196196

197197
uv pip list
198198
cd ${CURDIR}
199+
200+
# cleanup temporary build files
201+
rm -rf ${TMP}
199202
else
200203
# only for mounting on non-ppc64le and non-s390x
201204
mkdir -p /root/OpenBLAS/

jupyter/utils/install_pdf_deps.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,21 @@ fi
2727
echo "Installing TexLive to allow PDf export from Notebooks"
2828
curl -fL https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz -o install-tl-unx.tar.gz
2929
zcat < install-tl-unx.tar.gz | tar xf -
30-
cd install-tl-2*
30+
rm install-tl-unx.tar.gz
31+
pushd install-tl-2*
3132
perl ./install-tl --no-interaction --scheme=scheme-small --texdir=/usr/local/texlive
33+
popd
34+
rm -rf install-tl-2*
3235
mv /usr/local/texlive/bin/"$(uname -m)-linux" /usr/local/texlive/bin/linux
33-
cd /usr/local/texlive/bin/linux
36+
pushd /usr/local/texlive/bin/linux
3437
./tlmgr install tcolorbox pdfcol adjustbox titling enumitem soul ucs collection-fontsrecommended
38+
popd
3539

3640
# pandoc installation
3741
curl -fL "https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-linux-${ARCH}.tar.gz" -o /tmp/pandoc.tar.gz
3842
mkdir -p /usr/local/pandoc
3943
tar xvzf /tmp/pandoc.tar.gz --strip-components 1 -C /usr/local/pandoc/
4044
rm -f /tmp/pandoc.tar.gz
45+
46+
# clean up /tmp
47+
rm -rf /tmp/* /tmp/.[!.]*

0 commit comments

Comments
 (0)