Compare commits
2 Commits
d7fa453d41
...
7ee8e9159e
Author | SHA1 | Date |
---|---|---|
![]() |
7ee8e9159e | |
![]() |
168ca2dcbe |
Binary file not shown.
Binary file not shown.
|
@ -1,8 +1,10 @@
|
|||
#!/bin/bash
|
||||
apt-get update
|
||||
apt-get -y install python3-pip git
|
||||
apt-get -y install python3-pip git python3-venv
|
||||
git clone https://github.com/arnaudmorin/demo-flask /opt/demo-flask
|
||||
pip3 install -r /opt/demo-flask/requirements.txt
|
||||
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
|
||||
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=openstack
|
||||
alias os=/opt/oscli/bin/openstack
|
||||
alias k=kubectl
|
||||
EOF
|
||||
|
||||
|
|
Loading…
Reference in New Issue