diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6fcce79 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +_release +_debug diff --git a/Dockerfile b/Dockerfile index aa19614..0f523db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ COPY . . RUN CC="zig cc -target $(uname -m)-linux-musl" \ CXX="zig c++ -target $(uname -m)-linux-musl" \ - make + make VERBOSE=1 FROM scratch COPY --from=0 /inotify-info/_release/inotify-info /inotify-info diff --git a/README.md b/README.md index 3c64833..3ea2214 100644 --- a/README.md +++ b/README.md @@ -154,13 +154,16 @@ Searching '/' for listed inodes... (8 threads) 94111468 [10304h] /home/mikesart/.cache/xfce4/xfce4-appfinder/ ``` -## Run on Docker +## Run on Docker/podman ```sh docker build . -t inotify-info docker run --rm --privileged -v /proc:/proc inotify-info ``` +When running under [podman][podman] non-root mode, append `--ulimit +nofile=65535:65535` to the `podman build` command. + ## Run on Nix(OS) ``` @@ -176,3 +179,4 @@ nix run nixpkgs#inotify-info [problem2]: https://unix.stackexchange.com/questions/15509/whos-consuming-my-inotify-resources [lfqueue]: https://github.com/Taymindis/lfqueue [bsd]: https://github.com/Taymindis/lfqueue/blob/master/LICENSE +[podman]: https://podman.io/