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:
- Create a requirements.txt file in your <dns_integrity_gateway>/packages directory.
- Modify the requirements.txt file to list all of the Python modules that need to be installed, with only one module per line.
- Move the local Python module packages into the same <dns_integrity_gateway>/packages directory.
Run the following:
python dns_integrity_gateway.py setup --uid <number>Parameters:
- 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.