Blog
requirements.txt
files, you can install a list of them.Under Windows, Zato installs "pip.bat" to an "AppData\Local" directory whose exact name may be different, depending your locale and installation time but it will be in the format as below, assuming that your user is "MyUser":
Navigate to the directory where pip.bat is, and use it to install a Python library as below:
For instance:
For the changes to take effect, stop and start the environment when you have installed all the libraries needed
The steps below will work in the same way regardless of the Linux distribution, including already running Docker Quickstart containers.
If you have a Docker Quickstart container - note that installing a dependency in this way will not persist if the container is restarted. To make permanent changes to Python dependencies under Docker Quickstart, consult the "Docker Quickstart" section of this chapter.
zato
and run this command:When a Zato container starts, it will optionally install additional Python requirements and libraries using a file from this location inside the container: /opt/hot-deploy/python-reqs/requirements.txt
If the file does not exist or is empty when the container starts, no dependencies will be installed
If it is not empty, each line should be the name of a dependency to install. It is recommended to provide the exact version of the dependency to install as well - typically, the latest one.
Example requirements.txt file:
To make the file appear inside the container, it needs to be mapped from a location on host when the container starts to a location inside the container
Note the highlighted line in the example below - thanks to it, file /my/reqs.txt on host will be mapped to /opt/hot-deploy/python-reqs/requirements.txt in the container, which is what the container consults to find dependencies, thanks to which they will be installed when the container starts:
Book a demo with an expert who will help you build meaningful systems that match your ambitions
"For me, Zato Source is the only technology partner to help with operational improvements."