Skip to content

Latest commit

 

History

History
54 lines (45 loc) · 2.24 KB

README.md

File metadata and controls

54 lines (45 loc) · 2.24 KB

integrated_plant_protection

Build Status

Integrated Plant Protection

Usage

To launch it, first install the package then run deepaas:

git clone https://github.com/ai4os-hub/integrated-plant-protection
cd integrated-plant-protection
pip install -e .
deepaas-run --listen-ip 0.0.0.0

Directly from Docker Hub

To run the Docker container directly from Docker Hub and start using the API simply run the following command:

$ docker run -ti -p 5000:5000 -p 6006:6006 -p 8888:8888 ai4oshub/integrated-plant-protection

This command will pull the Docker container from the Docker Hub ai4oshub repository and start the default command (deepaas-run --listen-ip=0.0.0.0).

Building the container

If you want to build the container directly in your machine (because you want to modify the Dockerfile for instance) follow the instructions below:

git clone https://github.com/ai4os-hub/integrated-plant-protection
cd integrated-plant-protection
docker build -t ai4oshub/integrated-plant-protection .
docker run -ti -p 5000:5000 -p 6006:6006 -p 8888:8888 ai4oshub/integrated-plant-protection

Project structure

├── LICENSE                <- License file
│
├── README.md              <- The top-level README for developers using this project.
│
├── requirements.txt       <- The requirements file for reproducing the analysis environment, e.g.
│                             generated with `pip freeze > requirements.txt`
│
├── setup.py, setup.cfg    <- makes project pip installable (pip install -e .) so
│                             integrated_plant_protection can be imported
│
├── integrated_plant_protection    <- Source code for use in this project.
│   │
│   ├── __init__.py        <- Makes integrated_plant_protection a Python module
│   │
│   └── api.py             <- Main script for the integration with DEEP API
│
└── Jenkinsfile            <- Describes basic Jenkins CI/CD pipeline