Page MenuHomePhabricator
Paste P7196

(An Untitled Masterwork)
ActivePublic

Authored by zhuyifei1999 on May 31 2018, 11:44 AM.
Tags
None
Referenced Files
F18631272:
May 31 2018, 11:44 AM
Subscribers
tools.zhuyifei1999-test@tools-bastion-02:~$ webservice --backend kubernetes python shell
Pod is not ready in time
tools.zhuyifei1999-test@tools-bastion-02:~$ webservice --backend kubernetes python shell
If you don't see a command prompt, try pressing enter.
tools.zhuyifei1999-test@interactive:~$
tools.zhuyifei1999-test@interactive:~$ which webservice-python-bootstrap
/usr/local/bin/webservice-python-bootstrap
tools.zhuyifei1999-test@interactive:~$ statSession ended, resume using 'kubectl attach interactive -c interactive -i -t' command when the pod is running
Pod stopped. Session cannot be resumed.
tools.zhuyifei1999-test@tools-bastion-02:~$ webservice --backend kubernetes python shell
Pod is not ready in time
tools.zhuyifei1999-test@tools-bastion-02:~$ webservice --backend kubernetes python shell
If you don't see a command prompt, try pressing enter.
tools.zhuyifei1999-test@interactive:~$
tools.zhuyifei1999-test@interactive:~$ cat `which webservice-python-bootstrap`
#!/bin/bash
set -euxo pipefail
if test ! -d ~/www/python/venv; then
python3 -m venv ~/www/python/venv
fi
~/www/python/venv/bin/pip install --upgrade pip
if test -f ~/www/python/src/requirements.txt; then
~/www/python/venv/bin/pip install -r ~/www/python/src/requirements.txt
fi
tools.zhuyifei1999-test@interactive:~$ ls -l `which webservice-python-bootstrap`
-rwxr-xr-x 1 root root 285 May 31 11:29 /usr/local/bin/webservice-python-bootstrap
tools.zhuyifei1999-test@interactive:~$ webservice-python-bootstrap
+ test '!' -d /data/project/zhuyifei1999-test//www/python/venv
+ python3 -m venv /data/project/zhuyifei1999-test//www/python/venv
Session ended, resume using 'kubectl attach interactive -c interactive -i -t' command when the pod is running
Pod stopped. Session cannot be resumed.
tools.zhuyifei1999-test@tools-bastion-02:~$ tree www
[...]
28 directories, 230 files
tools.zhuyifei1999-test@tools-bastion-02:~$ ^C
tools.zhuyifei1999-test@tools-bastion-02:~$ rm -r www
tools.zhuyifei1999-test@tools-bastion-02:~$ webservice --backend kubernetes python shell
Pod is not ready in time
tools.zhuyifei1999-test@tools-bastion-02:~$ webservice --backend kubernetes python shell
Pod is not ready in time
tools.zhuyifei1999-test@tools-bastion-02:~$