diff options
-rw-r--r-- | Dockerfile | 1 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | compile.c | 1 |
3 files changed, 5 insertions, 1 deletions
@@ -11,6 +11,7 @@ RUN ./make_abc.sh \ && apt-get update -qq \ && apt-get install -qq $PACKAGES --no-install-recommends \ && make -B \ + && mkdir -p /opt/clean/lib/Local \ && rm -rf \ Clean\ System\ Files \ CleanReadLine \ @@ -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 @@ -78,6 +78,7 @@ int64_t compile(CleanString path, CleanString module) { "-I $CLEAN_HOME/lib/Platform/Deprecated/ArgEnv " "-I $CLEAN_HOME/lib/Platform/Deprecated/MersenneTwister " "-I $CLEAN_HOME/lib/Platform/Deprecated/StdLib " + "-I $CLEAN_HOME/lib/Local " "-b -nt -h 20M %s -o %s", pathchars, modulechars, modulechars); |