Skip to content

Instantly share code, notes, and snippets.

@Saoneth
Last active December 5, 2023 18:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Saoneth/02f08d4714e6fc035e7017c74b3ef29a to your computer and use it in GitHub Desktop.
Save Saoneth/02f08d4714e6fc035e7017c74b3ef29a to your computer and use it in GitHub Desktop.
#!/bin/sh
docker run -t -e UID="$(id -u)" -e GID="$(id -g)" -v "$PWD":/w -w /tmp --rm alpine sh -c 'wget "https://github.com/Tomas-M/iotop/archive/master.zip" && unzip master.zip && cd iotop-master && apk add gcc make ncurses-dev linux-headers ncurses-static musl-dev && V=1 LIBS="-no-pie -static -static-libgcc -static-libstdc++" make && strip -s iotop && chown "$UID:$GID" iotop && chmod +x iotop && mv iotop /w/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment