Skip to content

Commit

Permalink
Merge pull request #259 from metno/solr_dist-can-make-the-dmci-worker…
Browse files Browse the repository at this point in the history
…-to-SIGKILL-when-extracting-featureType-from-OPeNDAP-link,-if-thredds-or-lustre-is-not-responsing.-#240

 Update Dockerfile to include .dodsrc file so timeout for OPeNDAP req…
  • Loading branch information
shamlymajeed authored Mar 4, 2025
2 parents 46bd2a5 + b15a96d commit dfb7483
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ RUN apt-get -qqy update && \
&& rm -rf /var/lib/apt/lists/* && \
pip install "gunicorn${GUNICORN_VERSION}"

RUN pip install --upgrade pip setuptools

COPY --from=builder /dst/. /

# Fix netcdf4 ssl error, occurring when solr-indexer tries to read featureType from the netcdf file
Expand Down Expand Up @@ -105,6 +107,6 @@ ENV METRICS_PORT 9200
EXPOSE 9200

COPY container/gunicorn_prometheus_config.py /src/

COPY container/.dodsrc /root/.dodsrc
# Start application
CMD gunicorn -c /src/gunicorn_prometheus_config.py --worker-class sync --workers 5 --bind 0.0.0.0:8000 wsgi:app --keep-alive 5 --log-level info
1 change: 1 addition & 0 deletions container/.dodsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HTTP.TIMEOUT=20
14 changes: 7 additions & 7 deletions container/config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
dmci:
dmci:
distributors:
- file
- pycsw
distributor_cache: /workdir
distributor_cache: workdir
rejected_jobs_path: rejected
max_permitted_size: 100000
mmd_xsl_path: /usr/share/mmd/xslt/mmd-to-geonorge.xsl
mmd_xsd_path: /usr/share/mmd/xsd/mmd_strict.xsd

path_to_parent_list: parent-uuid-list.xml
pycsw:
csw_service_url: http://localhost

customization:
catalog_url: http://localhost
env_string: dev

env_string: dev
file:
file_archive_path: /workdir
file_archive_path: archive
Empty file added container/parent-uuid-list.xml
Empty file.

0 comments on commit dfb7483

Please sign in to comment.