aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMart Lubbers2018-01-23 14:17:19 +0100
committerCamil Staps2018-01-23 14:34:55 +0100
commitaaee9e0244f953e8076037c32ed31207dd378f5d (patch)
tree59de29148cb449b85b808c3a5b0b8032d92471b8 /README.md
parentUpdate for debian stretch (diff)
Add a local lib directory
This allows people to mount their local directory to /opt/clean/lib/Local and import the files from it. This can be extended to allow more mounting in /opt/clean/lib and let the clm command import all directories from there but not with this commit.
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 04c1a8f..b30d4f5 100644
--- a/README.md
+++ b/README.md
@@ -22,6 +22,8 @@ Use `docker pull camilstaps/iclean` to pull the latest iClean version.
Run iClean with `docker run --rm -it camilstaps/iclean`.
+If you want to import local files as well you can bindmount your local directory by adding `-v "$PWD":/opt/clean/lib/Local`.
+
If you want history, add `-v ~/.iclean_history:/home/.iclean_history` and `touch ~/.iclean_history` on the host.
You can add imports by creating a template in `~/.iclean_template`, then adding it to the container with `-v ~/.iclean_template:/home/.iclean_template`.
@@ -31,7 +33,7 @@ If you care about hard disk wear, add `--tmpfs /tmp:exec,size=1024k` to have iCl
Make all this an alias:
```
-alias iclean="docker run --rm -it --tmpfs /tmp:exec,size=1024k -v ~/.iclean_history:/home/.iclean_history -v ~/.iclean_template:/home/.iclean_template camilstaps/iclean"
+alias iclean="docker run --rm -it --tmpfs /tmp:exec,size=1024k -v "$PWD":/opt/clean/lib/Local -v ~/.iclean_history:/home/.iclean_history -v ~/.iclean_template:/home/.iclean_template camilstaps/iclean"
```
## Without Docker