Re: Run Tika-docker with custom config

2023-04-29 Thread שי ברק
Thank you for your help. On Sat, 29 Apr 2023 at 17:57 Konstantin Gribov wrote: > To override entrypoint use something like: > > ``` > FROM apache/tika:2.7.0.1-full > ADD tika-config.xml /tika-config.xml > ENTRYPOINT [ "/bin/sh", "-c", "exec java -cp >

Re: Run Tika-docker with custom config

2023-04-29 Thread Konstantin Gribov
To override entrypoint use something like: ``` FROM apache/tika:2.7.0.1-full ADD tika-config.xml /tika-config.xml ENTRYPOINT [ "/bin/sh", "-c", "exec java -cp \"/tika-server-standard-2.7.0.jar:/tika-extras/*\" org.apache.tika.server.core.TikaServerCli -h 0.0.0.0 --config /tika-config.xml $0 $@"]

Re: Run Tika-docker with custom config

2023-04-28 Thread שי ברק
I’m really new to Docker. How should my Dockerfile look like eventually? So far I have these lines: ‘’’ FROM apache/tika:2.7.0.1-full ADD tika-config.xml /tika-config.xml ‘’’ On Fri, 28 Apr 2023 at 18:44 Nick Burch wrote: > On Fri, 28 Apr 2023, שי ברק wrote: > > I don’t know if it’s possible

Re: Run Tika-docker with custom config

2023-04-28 Thread Nick Burch
On Fri, 28 Apr 2023, שי ברק wrote: I don’t know if it’s possible but I’m trying to avoid typing this ‘ –– config’ when I start the container. I wish to have all of these settings to be written inside the Dockerfile. Since you're doing your own custom docker container, you could override the

Re: Run Tika-docker with custom config

2023-04-28 Thread שי ברק
I don’t know if it’s possible but I’m trying to avoid typing this ‘ –– config’ when I start the container. I wish to have all of these settings to be written inside the Dockerfile. On Fri, 28 Apr 2023 at 17:59 Nick Burch wrote: > On Fri, 28 Apr 2023, שי ברק wrote: > > Inside the container

Re: Run Tika-docker with custom config

2023-04-28 Thread Nick Burch
On Fri, 28 Apr 2023, שי ברק wrote: Inside the container probably - makes more sense to me In that case, create a custom Docker container that adds in your custom config to your Docker image, as per Konstantin's instructions: https://lists.apache.org/thread/l0od2b6tp6odyd661ftjqmkkf27o6hdl

Re: Run Tika-docker with custom config

2023-04-28 Thread שי ברק
Inside the container probably - makes more sense to me On Fri, 28 Apr 2023 at 17:50 Nick Burch wrote: > On Fri, 28 Apr 2023, שי ברק wrote: > > What does the `--config /tika-config.xml` do and how can I, if possible > > add this flag to my Dockerfile? > > Do you want your Tika Config file to

Re: Run Tika-docker with custom config

2023-04-28 Thread שי ברק
I appreciate your help, it works now. What does the `--config /tika-config.xml` do and how can I, if possible add this flag to my Dockerfile? On Thu, Apr 27, 2023 at 9:11 PM Konstantin Gribov wrote: > Hello. > > Most likely that docker couldn't find the tika-config.xml file at the > directory

Re: Run Tika-docker with custom config

2023-04-27 Thread Konstantin Gribov
Hello. Most likely that docker couldn't find the tika-config.xml file at the directory where you tried to start docker, created tika-config.xml/ directory and mounted it inside of the container. If you're using Docker on Windows or MacOS there should be additional actions to pass a file into the

Run Tika-docker with custom config

2023-04-27 Thread שי ברק
Hey, I have my custom tika-config.xml on my Desktop. when I run the following command from my Desktop: docker run -d -p 127.0.0.1:9998:9998 -v ./tika-config.xml:/tika-config.xml apache/tika:2.5.0-full --config /tika-config.xml I get the following error message: ERROR [main] 17:53:29,564