Skip to content

ashishu007/IR-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IR-Engine

A simple Boolean Search Engine using Python and Flask

Pythonanywhere

Site deployed on pythonanywhere: ashishu007.pythonanywhere.com

Site deployed on heroku: https://rgu-soc-bool-ir.herokuapp.com/

Docker

To run the application using docker, use the following steps:

  1. Pull the image from docker-hub using:

    docker pull ashishu007/rgu-soc-boolean-ir:latest

  2. Run the docker image:

    docker run -d -p 5000:5000 ashishu007/rgu-soc-boolean-ir:latest

  3. Goto localhost:5000 in your browser

To stop the running image, follow these steps:

  1. List the active images using:

    docker ps

  2. Copy the unique CONTAINER ID (let's say, containerid) for the image ashishu007/rgu-soc-boolean-ir

  3. Run:

    docker stop containerid

It assumes, you've docker installed.

Heroku

Assuming you have docker installed and an app created on heroku.

  1. Suppose the app created on heroku is: rgu-soc-bool-ir

  2. Clone the repo:

    git clone https://github.com/ashishu007/IR-Engine.git

  3. Build the docker-container:

    docker build -t ir-eng:latest .

  4. Tag the docker-container:

    docker tag ir-eng registry.heroku.com/rgu-soc-bool-ir/web

    • If getting authentication required message, run this: heroku container:login
  5. Push the tagged container to the heroku-registry:

    docker push registry.heroku.com/rgu-soc-bool-ir/web

  6. Release the container on heroku:

    heroku container:release -a rgu-soc-bool-ir web

  7. Goto the browser, and type: rgu-soc-bool-ir.herokuapp.com

References

  • This post on Medium.