Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added logging to the Docker container [#991] #1002

Merged
merged 1 commit into from Oct 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.