ucloud-setup/init.sh
2019-08-31 15:13:44 +05:00

37 lines
No EOL
882 B
Bash

# 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
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
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing
EOF
# Update Package List and Upgrade System
apk update
apk upgrade
# Install system packages
apk add python3 ceph py2-pip py3-pip
# Some python package dependencies
apk add libffi-dev openssl-dev make alpine-sdk gcc g++ python3-dev
apk add py3-grpcio py3-protobuf
pip3 install --upgrade pip
pip2 install --upgrade pip
# For CEPH
pip2 install prettytable
pip3 install pipenv
pipenv install
pipenv shell