No description, website, or topics provided.
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
.gitignore
Dockerfile
LICENSE
README.md
example.json
flask.conf
gcp.sh
gunicorn.conf
install_corpora.py
supervisord.conf

README.md

About

This is the CLTK's API, including the code, Dockerfile, and deployment script for Google Cloud Platform.

To develop and run this app and run on GCP:

  1. If you're only testing the Flask app, just serve with python app/app.py. Check with curl 0.0.0.0:5000.
  2. Install Docker on your local machine.
  3. Run gcp.sh build to test that everything works fine. curl localhost will give you a 200 response.
  4. Install the GCP commandline tools.
  5. Initialize gcloud settings with gcloud init.
  6. Edit the variables at the top of gcp.sh if you need.
  7. Run gcp.sh deploy. This will take about 5 minutes (including time both to push files to the server, and for Google to launch and assign an external IP) and at the end you'll be given an external IP to go to. This should also give a 200 response.
  8. To update an already-deployed service, increment DOCKER_BUILD_VERSION and run ./gcp.sh build and then ./gcp.sh update.
  9. To completely teardown your remote deployment, run gcp.sh destroy.