Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.6 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.6 KB

greppo-demo

A repository of demo apps built using Greppo.


Quickstart

  1. Install greppo using:
pip install greppo

Note: It is recommended to install greppo inside a python environment.

  1. Go inside one of the demo apps folders in this repository and run the command:
greppo serve app.py
  1. Follow the link for the webserver.

Deployment Quickstart (Docker)

Build Image

Configure the container's image using the example Dockerfile provided.

Change line 6 in the Dockerfile: COPY /{folder-name} . with the {folder-name} to the source folder, or the demo folder of choice. In the example in the Dockerfile we use the vectore-demo.

## build image
docker build --tag greppo-vector-demo .
## list docker images
docker images

Run docker image locally

## start docker image, use the --publish option to expose the port (one the app running within the container uses: 8080) to the outside (5000).
## Check the app locally at http://0.0.0.0:5000

docker run --publish 5000:8080 greppo-vector-demo

Setup docker hub and push the image

docker login
## setup tag with repo, replace with username and image name
## you need to tag the image to be pushed, here we use the tag of greppo-vector-demo
docker tag greppo-vector-demo <docker_hub_username>/<image-name>
## push to repo, replace username and image name.
docker push <docker_hub_username>/<image-name>

Deploying container