You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker/entity-extraction-pipeline/README.md
+41-6Lines changed: 41 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,23 @@ The following environment variables can be set to change the behavior of the pip
17
17
-`MAX_ARTICLES`: This variable can be set to a number to limit the number of articles processed. This is useful for testing and debugging. The default is `-1` which means no limit.
18
18
-`LOG_OUTPUT_DIR`: This variable is set to the path of the output folder to write the log file. Default is the directory from which the docker container is run.
19
19
20
+
## Testing the Docker Image to Run on xDD
21
+
22
+
The docker image must be able to be run without root permissions. To test that this is correctly setup, run the following command and ensure it completes without error.
- the $(id -u) is used to run the docker container as the current user so that the output files are not owned by root
30
+
- the LOG_OUTPUT_DIR="../outputs/" is different from the docker compose as it is relative to the current directory which from Docker run starts in app folder
31
+
- for git bash on windows the /${PWD} is used to get the current directory and the forward slash is important to get the correct path
32
+
20
33
## Sample Docker Compose Setup
21
34
22
35
Update the environment variables defined under the `entity-extraction-pipeline` service in the `docker-compose.yml` file under the root directory. Then build and run the docker image to install the required dependencies using `docker-compose` as follows:
36
+
23
37
```bash
24
38
docker-compose build
25
39
docker-compose up entity-extraction-pipeline
@@ -30,19 +44,40 @@ Below is a sample docker compose configuration for running the image:
0 commit comments