A
This commit is contained in:
parent
23b61a7442
commit
d8bbf22c79
7 changed files with 162 additions and 225 deletions
41
init.sh
41
init.sh
|
|
@ -1,10 +1,17 @@
|
|||
# Install QEMU
|
||||
(git clone https://github.com/ahmedbilal/qemu-with-rbd-alpine.git \
|
||||
&& cd qemu-with-rbd-alpine && apk add *.apk --allow-untrusted)
|
||||
get_distro() {
|
||||
OS=$(cat /etc/*release | grep ID | head -1 | cut -c 4-)
|
||||
echo $OS
|
||||
}
|
||||
|
||||
case $(get_distro) in
|
||||
"alpine")
|
||||
# Install QEMU
|
||||
(git clone https://github.com/ahmedbilal/qemu-with-rbd-alpine.git \
|
||||
&& cd qemu-with-rbd-alpine && apk add *.apk --allow-untrusted)
|
||||
|
||||
|
||||
# Enable Alpine (3.10 + Edge) Repos
|
||||
cat > /etc/apk/repositories << EOF
|
||||
# Enable Alpine (3.10 + Edge) Repos
|
||||
cat > /etc/apk/repositories << EOF
|
||||
http://dl-cdn.alpinelinux.org/alpine/v3.10/main
|
||||
http://dl-cdn.alpinelinux.org/alpine/v3.10/community
|
||||
http://dl-cdn.alpinelinux.org/alpine/edge/main
|
||||
|
|
@ -13,17 +20,25 @@ http://dl-cdn.alpinelinux.org/alpine/edge/testing
|
|||
EOF
|
||||
|
||||
|
||||
# Update Package List and Upgrade System
|
||||
apk update
|
||||
apk upgrade
|
||||
# Update Package List and Upgrade System
|
||||
apk update
|
||||
apk upgrade
|
||||
|
||||
# Install system packages
|
||||
apk add python3 ceph py2-pip py3-pip etcd-ctl
|
||||
# Install system packages
|
||||
apk add python3 ceph py2-pip py3-pip etcd-ctl
|
||||
|
||||
# Some python package dependencies
|
||||
apk add libffi-dev openssl-dev make alpine-sdk gcc g++ python3-dev
|
||||
# Some python package dependencies
|
||||
apk add libffi-dev openssl-dev make alpine-sdk gcc g++ python3-dev
|
||||
|
||||
apk add py3-grpcio py3-protobuf py3-tempita
|
||||
apk add py3-grpcio py3-protobuf py3-tempita
|
||||
;;
|
||||
"devuan")
|
||||
apt update
|
||||
apt upgrade
|
||||
|
||||
apt install python3 qemu
|
||||
|
||||
esac
|
||||
|
||||
pip3 install --upgrade pip
|
||||
pip2 install --upgrade pip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue