From a7fc6da2cb19d1f835d9944384a860635fff3c5e Mon Sep 17 00:00:00 2001 From: BigGamerGary Date: Wed, 22 Nov 2023 12:06:58 +1000 Subject: [PATCH] Preperations for setting up game picker 1.0 --- .../BlackJackOld.py | 0 docker-compose.yml | 11 +++++++++++ ledger.db | Bin 8192 -> 8192 bytes plan.txt | 5 +++++ Acronymbot.py => src/py/Acronymbot.py | 0 BlackJack.py => src/py/BlackJack.py | 0 Calculator.py => src/py/Calculator.py | 0 Dockerfile => src/py/Dockerfile | 5 ++--- Gamepicker.py => src/py/Gamepicker.py | 0 Ledger.py => src/py/Ledger.py | 0 10 files changed, 18 insertions(+), 3 deletions(-) rename BlackJackOld.py => BlackJackBot/BlackJackOld.py (100%) create mode 100644 docker-compose.yml create mode 100644 plan.txt rename Acronymbot.py => src/py/Acronymbot.py (100%) rename BlackJack.py => src/py/BlackJack.py (100%) rename Calculator.py => src/py/Calculator.py (100%) rename Dockerfile => src/py/Dockerfile (55%) rename Gamepicker.py => src/py/Gamepicker.py (100%) rename Ledger.py => src/py/Ledger.py (100%) diff --git a/BlackJackOld.py b/BlackJackBot/BlackJackOld.py similarity index 100% rename from BlackJackOld.py rename to BlackJackBot/BlackJackOld.py diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6d5b113 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.3" + +volumes: + +networks: + +services: + acronymbot: + build: ./src/py + volumes: + - "./src/py:/usr/app/src" diff --git a/ledger.db b/ledger.db index add31d7b5f2cdfe9f3973260552c916a183bc64e..71260aa9ee6b4fe0b689f702a3871642f92106d5 100644 GIT binary patch delta 41 wcmZp0XmFSy&3JvHj5Fi)jR~Fd;u$hLLQHH7Y)p)dOqR7%YM2-pWPO6;0s4&!H2?qr delta 41 xcmZp0XmFSy&3JX9j5FiajR~Fd;%8*Ig_zhF*q9g@nJjCk)G#qH$ZiOZ0{{dt3ikj2 diff --git a/plan.txt b/plan.txt new file mode 100644 index 0000000..b261de2 --- /dev/null +++ b/plan.txt @@ -0,0 +1,5 @@ +Microservices: + - Some sort of database for storing the data + - Image for the python code that runs the bot + - Something to interface the two, like sparkSQL for interacting with the database + \ No newline at end of file diff --git a/Acronymbot.py b/src/py/Acronymbot.py similarity index 100% rename from Acronymbot.py rename to src/py/Acronymbot.py diff --git a/BlackJack.py b/src/py/BlackJack.py similarity index 100% rename from BlackJack.py rename to src/py/BlackJack.py diff --git a/Calculator.py b/src/py/Calculator.py similarity index 100% rename from Calculator.py rename to src/py/Calculator.py diff --git a/Dockerfile b/src/py/Dockerfile similarity index 55% rename from Dockerfile rename to src/py/Dockerfile index ca5d95a..32c77d2 100644 --- a/Dockerfile +++ b/src/py/Dockerfile @@ -4,8 +4,7 @@ RUN pip install discord WORKDIR /usr/app/src -COPY Acronymbot.py ./ -COPY BlackJack.py ./ -COPY Ledger.py ./ +VOLUME /usr/app/src +# -v flag to mount to this volume. -v [from]:/usr/app/src CMD [ "python", "./Acronymbot.py" ] \ No newline at end of file diff --git a/Gamepicker.py b/src/py/Gamepicker.py similarity index 100% rename from Gamepicker.py rename to src/py/Gamepicker.py diff --git a/Ledger.py b/src/py/Ledger.py similarity index 100% rename from Ledger.py rename to src/py/Ledger.py