diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-11-05 21:26:34 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-11-05 21:26:34 +0900 |
commit | fc56c53d04d7e499a91d0526842a6072477ddb96 (patch) | |
tree | 3675ef7d3b2f904b843f1c969b0f9b110c458724 /install-build-deps.sh | |
parent | 6e6e5066c7ad83ad2daf8f8ccbe7231211e41c97 (diff) |
add install-build-deps.sh and fix docker build procedure
Diffstat (limited to 'install-build-deps.sh')
-rwxr-xr-x | install-build-deps.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/install-build-deps.sh b/install-build-deps.sh new file mode 100755 index 0000000..9f8e9e7 --- /dev/null +++ b/install-build-deps.sh @@ -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 |