From 71a5c14c8709775395058ce82e2dd277bd380627 Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Tue, 7 Jun 2022 21:47:55 -0800 Subject: [PATCH] Describe how to launch the docker container. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 80d0988a..290d5644 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,20 @@ See LICENSE.txt for the details of distributing this software. ## Building Docker image +The image can be built with either `docker` or `nerdctl` depending on which container environment you have installed. Here I show the example using +Racher Desktop configured to use `nerdctl`. + ```bash +mvn clean package -DskipTests nerdctl build -t dataone-index-worker:2.4.0 -f docker/Dockerfile --build-arg TAG=2.4.0 . ``` +## Running the IndexWorker in the docker container + +```bash +nerdctl run --rm dataone-index-worker:2.4.0 +``` + ## History This is a refactored version of the original DataONE [d1_cn_index_processor](https://github.com/DataONEorg/d1_cn_index_processor) that runs completely independently of other