From 3d827e673f3aa8f497b28b1b2109da3f67ab1a7f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 1 Nov 2019 14:35:33 -0400 Subject: [PATCH] fix: switch from dpkg to apt for installing dpkg-packages This allows us to install multiple packages in a single call, which fixes issues where any of the packages depend on one another. Closes #30 --- internal-functions | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal-functions b/internal-functions index f2781b6..00ccc43 100755 --- a/internal-functions +++ b/internal-functions @@ -100,10 +100,9 @@ if [ -f $DIR/apt-packages ]; then apt-get install -y \$PACKAGES fi if [ -d $DIR/dpkg-packages ]; then - for pkg in $DIR/dpkg-packages/*.deb; do - echo "-----> Injecting package: \$pkg" - dpkg -i \$pkg - done + PACKAGES=\$(find $DIR/dpkg-packages -type f -name '*.deb' | tr "\\n" " ") + echo "-----> Injecting packages: \$PACKAGES" + apt install -y \$PACKAGES fi rm -rf /tmp/apt sleep 1 # wait so that docker run has not exited before docker attach