time to try running it without docker instead
This commit is contained in:
+3
-3
@@ -7,13 +7,13 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
volumes: # when pushing to server, remove the first dot here in front of /mnt
|
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
|
- ./mnt/ssd/ds_ftp/classla_OS2022:/usr/src/app/classla_OS2022
|
||||||
- ./swagger_server/classla/classla_resources:/root/classla_resources
|
- ./swagger_server/classla/classla_resources:/root/classla_resources
|
||||||
environment:
|
environment:
|
||||||
- PYTHONUNBUFFERED=1
|
- PYTHONUNBUFFERED=1
|
||||||
tika2:
|
tika2:
|
||||||
image: apache/tika:2.4.0-full
|
image: apache/tika:1.28.4-full
|
||||||
entrypoint: ["/bin/sh", "-c", "java -jar /tika-server-standard-2.4.0.jar -h 0.0.0.0 -p 9999"]
|
entrypoint: [ "/bin/sh", "-c", "java -jar /tika-server-1.28.4.jar -h 0.0.0.0 -p 9999" ]
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 9999:9999
|
- 9999:9999
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ import traceback
|
|||||||
tika_server = "http://tika2:9999/tika"
|
tika_server = "http://tika2:9999/tika"
|
||||||
|
|
||||||
# endpoint below to be used only for development purposes (don't need to run docker)
|
# 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"
|
tika_server = "http://rsdo.lhrs.feri.um.si:9998/tika"
|
||||||
# TEMPORARY
|
# TEMPORARY workaround: running server without docker...
|
||||||
|
|
||||||
def datoteka_v_besedilo_post(file=None): # noqa: E501
|
def datoteka_v_besedilo_post(file=None): # noqa: E501
|
||||||
"""Pretvori datoteko formata pdf, doc, docx, ppt, xls,... vraca besedilo
|
"""Pretvori datoteko formata pdf, doc, docx, ppt, xls,... vraca besedilo
|
||||||
|
|||||||
Reference in New Issue
Block a user