Hydrosphere.io
GithubPython SDKContact UsSlack Community
master
master
  • Hydrosphere
  • 🌊About Hydrosphere
    • Overview
    • Concepts
    • Platform Architecture
      • Serving
      • Monitoring
      • Interpretability
    • Key Features
      • Model Registry
      • Inference Pipelines
      • A/B Model Deployments
      • Traffic Shadowing
      • Language-Agnostic
      • Automatic Outlier Detection
      • Data Drift Report
      • Monitoring Dashboard
      • Alerts
      • Prediction Explanation
      • Data Projection
      • Kubeflow Components
      • AWS Sagemaker
  • 🏄Quickstart
    • Installation
      • CLI
      • Python SDK
      • Configuring Helm charts
    • Getting Started
    • Tutorials
      • A/B Analysis for a Recommendation Model
      • Using Deployment Configurations
      • Train & Deploy Census Income Classification Model
      • Monitoring Anomalies with a Custom Metric
      • Monitoring External Models
    • How-To
      • Invoke applications
      • Write definitions
      • Develop runtimes
      • Use private pip repositories
  • 💧Resources
    • Troubleshooting
    • Reference
      • Libraries
      • Runtimes
    • Contribution
      • Contributing Pull Requests
  • Advanced
    • AWS infrastructure
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Quickstart
  2. How-To

Use private pip repositories

To use private pip repository you must add customized pip.conf file pointing to your custom PyPI repository.

For example, your custom pip.conf file can look like this:

[global]
timeout = 60
index-url = http://pypi.python.org/simple/

If you need to specify the certificate to use during pip install you want to specify the path to it in a pip.conf file e.g.

[global]
timeout = 60
index-url = http://pypi.python.org/simple/
cert = /model/files/cert.pem

You can tell pip to use this pip.conffile in the install-command field inside serving.yaml:

kind: Model
name: linear_regression
runtime: "hydrosphere/serving-runtime-python-3.7:$released_version$"
install-command: "PIP_CONFIG_FILE=pip.conf pip install -r requirements.txt"
payload:
  - "src/"
  - "requirements.txt"
  - "pip.conf"  # location of your pip.conf
  - "cert.pem"  # location of your certificate. It'll be available under /model/files/cert.pem
  - "model.h5"
contract:
  name: infer
  inputs:
    x:
      shape: [-1, 2]
      type: double
  outputs:
    y:
      shape: [-1]
      type: double
PreviousDevelop runtimesNextTroubleshooting

Last updated 3 years ago

Was this helpful?

🏄