Adding third-party Python libraries without an Internet connection - Platform - BlueCat Gateway - 18.6.1

Gateway Installation Guide

BlueCat Gateway
Install third-party Python libraries from a Linux client without Internet connectivity.


This task involves installing additional Python libraries using a Linux client that does not have Internet connection. However, you will need to obtain the desired packages from a different workstation/client that does have an Internet connection. BlueCat recommends downloading the Ubuntu packages using a machine running Ubuntu 16.04 (this is the same Ubuntu version as the DNS Integrity Gateway image).

To install third-party Python libraries:

  1. Create a requirements.txt file in your <dns_integrity_gateway>/packages directory.
  2. Modify the requirements.txt file to list all of the Python modules that need to be installed, with only one module per line.
  3. Move the local Python module packages into the same <dns_integrity_gateway>/packages directory.
  4. Run the following:
    python setup --uid <number>
    • uid—any valid numerical value (uid cannot be zero); BlueCat recommends a uid of 500 or greater in order to avoid conflicts with internal container users. The uid (user ID) maps the Python Flask user inside the DNS Integrity Gateway container to the Linux client.