1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

move install testing to script

This commit is contained in:
checktheroads
2020-02-24 07:58:07 -07:00
parent 8f15c8dabb
commit 78abce66b9
2 changed files with 19 additions and 2 deletions

View File

@ -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

17
.tests/install/ubuntu/setup.sh Executable file
View File

@ -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