Docker Improvements & Simplification
This commit is contained in:
parent
36705c8a86
commit
9b50612f19
@ -1,9 +1,10 @@
|
|||||||
FROM python:3.8-buster
|
FROM python:3.10.0a7-alpine3.13
|
||||||
|
|
||||||
WORKDIR /Praxis
|
WORKDIR /Praxis
|
||||||
|
|
||||||
COPY requirements.txt requirements.txt
|
COPY requirements_sa_discord.txt requirements_sa_discord.txt
|
||||||
RUN pip3 install -r requirements.txt
|
RUN apk add --update gcc libc-dev linux-headers && rm -rf /var/cache/apk/*
|
||||||
|
RUN pip3 install -r requirements_sa_discord.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
FROM python:3.8-buster
|
FROM python:3.10.0a7-alpine3.13
|
||||||
|
|
||||||
WORKDIR /Praxis
|
WORKDIR /Praxis
|
||||||
|
|
||||||
COPY requirements.txt requirements.txt
|
COPY requirements_sa_twitch.txt requirements_sa_twitch.txt
|
||||||
RUN pip3 install -r requirements.txt
|
RUN apk add --update gcc libc-dev linux-headers && rm -rf /var/cache/apk/*
|
||||||
|
RUN pip3 install -r requirements_sa_twitch.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
FROM python:3.8-buster
|
FROM python:3.10.0a7-alpine3.13
|
||||||
|
|
||||||
WORKDIR /Praxis
|
WORKDIR /Praxis
|
||||||
|
|
||||||
COPY requirements.txt requirements.txt
|
COPY requirements_sa_command.txt requirements_sa_command.txt
|
||||||
RUN pip3 install -r requirements.txt
|
RUN apk add --update gcc libc-dev linux-headers && rm -rf /var/cache/apk/*
|
||||||
|
RUN pip3 install -r requirements_sa_command.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
@ -20,8 +20,8 @@ Run the following to enable these V2 modules without Docker. (After you install
|
|||||||
|
|
||||||
Use these commands to build the images.</br>
|
Use these commands to build the images.</br>
|
||||||
`docker build --file Dockerfile_standalone_command --tag standalone_command .`</br>
|
`docker build --file Dockerfile_standalone_command --tag standalone_command .`</br>
|
||||||
`docker build --file Dockerfile_standalone_TwitchScript --tag twitchscript_standalone .`</br>
|
`docker build --file Dockerfile_standalone_TwitchScript --tag standalone_twitchscript .`</br>
|
||||||
`docker build --file Dockerfile_standalone_DiscordScript --tag discordscript_standalone .`</br>
|
`docker build --file Dockerfile_standalone_DiscordScript --tag standalone_discordscript .`</br>
|
||||||
|
|
||||||
### Docker-Compose Info:
|
### Docker-Compose Info:
|
||||||
|
|
||||||
|
|||||||
@ -7,10 +7,10 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- ISDOCKER=cat
|
- ISDOCKER=cat
|
||||||
twitchscript_standalone:
|
twitchscript_standalone:
|
||||||
image: twitchscript_standalone
|
image: standalone_twitchscript
|
||||||
environment:
|
environment:
|
||||||
- ISDOCKER=cat
|
- ISDOCKER=cat
|
||||||
discordscript_standalone:
|
discordscript_standalone:
|
||||||
image: discordscript_standalone
|
image: standalone_discordscript
|
||||||
environment:
|
environment:
|
||||||
- ISDOCKER=cat
|
- ISDOCKER=cat
|
||||||
3
makedockerimages.bat
Normal file
3
makedockerimages.bat
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
docker build --file Dockerfile_standalone_command --tag standalone_command .
|
||||||
|
docker build --file Dockerfile_standalone_DiscordScript --tag standalone_discordscript .
|
||||||
|
docker build --file Dockerfile_standalone_TwitchScript --tag standalone_twitchscript .
|
||||||
7
requirements_sa_command.txt
Normal file
7
requirements_sa_command.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
twitch-python
|
||||||
|
discord.py
|
||||||
|
flask
|
||||||
|
psutil
|
||||||
|
phue
|
||||||
|
art
|
||||||
|
requests
|
||||||
4
requirements_sa_discord.txt
Normal file
4
requirements_sa_discord.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
discord.py
|
||||||
|
psutil
|
||||||
|
art
|
||||||
|
requests
|
||||||
4
requirements_sa_twitch.txt
Normal file
4
requirements_sa_twitch.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
twitch-python
|
||||||
|
psutil
|
||||||
|
art
|
||||||
|
requests
|
||||||
24
standalone_twitch_pubsub.py
Normal file
24
standalone_twitch_pubsub.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import credentials
|
||||||
|
|
||||||
|
import config
|
||||||
|
import utilities_script as utility
|
||||||
|
|
||||||
|
class Twitch_Pubsub():
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__()
|
||||||
|
self.twitchCredential: credentials.Twitch_Credential
|
||||||
|
|
||||||
|
def main():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
testModule = Twitch_Pubsub()
|
||||||
|
|
||||||
|
credentials_manager = credentials.Credentials_Module()
|
||||||
|
credentials_manager.load_credentials()
|
||||||
|
testModule.twitchCredential = credentials_manager.find_Twitch_Credential(config.credentialsNickname)
|
||||||
|
#testModule.dbCredential = credentials_manager.find_DB_Credential(config.credentialsNickname)
|
||||||
|
|
||||||
|
for twitchChannel in config.autoJoin_TwitchChannels:
|
||||||
|
testModule.join_channel(None, twitchChannel)
|
||||||
Loading…
Reference in New Issue
Block a user