Last active
May 23, 2018 19:27
-
-
Save yottu/e67344e915964cc384094e5df32d6bca to your computer and use it in GitHub Desktop.
>330 MB to run a terminal 4chan client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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