diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-08-11 18:12:29 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-08-11 18:12:29 +0000 |
commit | 4ea267bdedc9736456f1ec0f8b0c76ed3a6254e8 (patch) | |
tree | 2aa1ab54235fb60975bdc076fa87bc83e844a67a | |
parent | 5a3378bb7d8ee2e6ba8f44ac29f34b658915b0c5 (diff) | |
download | yaoi-communism-4ea267bdedc9736456f1ec0f8b0c76ed3a6254e8.tar.gz yaoi-communism-4ea267bdedc9736456f1ec0f8b0c76ed3a6254e8.zip |
Updated dockerfile
-rwxr-xr-x[-rw-r--r--] | Dockerfile | 4 | ||||
-rwxr-xr-x | Thumbs.db | bin | 0 -> 19456 bytes | |||
-rwxr-xr-x[-rw-r--r--] | crontab | 0 | ||||
-rwxr-xr-x | database.py | 15 | ||||
-rwxr-xr-x[-rw-r--r--] | docker-compose.yml | 0 | ||||
-rwxr-xr-x | requirements.txt | 3 |
6 files changed, 19 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile index fb7d715..744696d 100644..100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ FROM debian:latest MAINTAINER Eden Attenborough "eddie.atten.ea29@gmail.com" RUN apt-get update -y -RUN apt-get install -y tzdata python3-pip python-dev build-essential pkg-config cron +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 RUN pip3 install -r requirements.txt -ENTRYPOINT ["cron", "-f"]
\ No newline at end of file +ENTRYPOINT ["cron", "-f"] diff --git a/Thumbs.db b/Thumbs.db Binary files differnew file mode 100755 index 0000000..1446464 --- /dev/null +++ b/Thumbs.db diff --git a/database.py b/database.py new file mode 100755 index 0000000..82c019b --- /dev/null +++ b/database.py @@ -0,0 +1,15 @@ +import pymysql +import get_images + +class Database: + def __enter__(self): + self.__connection = pymysql.connect( + **CONFIG["mysql"] + ) + return self + + def __exit__(self, type, value, traceback): + self.__connection.commit() + self.__connection.close() + + def append_black
\ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index ac1e4a0..ac1e4a0 100644..100755 --- a/docker-compose.yml +++ b/docker-compose.yml diff --git a/requirements.txt b/requirements.txt index cc0f624..6dddbb1 100755 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,6 @@ opencv_python_headless requests==2.18.4 lxml==4.5.2 dataclasses -Pillow==7.2.0 +pillow==7.2.0 twython==3.8.2 +pymysql |