On Wed, Apr 1, 2020, at 11:21 AM, Andrew Hodgson wrote:
Abhilash Raj wrote:
On Tue, Mar 31, 2020, at 11:28 AM, Andrew Hodgson wrote:
ralf.wiegand@tena-sda.org wrote:
WE are currently using mailman2. I have the task to setup and install a maiman3 server. Postfix is installed and working. Can anybody point me to a link where the actual installation is described using RHEL 7 or RHEL 8. This will be a >hardened DISA compliant server, so I am trying to avoid installing compilers and tools that are not part of the standard RHEL 7 repos.
Have you looked at creating a development environment using a Python3 venv somewhere else (eg another server or container) then copying the venv out to the production server?
Python virtualenvs are really not movable because of the paths that are in there. It is tricky to get that working right, I would caution against doing that.
Thanks for this, I actually did this work over the weekend to test a restore on a new server using the same paths because I was worried about this being an issue. It did work, but the paths were exactly the same.
I may have to re-investigate quick restore options (probably writing a script to create the venv and re-constitute the packages).
You could look into Shiv project1, which will basically bundle Python application into a single binary that you can move around without having to worry about dependencies & virtualenv.
Only thing you probably need constant is the version of the Python, which isn't bundled. But, otherwise, you can just use this to create a relocatable binary artifact.
Andrew.
-- thanks, Abhilash Raj (maxking)