comparison 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
comparison
equal deleted inserted replaced
6522:e6ae8188f61a 6523:49d26e77d173
57 ARG source 57 ARG source
58 RUN set -xv && if [ "$source" = "local" ] || [ "$source" = "pypi" ]; then :; \ 58 RUN set -xv && if [ "$source" = "local" ] || [ "$source" = "pypi" ]; then :; \
59 else echo "invalid value for source: $source"; \ 59 else echo "invalid value for source: $source"; \
60 echo "must be local or pypi"; exit 1; fi; \ 60 echo "must be local or pypi"; exit 1; fi; \
61 if [ "$source" = "local" ]; then cd install && ./setup.py install; fi; \ 61 if [ "$source" = "local" ]; then cd install && ./setup.py install; fi; \
62 if [ "$source" = "pypi" ]; then pip install roundup; fi 62 if [ "$source" = "pypi" ]; then pip install roundup; \
63 cp -ril /usr/local/lib/python3.10/site-packages/usr/local/share/* \
64 /usr/local/share; fi
63 65
64 # build a new smaller docker image for execution. Build image above 66 # build a new smaller docker image for execution. Build image above
65 # is 1G in size. 67 # is 1G in size.
66 FROM python:3-alpine 68 FROM python:3-alpine
67 69

Roundup Issue Tracker: http://roundup-tracker.org/