Skip to content

Commit

Permalink
Dockerfile: skip working directory, add verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
motiejus committed May 22, 2024
1 parent dc28c4e commit 3b227fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_release
_debug
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

```
Expand All @@ -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/

0 comments on commit 3b227fb

Please sign in to comment.