add install-build-deps.sh and fix docker build procedure

This commit is contained in:
Ryo Nakamura
2022-11-05 21:26:34 +09:00
parent 6e6e5066c7
commit fc56c53d04
7 changed files with 65 additions and 31 deletions

16
install-build-deps.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash -e
source /etc/os-release
set -x
case $ID in
ubuntu*)
apt-get install -y gcc make cmake libssh-dev
;;
centos* | rhel*)
dnf install -y gcc make cmake libssh-devel rpm-build
;;
*)
echo "unsupported dependency install: $ID"
exit 1
esac