Compare commits
No commits in common. "7ee8e9159e15124e579423593033f50c399655d1" and "d7fa453d4187ba8ce8fcde194add8adb51f75889" have entirely different histories.
7ee8e9159e
...
d7fa453d41
Binary file not shown.
Binary file not shown.
|
@ -1,10 +1,8 @@
|
|||
#!/bin/bash
|
||||
apt-get update
|
||||
apt-get -y install python3-pip git python3-venv
|
||||
apt-get -y install python3-pip git
|
||||
git clone https://github.com/arnaudmorin/demo-flask /opt/demo-flask
|
||||
python3 -m venv /opt/demo-flask-venv
|
||||
/opt/demo-flask-venv/bin/pip install -r /opt/demo-flask/requirements.txt
|
||||
sed -i -r 's|^python3|/opt/demo-flask-venv/bin/python|' /opt/demo-flask/start.sh
|
||||
pip3 install -r /opt/demo-flask/requirements.txt
|
||||
cp /opt/demo-flask/demo-flask.service /etc/systemd/system/
|
||||
systemctl enable demo-flask.service
|
||||
systemctl daemon-reload
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -78,7 +78,7 @@ EOF
|
|||
title.print "Configure bash"
|
||||
cat <<'EOF'>>/root/.bashrc
|
||||
PS1='\e[2;37m\u@\h\e[0m \e[0;32m$PWD\e[0m \e[1;31m>\e[0m '
|
||||
alias os=/opt/oscli/bin/openstack
|
||||
alias os=openstack
|
||||
alias k=kubectl
|
||||
EOF
|
||||
|
||||
|
|
Loading…
Reference in New Issue