Sign inSign up

ningliaoyuan/smartcloudshell

By ningliaoyuan

•Updated about 8 years ago

Auto build smartcloudshell service

Image
2

1.7K

ningliaoyuan/smartcloudshell repository overview

⁠Setup

  • pip install -r requirements.txt
  • python -m spacy download en_core_web_lg
  • python -m spacy download en_core_web_sm

⁠How to use

python main.py

Then user the follow url to test: http://localhost:80/cli/help/your%20query⁠

python test.py

Then check out the output in output folder

⁠Build Docker image

docker build -t smartcloudshell .

⁠Run Docker image

docker run -p 5000:5000 smartcloudshell

⁠Install Hey

Run following in Cloud Shell:

Launch Cloud Shell

mkdir bin && curl -sL https://github.com/ningliaoyuan/smartcloudshell/releases/download/v0.8/smartcloudshell_linux_64-bit.tar.gz | tar xz && mv ./hey ./bin && export PATH=$PATH:~/bin

Run with debug

hey -d create vm

⁠Azure Api

http://heyapi.trafficmanager.net⁠

http://heyapi.trafficmanager.net/cli/help/create%20vm⁠

http://smartcloudshellapi.westus2.azurecontainer.io/cli/help/I%20want%20to%20create%20a%20storage%20account⁠

Tag summary

Content type

Image

Digest

Size

1.4 GB

Last updated

about 8 years ago

docker pull ningliaoyuan/smartcloudshell