|
@@ -35,32 +35,11 @@
|
|
```
|
|
```
|
|
source ~/Installs/venv/bin/activate
|
|
source ~/Installs/venv/bin/activate
|
|
```
|
|
```
|
|
-1. Setting up `apache-tika`
|
|
|
|
- 1. Launch terminal
|
|
|
|
- 1. Enter the following command to go to the base directory:
|
|
|
|
|
|
+2. Installing `Java`
|
|
|
|
+ 1. Check if Java is installed in your system. If the command below throws an error, refer to this [documentation](https://www.java.com/download/ie_manual.jsp)
|
|
```
|
|
```
|
|
- cd ~
|
|
|
|
- ```
|
|
|
|
- 1. Download the apache-tika server using the following command:
|
|
|
|
- ```
|
|
|
|
- wget https://www.apache.org/dyn/closer.lua/tika/1.28.4/tika-server-1.28.4.jar
|
|
|
|
|
|
+ java -version
|
|
```
|
|
```
|
|
- 1. Check if java is installed in your machine by running the following command:
|
|
|
|
- ```
|
|
|
|
- java --version
|
|
|
|
- ```
|
|
|
|
- 1. If java is not installed in your local machine, please refer to [this documentation.](https://www.java.com/en/download/help/download_options.html)
|
|
|
|
-
|
|
|
|
- 1. Running the tika server
|
|
|
|
- 1. Create a new screen called `apache-tika`
|
|
|
|
- ```
|
|
|
|
- screen -S apache-tika
|
|
|
|
- ```
|
|
|
|
- 1. Enter the following command to run the tika server:
|
|
|
|
- ```
|
|
|
|
- java -jar {your tika server}
|
|
|
|
- ```
|
|
|
|
-
|
|
|
|
### Setting up the code base.
|
|
### Setting up the code base.
|
|
1. Launch the terminal.
|
|
1. Launch the terminal.
|
|
1. Enter the following command to go to the base directory:
|
|
1. Enter the following command to go to the base directory:
|
|
@@ -79,23 +58,23 @@
|
|
### Running the docker file:
|
|
### Running the docker file:
|
|
1. Launch the terminal.
|
|
1. Launch the terminal.
|
|
2. Change the directory to the docker file by the following command.
|
|
2. Change the directory to the docker file by the following command.
|
|
- ``
|
|
|
|
|
|
+ ```
|
|
cd ~/Code/pdf_parser/docker/
|
|
cd ~/Code/pdf_parser/docker/
|
|
```
|
|
```
|
|
-3. Check if docker is installed in your machine using the command below. If it throws an error, refer to this [documentation](https://docs.docker.com/engine/install/)
|
|
|
|
- ``
|
|
|
|
|
|
+3. Check if ["docker"](https://docs.docker.com/engine/install/) is installed in your machine using the command below.
|
|
|
|
+ ```
|
|
docker ps
|
|
docker ps
|
|
```
|
|
```
|
|
4. Pull the required images using the following command.
|
|
4. Pull the required images using the following command.
|
|
- ``
|
|
|
|
|
|
+ ```
|
|
docker pull docker-compose.yml
|
|
docker pull docker-compose.yml
|
|
```
|
|
```
|
|
5. Build the docker volume using the following command.
|
|
5. Build the docker volume using the following command.
|
|
- ``
|
|
|
|
|
|
+ ```
|
|
docker-compose build
|
|
docker-compose build
|
|
```
|
|
```
|
|
6. Activate a new screen and activate the containers using the following commands.
|
|
6. Activate a new screen and activate the containers using the following commands.
|
|
- ``
|
|
|
|
|
|
+ ```
|
|
screen -S docker
|
|
screen -S docker
|
|
docker-compose up
|
|
docker-compose up
|
|
```
|
|
```
|