Add missing ffmpeg to docker image Change compose to use the .env file Remove old docker workflow Set arm64 to only be added to release docker images Push to main and pr's make amd64 docker images only Update INSTALLATION.md Add more variables to sample.env Update requirements.txt to include whisper as a pypi package Update pyproject.toml with optional dependencies as [full] Make two docker images, base(865MB) and full(1.69GB) Add two requirements files as base and full for dependencies Base doesn't have image, video and audio indexing capability
parent
b034309ec0
commit
f5bef32166
@ -1,56 +0,0 @@
|
||||
name: docker
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
if: github.repository == 'Kav-K/GPT3Discord'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Check + set version tag
|
||||
run:
|
||||
echo "GIT_TAG=$(git describe --candidates=0 --tags 2> /dev/null || echo
|
||||
latest_non_release)" >> $GITHUB_ENV
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: kaveenk/gpt3discord:latest,kaveenk/gpt3discord:${{ env.GIT_TAG }}
|
||||
|
||||
- name: Build and push latest_release tag
|
||||
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: kaveenk/gpt3discord:latest_release
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
@ -1,31 +1,12 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
gpt3discord:
|
||||
image: ghcr.io/kav-k/gpt3discord:main
|
||||
image: ghcr.io/kav-k/gpt3discord:main-full
|
||||
container_name: gpt3discord
|
||||
environment:
|
||||
OPENAI_TOKEN: "<openai_api_token>"
|
||||
DISCORD_TOKEN: "<discord_bot_token>"
|
||||
PINECONE_TOKEN: "<pinecone_api_token>"
|
||||
PINECONE_REGION: "<pinecone_region>"
|
||||
DEBUG_GUILD: "974519864045756446"
|
||||
DEBUG_CHANNEL: "977697652147892304"
|
||||
ALLOWED_GUILDS: "971268468148166697,971268468148166697"
|
||||
GOOGLE_SEARCH_API_KEY: "<google_api_key>"
|
||||
GOOGLE_SEARCH_ENGINE_ID: "<google_engine_id>"
|
||||
DEEPL_TOKEN: "<deepl_token>"
|
||||
ADMIN_ROLES: "Admin,Owner"
|
||||
DALLE_ROLES: "Admin,Openai,Dalle,gpt"
|
||||
GPT_ROLES: "openai,gpt"
|
||||
TRANSLATOR_ROLES: "Admin,Owner"
|
||||
INDEX_ROLES: "Admin,Owner"
|
||||
SEARCH_ROLES: "Admin,Owner"
|
||||
CUSTOM_BOT_NAME: "GPT3Discord"
|
||||
WELCOME_MESSAGE: "Hi There! Welcome to our Discord server. We hope you'll enjoy our server and we look forward to engaging with you!"
|
||||
USER_INPUT_API_KEYS: "False"
|
||||
MODERATIONS_ALERT_CHANNEL: "977697652147892304"
|
||||
USER_KEY_DB_PATH: "user_key_db.sqlite"
|
||||
volumes:
|
||||
#replace left side with the path to your .env if different, this uses the env in the folder the docker-compose.yml is in
|
||||
- ./.env:/opt/gpt3discord/etc/environment
|
||||
# Replace the left side with a path on your hard drive where you want to store the data for both of these
|
||||
- /containers/gpt3discord:/data
|
||||
- /containers/gpt3discord/share:/data/share
|
||||
restart: always
|
||||
|
@ -0,0 +1,18 @@
|
||||
Pillow==9.3.0
|
||||
py-cord==2.3.2
|
||||
python-dotenv==0.21.0
|
||||
requests==2.28.1
|
||||
transformers==4.25.1
|
||||
pycord-multicog==1.0.2
|
||||
aiofiles==22.1.0
|
||||
pinecone-client==2.1.0
|
||||
sqlitedict==2.1.0
|
||||
backoff==2.2.1
|
||||
flask==2.2.2
|
||||
beautifulsoup4==4.11.1
|
||||
gpt-index==0.4.7
|
||||
PyPDF2==3.0.1
|
||||
youtube_transcript_api==0.5.0
|
||||
sentencepiece==0.1.97
|
||||
protobuf==3.20.1
|
||||
python-pptx==0.6.21
|
@ -0,0 +1,8 @@
|
||||
tokenizers==0.13.2
|
||||
tqdm==4.64.1
|
||||
numpy==1.24.2
|
||||
scipy==1.10.1
|
||||
nltk==3.8.1
|
||||
huggingface-hub==0.12.1
|
||||
more-itertools==9.0.0
|
||||
ffmpeg-python==0.2.0
|
Loading…
Reference in new issue