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:
@ -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
|
Reference in New Issue
Block a user