From 78abce66b90206ae627cbf005d1c042862eee740 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Mon, 24 Feb 2020 07:58:07 -0700 Subject: [PATCH] move install testing to script --- .tests/install/ubuntu/Dockerfile | 4 ++-- .tests/install/ubuntu/setup.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100755 .tests/install/ubuntu/setup.sh diff --git a/.tests/install/ubuntu/Dockerfile b/.tests/install/ubuntu/Dockerfile index 30cdae7..dadefd8 100644 --- a/.tests/install/ubuntu/Dockerfile +++ b/.tests/install/ubuntu/Dockerfile @@ -1,8 +1,8 @@ FROM ubuntu:bionic as base WORKDIR /tmp +COPY .tests/install/ubuntu/setup.sh /tmp/init.sh COPY ./install.sh /tmp/install.sh -RUN apt-get update && apt-get install -y apt-utils \ - && apt-get install -y curl git gnupg build-essential +RUN bash /tmp/init.sh # FROM base as install # RUN bash /tmp/install.sh diff --git a/.tests/install/ubuntu/setup.sh b/.tests/install/ubuntu/setup.sh new file mode 100755 index 0000000..23b9fbe --- /dev/null +++ b/.tests/install/ubuntu/setup.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +echo "[INFO] Disabling multiverse repos..." +sed -i -e '/multiverse/s/^#*/#\ /g' /etc/apt/sources.list +cat /etc/apt/sources.list + +echo "[INFO] Updating package repos..." +apt-get update &> /dev/null + +echo "[INFO] Installing apt-utils..." +apt-get install -y apt-utils > /dev/null + +echo "[INFO] Installing base dependencies..." +apt-get install -y curl git gnupg dialog build-essential > /dev/null + +echo '[SUCCESS] Completed build' +exit 0 \ No newline at end of file