From 759ccd84ab78a5962172e8969d4084a53f8fb154 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sun, 14 Aug 2022 17:04:23 +0000 Subject: Updated dependencies, README.md --- Dockerfile | 3 ++- docker-compose.yml | 1 + readme.md | 6 +++++- requirements.txt | 5 +++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 744696d..b52b107 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ FROM debian:latest MAINTAINER Eden Attenborough "eddie.atten.ea29@gmail.com" -RUN apt-get update -y +RUN apt-get update --allow-releaseinfo-change RUN apt-get install -y tzdata python3-pip build-essential pkg-config cron libjpeg-dev zlib1g-dev libfreetype6-dev COPY . /app WORKDIR /app COPY crontab /etc/cron.d/oad-crontab RUN chmod 0644 /etc/cron.d/oad-crontab && crontab /etc/cron.d/oad-crontab +ARG PIP_ONLY_BINARY=cmake RUN pip3 install -r requirements.txt ENTRYPOINT ["cron", "-f"] diff --git a/docker-compose.yml b/docker-compose.yml index ac1e4a0..bcb7354 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,7 @@ version: '3' services: cron: + container_name: yaoi-communism build: context: . dockerfile: Dockerfile diff --git a/readme.md b/readme.md index 879b8f3..ea4c32b 100755 --- a/readme.md +++ b/readme.md @@ -18,7 +18,7 @@ Designed to be run once an hour using a cron job. - `python3 bot.py` -## running in docker +## Running in docker - `sudo docker-compose build` @@ -26,4 +26,8 @@ Designed to be run once an hour using a cron job. Should do everything by itself if you set the config file correctly +To manually run (for testing): + +`sudo docker run -it --entrypoint python3 --rm jwansek/yaoi-communism /app/bot.py` + ![Example image](https://pbs.twimg.com/media/EgSA-hVXoAIXLbB?format=jpg&name=large) diff --git a/requirements.txt b/requirements.txt index 6dddbb1..92fffd3 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,10 @@ +cmake<3.23 Shapely==1.7.1 colorthief==0.2.1 -opencv_python_headless +opencv_python_headless==4.5.4.60 requests==2.18.4 lxml==4.5.2 dataclasses -pillow==7.2.0 +pillow twython==3.8.2 pymysql -- cgit v1.2.3