Install python3-pip libffi-dev python3-venv in postinstall instead of during the TP
Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
parent
71d3eeb017
commit
6fe575b9ac
|
@ -22,12 +22,18 @@
|
||||||
The goal of this workshop is to manipulate and manage OpenStack API from CLI.
|
The goal of this workshop is to manipulate and manage OpenStack API from CLI.
|
||||||
|
|
||||||
## Install `openstack` cli
|
## Install `openstack` cli
|
||||||
First, install `openstack` cli from pip:
|
First, install `openstack` cli from pip, inside a virtual env
|
||||||
```
|
```
|
||||||
apt-get install python3-pip libffi-dev python3-venv
|
# Create the virtual env
|
||||||
python3 -m venv /opt/oscli
|
python3 -m venv /opt/oscli
|
||||||
|
|
||||||
|
# Enable the virtual env
|
||||||
source /opt/oscli/bin/activate
|
source /opt/oscli/bin/activate
|
||||||
|
|
||||||
|
# Upgrade pip
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
|
|
||||||
|
# Install openstack client
|
||||||
pip install python-openstackclient
|
pip install python-openstackclient
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -44,8 +44,8 @@ apt-get install -y \
|
||||||
software-properties-common \
|
software-properties-common \
|
||||||
git \
|
git \
|
||||||
sshpass \
|
sshpass \
|
||||||
tmux
|
tmux \
|
||||||
# nginx \
|
python3-pip libffi-dev python3-venv
|
||||||
|
|
||||||
title.print "Configuring tmux and plik"
|
title.print "Configuring tmux and plik"
|
||||||
wget https://www.arnaudmorin.fr/tmux.conf -O /root/.tmux.conf
|
wget https://www.arnaudmorin.fr/tmux.conf -O /root/.tmux.conf
|
||||||
|
|
Loading…
Reference in New Issue