diff --git a/readme.md b/readme.md index 466085e..accf635 100644 --- a/readme.md +++ b/readme.md @@ -35,7 +35,9 @@
+ + +```yaml # ./docker-compose.yml version: '3' @@ -62,17 +64,18 @@ services: volumes: db_data: {} -+```
docker-compose up -d-
cd meme git clone https://repo.gabrielkheisa.xyz/gabrielkheisa/meme-generator.git +cd meme-generator git checkout docker@@ -89,9 +92,23 @@ docker exec -u root -t -i some-app /bin/bash mysql -u root -p -
-GRANT ALL PRIVILEGES ON meme.* TO 'dbuser'@'localhost' WITH GRANT OPTION; +USE appdb; + +CREATE TABLE `meme` ( + `id` INT(10) NOT NULL AUTO_INCREMENT, + `session` VARCHAR(20), + `status` INT(1), + `timestamp` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `value` TEXT, + PRIMARY KEY (`id`) +); ++
+ + +GRANT ALL PRIVILEGES ON appdb.* TO 'dbusr'@'localhost' WITH GRANT OPTION; exit;@@ -104,8 +121,16 @@ cd /var/www/html/meme-generator
apk add --no-cache python3 py3-pip+
+apk add make automake gcc g++ subversion python3-dev +apk add ffmpeg +pip3 install --upgrade pip +pip3 install mysql-connector-python==8.0.29 +pip3 install moviepy +
python3 renderDB.py -\ No newline at end of file + +