reverting most useless attempts at trying to make this work

This commit is contained in:
Kikimanox
2022-08-31 18:34:51 +02:00
parent 8bd8567b98
commit 63099da8c9
3 changed files with 2 additions and 6 deletions
-1
View File
@@ -11,7 +11,6 @@ RUN pip3 install --no-cache-dir -r requirements.txt
COPY . /usr/src/app
EXPOSE 8080
EXPOSE 80
ENTRYPOINT ["python3"]
-3
View File
@@ -6,17 +6,14 @@ services:
image: flask-server
ports:
- 8080:8080
- 80:80
volumes: # when pushing to server, remove the first dot here in front of /mnt
- /mnt/ssd/ds_ftp/classla_OS2022:/usr/src/app/classla_OS2022
- ./swagger_server/classla/classla_resources:/root/classla_resources
environment:
- PYTHONUNBUFFERED=1
network_mode: host
tika2:
image: apache/tika:1.28.4-full
entrypoint: [ "/bin/sh", "-c", "java -jar /tika-server-1.28.4.jar -h 0.0.0.0 -p 9999" ]
restart: always
ports:
- 9999:9999
network_mode: host
@@ -16,8 +16,8 @@ import traceback
tika_server = "http://tika2:9999/tika"
# endpoint below to be used only for development purposes (don't need to run docker)
tika_server = "http://rsdo.lhrs.feri.um.si:9998/tika"
# TEMPORARY workaround: running server without docker...
# tika_server = "http://rsdo.lhrs.feri.um.si:9998/tika"
def datoteka_v_besedilo_post(file=None): # noqa: E501
"""Pretvori datoteko formata pdf, doc, docx, ppt, xls,... vraca besedilo