Added install_clean.sh utility

This commit is contained in:
Steve Kamerman
2017-10-16 23:31:26 -04:00
committed by Kingdon Barrett
parent ffc1f6db05
commit fcc1283c85
3 changed files with 14 additions and 0 deletions

10
image/bin/install_clean.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
# Apt installer helper for Docker images
set -e
echo "Installing $*"
apt-get -q update && apt-get -qy install $* \
&& apt-get -qy autoremove \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*

View File

@@ -9,3 +9,6 @@ ln -s /usr/bin/vim.tiny /usr/bin/vim
## This tool runs a command as another user and sets $HOME.
cp /bd_build/bin/setuser /sbin/setuser
## This tool allows installation of apt packages with automatic cache cleanup.
cp /bd_build/bin/install_clean.sh /sbin/install_clean.sh