Commit 51330fb2 authored by Robin Knapp's avatar Robin Knapp

Quickfix to run container. To be investigated

parent 18761c46
......@@ -59,10 +59,12 @@ COPY --chown=naiades src $FLASK_HOME_DIR/src/
COPY --chown=naiades specs $SPECS_HOME_DIR/
COPY --chown=naiades requirements.txt $FLASK_HOME_DIR/requirements.txt
COPY --chown=naiades start_service.sh $FLASK_HOME_DIR/
RUN touch $FLASK_HOME_DIR/dmv_log
RUN chown -R naiades $FLASK_HOME_DIR
#________________________________________
WORKDIR $FLASK_HOME_DIR
RUN pip install -r requirements.txt
RUN chown $FLASK_HOME_DIRRUN pip install -r requirements.txt
RUN rm requirements.txt
#________________________________________
......
......@@ -25,7 +25,8 @@ def validate_post_v2(model: dict, cache: flask_caching.Cache):
try:
model_type = model.get('type')
if not model_type:
raise ValidationException(extern=f'Model is missing the "type" attribute')
raise ValidationException(extern=f'Model is missing the "type" attribute', module=__name__,
func=f'validate_post_v2')
if cache.get(model_type.lower()):
specs = cache.get(model_type.lower())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment