Virtualenv Portability
See original GitHub issuein addition to the make
approach, would using virtualenv and deploying the framework via pip make sense to ensure integrity, consistency and that the python dependencies are met ?
something like:
mkdir /usr/local/twcmanager
cd /usr/local/twcmanager
virtualenv -ppython3 .
source bin/activate
pip install twcmanager-1.3.tar.gz
/usr/local/twcmanager/etc -> location for config.json and twcmanager.service (rather than /etc/twcmanager) /usr/local/twcmanager/bin -> TWCManager.py etc,…
this could then be a nice portable package ?
_Originally posted by @nean-and-i in https://github.com/ngardiner/TWCManager/pull/85#issuecomment-620453002_
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Portable Virtualenv - Aaron's Blog
Ever wanted to move a Python virtualenv around but found it didn't work? Here's how you can create a portable virtualenv for Python...
Read more >How to make venv completely portable? - linux - Stack Overflow
How do I make the venv portable along with all its dependencies and reliably deploy in another device just by activating it?
Read more >Python Virtual Environments are Actually Easy… (If You Don't ...
A virtual environment helps keep your project bundled together with a list of its dependencies. This makes it portable and easy for someone...
Read more >milos-korenciak/PortableVirtualenv: Portable virtualenv made ...
Portable virtualenv made from miniconda. Contribute to milos-korenciak/PortableVirtualenv development by creating an account on GitHub.
Read more >venv — Creation of virtual environments — Python 3.11.1 ...
Because of this, environments are inherently non-portable, in the general case. You should always have a simple means of recreating an environment (for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would also love it if there where Docker images for TWC, that would be even more portable!
Great feedback, thanks @bikeymouse
The OCPP error is a known issue - it’s related to a module that hasn’t been included in the development tree yet - the problem is that rather than publishing the latest version of TWCManager to Docker Hub, we’re currently publishing the latest GitHub build. I’ll need to do some proper release management to provide versioned docker images, for the moment you’re getting the latest and greatest (and most experimental) code.
I’ll get localtime added to the docker-compose.yml file as I think this is the best approach. Also, you’re 100% right about
git clone
being overkill here, I’ll replace it with an appropriate wget/curl of the file from github instead.Really appreciate your feedback, it helps a lot to improve the Docker installation experience.