diff options
-rw-r--r-- | Dockerfile | 1 | ||||
-rw-r--r-- | README.md | 29 |
2 files changed, 30 insertions, 0 deletions
@@ -27,6 +27,7 @@ RUN export uid=1000 gid=1000 && \ | |||
27 | RUN \ | 27 | RUN \ |
28 | Xvfb :1 -screen 0 1366x768x16 &> xvfb.log && \ | 28 | Xvfb :1 -screen 0 1366x768x16 &> xvfb.log && \ |
29 | export DISPLAY=:1.0 && \ | 29 | export DISPLAY=:1.0 && \ |
30 | touch /root/.Xauthority && \ | ||
30 | touch /home/developer/.Xauthority && \ | 31 | touch /home/developer/.Xauthority && \ |
31 | pip3 install image && \ | 32 | pip3 install image && \ |
32 | pip3 install python3-xlib && \ | 33 | pip3 install python3-xlib && \ |
@@ -1 +1,30 @@ | |||
1 | # LumberJack bot [![CircleCI](https://circleci.com/gh/clarkzjw/LumberJack.svg?style=svg)](https://circleci.com/gh/clarkzjw/LumberJack) | 1 | # LumberJack bot [![CircleCI](https://circleci.com/gh/clarkzjw/LumberJack.svg?style=svg)](https://circleci.com/gh/clarkzjw/LumberJack) |
2 | |||
3 | ## Usage | ||
4 | |||
5 | ```python | ||
6 | python3 bot.py | ||
7 | ``` | ||
8 | |||
9 | Make sure you have PyAutoGUI installed. | ||
10 | |||
11 | If you use Debian based Linux, you can install PyAutoGUI by | ||
12 | |||
13 | ```bash | ||
14 | sudo apt-get install scrot python3-tk python3 python3-dev python3-pip | ||
15 | sudo pip3 install image | ||
16 | sudo pip3 install python3-xlib | ||
17 | sudo pip3 install pyautogui | ||
18 | ``` | ||
19 | |||
20 | ## The Docker way | ||
21 | |||
22 | Although the Docker image of this bot cannot work correctly, you can give it a try. Remember to read the comments on top of Dockerfile | ||
23 | |||
24 | ```bash | ||
25 | docker run -it \ | ||
26 | -e DISPLAY=$DISPLAY \ | ||
27 | -v /tmp/.X11-unix:/tmp/.X11-unix \ | ||
28 | clarkzjw/lumberjack | ||
29 | ``` | ||
30 | |||