Mercurial > p > roundup > code
diff scripts/Dockerfile @ 6523:49d26e77d173
issue2551163 Docker/containerization support - pypi fix
pypi install is putting the stuff that should be in /usr/local/share
into site-packages/usr/local/share/..... So roundup-admin can't find
templates etc.
This patch links the files from the installed location to
/usr/local/share.
setuptools is a pain. Issue opened to fix this in setup.py.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 06 Nov 2021 15:29:24 -0400 |
| parents | e6ae8188f61a |
| children | 5ad7fb912227 |
line wrap: on
line diff
--- a/scripts/Dockerfile Fri Nov 05 23:44:14 2021 -0400 +++ b/scripts/Dockerfile Sat Nov 06 15:29:24 2021 -0400 @@ -59,7 +59,9 @@ else echo "invalid value for source: $source"; \ echo "must be local or pypi"; exit 1; fi; \ if [ "$source" = "local" ]; then cd install && ./setup.py install; fi; \ - if [ "$source" = "pypi" ]; then pip install roundup; fi + if [ "$source" = "pypi" ]; then pip install roundup; \ + cp -ril /usr/local/lib/python3.10/site-packages/usr/local/share/* \ + /usr/local/share; fi # build a new smaller docker image for execution. Build image above # is 1G in size.
