Continue to allow a relative path to be specified for the theme directory.

This commit is contained in:
Nicola Tarocco 2021-07-29 12:13:43 +00:00 committed by Phil Elson
parent 3103663978
commit f7ce8c96f3
4 changed files with 8 additions and 3 deletions

View file

@ -2,5 +2,6 @@ venv
env*
prototypes
support
Dockerfile
**/Dockerfile
_*

View file

@ -7,7 +7,7 @@ include:
variables:
project_name: cara
PY_VERSION: "3.9" # This is what we have running in OpenShift currently.
PY_VERSION: "3.9"
# A full installation of CARA, tested with pytest.

View file

@ -22,6 +22,10 @@ FROM debian
COPY --from=conda /opt/app /opt/app
ENV PATH=/opt/app/bin/:$PATH
# Make a convenient location to the installed CARA package (i.e. a directory called cara in the CWD).
RUN CARA_INIT_FILE=$(/opt/app/bin/python -c "import cara; print(cara.__file__)") \
&& ln -s $(dirname $(dirname ${CARA_INIT_FILE})) /opt/site-packages \
&& ln -s /opt/site-packages/cara ./cara
CMD [ \
"cara-app.sh" \
]

View file

@ -201,7 +201,7 @@
- name: CARA_CALCULATOR_PREFIX
value: /calculator-cern
- name: CARA_THEME
value: /opt/app/lib/python3.9/site-packages/cara/apps/calculator/themes/cern
value: cara/apps/calculator/themes/cern
image: '${PROJECT_NAME}/cara-webservice'
ports:
- containerPort: 8080