-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-release merge for search v0.5 (#221)
* ARXIVNG-281 moved Kinesis BaseConsumer to arxiv-base * ARXIVNG-1177 prototype API * ARXIVNG-1177 updating openapi and jsonschema * ARXIVNG-1177 working on serialization * ARXIVNG-1177 added tests using JSON schema * ARXIVNG-1177 added auth, more tests * ARXIVNG-1206 added support for configurable return fields; query by URI. * ARXIVNG-1348 updated requests to >= 2.20.0 * ARXIVNG-1347 added cross list search option in advanced; ARXIVNG-1278 all-fields includes cross-list search * ARXIVNG-1277 add styling for secondary search catgories * ARXIVNG-1349 change layout for search results to better align tags and DOI tags * ARXIVNG-1349 rearrange header in advanced search take 1 * ARXIVNG-1349 tweak margins and layout for tabletet/mobile * ARXIVNG-1363 upgraded requests version; ARXIVNG-1362 added custom user agent * ARXIVNG-1357 upgraded secondary classification mapping to be consistent with primary * supporting cross-list classification in high-level filtering, per #209 * ARXIVNG-1448 support for primary, ARXIVNG-1447 secondary categories * ARXIVNG-1223 query parameters are included in response metadata * ARXIVNG-1349 mobile styling fix ffor results
- Loading branch information
1 parent
7f5a0eb
commit 63bf5be
Showing
135 changed files
with
3,781 additions
and
1,460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# arxiv/search-api | ||
# | ||
# Defines the runtime for the arXiv search API, which provides a metadata | ||
# query API backed by Elasticsearch. | ||
|
||
FROM arxiv/base:0.12.1 | ||
|
||
WORKDIR /opt/arxiv | ||
|
||
# Install MySQL. | ||
RUN yum install -y which mysql mysql-devel | ||
|
||
# Add Python application and configuration. | ||
ADD app.py /opt/arxiv/ | ||
ADD Pipfile /opt/arxiv/ | ||
ADD Pipfile.lock /opt/arxiv/ | ||
RUN pip install -U pip pipenv | ||
RUN pipenv install | ||
|
||
ENV PATH "/opt/arxiv:${PATH}" | ||
|
||
ADD schema /opt/arxiv/schema | ||
ADD mappings /opt/arxiv/mappings | ||
ADD search /opt/arxiv/search | ||
ADD wsgi-api.py /opt/arxiv/wsgi.py | ||
RUN pip install uwsgi | ||
|
||
ADD bin/start_search.sh /opt/arxiv/ | ||
RUN chmod +x /opt/arxiv/start_search.sh | ||
|
||
ENV LC_ALL en_US.utf8 | ||
ENV LANG en_US.utf8 | ||
ENV LOGLEVEL 40 | ||
ENV FLASK_DEBUG 1 | ||
ENV FLASK_APP /opt/arxiv/app.py | ||
|
||
ENV ELASTICSEARCH_SERVICE_HOST 127.0.0.1 | ||
ENV ELASTICSEARCH_SERVICE_PORT 9200 | ||
ENV ELASTICSEARCH_PORT_9200_PROTO http | ||
ENV ELASTICSEARCH_INDEX arxiv | ||
ENV ELASTICSEARCH_USER elastic | ||
ENV ELASTICSEARCH_PASSWORD changeme | ||
ENV METADATA_ENDPOINT https://arxiv.org/docmeta_bulk/ | ||
|
||
EXPOSE 8000 | ||
|
||
#CMD /bin/bash | ||
ENTRYPOINT ["/opt/arxiv/start_search.sh"] | ||
CMD ["--http-socket", ":8000", \ | ||
"-M", \ | ||
"-t 3000", \ | ||
"--manage-script-name", \ | ||
"--processes", "8", \ | ||
"--threads", "1", \ | ||
"--async", "100", \ | ||
"--ugreen", \ | ||
"--buffer-size", "65535", \ | ||
"--mount", "/metadata=wsgi.py", \ | ||
"--logformat", "%(addr) %(addr) - %(user_id)|%(session_id) [%(rtime)] [%(uagent)] \"%(method) %(uri) %(proto)\" %(status) %(size) %(micros) %(ttfb)"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.