From e5c16b138d39f2a20aa9eae02198901c1891bf57 Mon Sep 17 00:00:00 2001 From: "Darryl L. Pierce" Date: Mon, 4 Oct 2021 08:06:12 -0400 Subject: [PATCH] Added logging to the Docker container [#991] --- docker/Dockerfile | 2 +- docker/README.md | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 8b37b89e4..c8219ec50 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -16,4 +16,4 @@ ENV PATH="$JAVA_HOME/bin:${PATH}" EXPOSE 7171 VOLUME /comic_data -CMD ["bash", "/app/comixed-release-0.11.0-SNAPSHOT/bin/run.sh"] +CMD ["bash", "/app/comixed-release-0.11.0-SNAPSHOT/bin/run.sh", "-L", "/library/comixed.log"] diff --git a/docker/README.md b/docker/README.md index 2a9619fbf..a4d03d43c 100644 --- a/docker/README.md +++ b/docker/README.md @@ -24,7 +24,7 @@ database files under a directory named **database**. To create the Docker image using the above directories, we'll use the following command line: -``` $ docker create --name comixed -it -p 7171:7171/tcp -v /Users/reader/comixed/library:/comic_dir -v /Users/reader/comixed/database:/root/.comixed comixed/comixed:latest``` +``` $ docker create --name comixed -it -p 7171:7171/tcp -v /Users/reader/comixed/library:/library -v /Users/reader/comixed/database:/root/.comixed comixed/comixed:latest``` This command line: 1. creates a runnable container named "comixed" in Docker, @@ -44,6 +44,11 @@ above, we put our comics in /Users/reader/comixed/library, we'll create a new di We then copy the new comics into this directory. -Then, from the **Image Comics** page, you enter as the import directory **/comic_dir/importing** and click the search +Then, from the **Image Comics** page, you enter as the import directory **/library/importing** and click the search button. This will return all of the comics you just copied into that directory, and allow you to import them into your library. + +## Logging + +The container, by default, generates the log file (named **comixed.log**) in the root directory of the managed library +directory.