aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-08-14 17:04:23 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2022-08-14 17:04:23 +0000
commit759ccd84ab78a5962172e8969d4084a53f8fb154 (patch)
tree63d4790c2404dd43f55e5fd1865a699b09e87fac
parentecaffd91fdf5c4d76f51c4f4ea574b08ebf75671 (diff)
downloadyaoi-communism-759ccd84ab78a5962172e8969d4084a53f8fb154.tar.gz
yaoi-communism-759ccd84ab78a5962172e8969d4084a53f8fb154.zip
Updated dependencies, README.md
-rwxr-xr-xDockerfile3
-rwxr-xr-xdocker-compose.yml1
-rwxr-xr-xreadme.md6
-rwxr-xr-xrequirements.txt5
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