mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 00:38:06 +00:00
move install testing to script
This commit is contained in:
parent
8f15c8dabb
commit
78abce66b9
2 changed files with 19 additions and 2 deletions
|
|
@ -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
17
.tests/install/ubuntu/setup.sh
Executable 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
|
||||
Loading…
Add table
Reference in a new issue