Skip to content

Commit

Permalink
switch to debian for build image to link against libc
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicBreuker committed Apr 5, 2018
1 parent 925998b commit 5574696
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ Inotify watchers placed on selected parts of the file system trigger these scans
## Getting started

Get the tool onto the Linux machine you want to inspect.
You must choose between the 32 and 64 bit versions.
The files are (for now) in the `/bin` folder of this repository.
- 32 bit version: [download](bin/pspy32)
- 64 bit version: [download](bin/pspy64)
First get the binaries.

You can build them yourself by running `make build-build-image` to build a docker image used in `make build` to build four binaries:
- 32 bit big, static version: `pspy32`
- 64 bit big, static version: `pspy64`
- 32 bit small version: `pspy32s`
- 64 bit small version: `pspy64s`
The statically compiled files should work on any Linux system but are quite huge (~4MB).
If size is an issue, try the smaller versions which depend on libc and are compressed with UPX (<1MB).

You can run `pspy --help` to learn about the flags and their meaning.
The summary is as follows:
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM golang:1.10-alpine
FROM golang:1.10-stretch

RUN apk add upx --no-cache
RUN apt-get update && apt-get install -y upx && rm -rf /var/lib/apt/lists/*

0 comments on commit 5574696

Please sign in to comment.