Skip to content

Instantly share code, notes, and snippets.

@yottu
Last active May 23, 2018 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yottu/e67344e915964cc384094e5df32d6bca to your computer and use it in GitHub Desktop.
Save yottu/e67344e915964cc384094e5df32d6bca to your computer and use it in GitHub Desktop.
>330 MB to run a terminal 4chan client
#!/bin/sh
docker build -t yottu - << __EOF__
FROM debian
RUN \
apt-get update && \
apt-get install -y python python-requests python-bs4 python-pil w3m-img \
libimlib2 ranger feh xterm sxiv git && \
git clone git://github.com/yottu/yottu.git && \
mkdir -p /root/img && \
ls -l
ENV DISPLAY :0
WORKDIR /yottu
CMD export TERM='xterm-256color' && /yottu/yottu.py
__EOF__
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
docker run -ti -v $XSOCK:$XSOCK -v $XAUTH:$XAUTH -e XAUTHORITY=$XAUTH yottu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment