Skip to content

Commit

Permalink
Added logging to the Docker container [comixed#991]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Oct 4, 2021
1 parent 676d34a commit 1c9daa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Expand Up @@ -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"]
9 changes: 7 additions & 2 deletions docker/README.md
Expand Up @@ -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,
Expand All @@ -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.

0 comments on commit 1c9daa3

Please sign in to comment.