As a chef user I thought I would give this a try. Docs are not clear. Any other framework I would have given up but I will give one more shot. This framework is not critical my any stretch of the imagination so unless docs are cleaned up I dont expect wide adoption esp for python devs.
That being said…
I can build a plan and export. I ssh into the container to find my pip install libs. Guess what they are nowhere to be found despite the below. So how do I do a simple pip install?
Requirement already satisfied: flask==0.12.2 in /hab/pkgs/core/python2/2.7.15/20181212185420/lib/python2.7/site-packages (from -r /hab/pkgs/david/flask/0.1.0/20181223112622/app/requirements.txt (line 1)) (0.12.2)
Requirement already satisfied: redis in /hab/pkgs/core/python2/2.7.15/20181212185420/lib/python2.7/site-packages (from -r /hab/pkgs/david/flask/0.1.0/20181223112622/app/requirements.txt (line 2)) (3.0.1)
Requirement already satisfied: itsdangerous>=0.21 in /hab/pkgs/core/python2/2.7.15/20181212185420/lib/python2.7/site-packages (from flask==0.12.2->-r /hab/pkgs/david/flask/0.1.0/20181223112622/app/requirements.txt (line
pkg_maintainer=“The Habitat Maintainers firstname.lastname@example.org”
pkg_build_deps=(core/coreutils core/gcc core/python2)
pip install --upgrade pip
The application exists as a single file in the directory. A real application
would likely a single app directory or a few directories.
cp index.py $app_dir/
cp requirements.txt $app_dir/
cp app.py $app_dir/
pip install -r $app_dir/requirements.txt