'Generic Commit'
This commit is contained in:
parent
79586050bf
commit
6e0c9e830a
@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
build-essential \
|
build-essential \
|
||||||
cmake \
|
cmake \
|
||||||
git \
|
git \
|
||||||
nlohmann-json3-dev wget curl cmake ninja-build mold build-essential nodejs npm jq \
|
nlohmann-json3-dev wget curl cmake ninja-build mold build-essential nodejs npm jq ccache \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
#RUN curl -fsSL https://get.docker.com | sh
|
#RUN curl -fsSL https://get.docker.com | sh
|
||||||
|
@ -67,8 +67,6 @@ function check_packages() {
|
|||||||
fi
|
fi
|
||||||
echo "Package $pkg is installed"
|
echo "Package $pkg is installed"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -260,6 +258,8 @@ function buildspawn() {
|
|||||||
# ----------------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
check_packages
|
||||||
|
|
||||||
while getopts "rm" opt; do
|
while getopts "rm" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
r)
|
r)
|
||||||
|
@ -79,12 +79,12 @@ function install_packages() {
|
|||||||
case $OS in
|
case $OS in
|
||||||
"Ubuntu"|"Debian GNU/Linux")
|
"Ubuntu"|"Debian GNU/Linux")
|
||||||
# Common packages for both Ubuntu and Debian
|
# Common packages for both Ubuntu and Debian
|
||||||
PACKAGES="build-essential cmake git wget tar curl ninja-build mold nodejs npm perl jq"
|
PACKAGES="build-essential cmake git wget tar curl ninja-build mold nodejs npm perl jq ccache"
|
||||||
INSTALLCMD="apt-get install -y"
|
INSTALLCMD="apt-get install -y"
|
||||||
UPDATECMD="apt-get update"
|
UPDATECMD="apt-get update"
|
||||||
;;
|
;;
|
||||||
"Alpine Linux")
|
"Alpine Linux")
|
||||||
PACKAGES="build-base cmake git wget tar curl ninja mold nodejs npm linux-headers perl jq"
|
PACKAGES="build-base cmake git wget tar curl ninja mold nodejs npm linux-headers perl jq ccache"
|
||||||
INSTALLCMD="apk add --no-cache"
|
INSTALLCMD="apk add --no-cache"
|
||||||
UPDATECMD="apk update"
|
UPDATECMD="apk update"
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user