From eae4192480f558967e909cb8a9e8a260239ca92d Mon Sep 17 00:00:00 2001 From: mike dupont Date: Sun, 15 Oct 2023 14:11:08 -0400 Subject: [PATCH] docker compose working --- README.md | 7 +++++++ docker-compose.yml | 30 ++++++++++++++++++++++-------- vendor/AutoGPTv2 | 1 - 3 files changed, 29 insertions(+), 9 deletions(-) delete mode 160000 vendor/AutoGPTv2 diff --git a/README.md b/README.md index 43a8cfd..872eb6d 100644 --- a/README.md +++ b/README.md @@ -43,3 +43,10 @@ The docker images are organized like this : * act_base is the foundation of all actions. * poetry_base is contains the poetry magic layer with shared containers. + + +# RUnning + +`sudo docker-compose build` +`sudo docker-compose up mockopenai` +`sudo docker-compose run auto-gpt-chat-gpt-prompts ` diff --git a/docker-compose.yml b/docker-compose.yml index 63e708b..d350384 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -111,21 +111,35 @@ services: # vendor/AutoGPTv2/autogpts/autogpt/.devcontainer/Dockerfile # vend or/AutoGPTv2/autogpts/autogpt/Dockerfile - auto_honey_comber: - build: - context: vendor/AutoGPTv2/ - dockerfile: autogpts/AutoHoneyComber/Dockerfile + # auto_honey_comber: + # build: + # context: vendor/AutoGPTv2/ + # dockerfile: autogpts/AutoHoneyComber/Dockerfile + # args: + # BASE_IMAGE: h4ckermike/basic_agent + # volumes: + # - ./vendor/AutoGPTv2/autogpts/AutoHoneyComber/:/app/ #mount the source in for editing without reboot # vendor/AutoGPTv2/autogpts/AutoHoneyComber/Dockerfile # vendor/AutoGPTv2/autogpts/forge/Dockerfile auto-gpt-chat-gpt-prompts: - build: - context: vendor/AutoGPTv2/ - dockerfile: autogpts/AutoHoneyComber/Dockerfile + #--ai-settings ai_settings.yaml + entrypoint: bash -c "python -m autogpt -y --ai-settings /tmp/ai_settings.yaml " + environment: + - GITHUB_PAT="${GITHUB_PAT}" + - GITHUB_REPO="jmikedupont2/ai-ticket" + - OPENAI_API_KEY=your-openai-api-key + - OPENAI_API_BASE=http://mockopenai:5000/v1 + build: + context: vendor/Auto-GPT-chat-gpt-prompts/ + #dockerfile: Dockerfile + volumes: + - ./vendor/Auto-GPT-chat-gpt-prompts/:/app/ #mount the source in for editing witho + - ./vendor/Auto-GPT/autogpts/autogpt/ai_settings.yaml:/tmp/ai_settings.yaml # vendor/Auto-GPT-chat-gpt-prompts/.devcontainer/Dockerfile - # vendor/Auto-GPT-chat-gpt-prompts/Dockerfile + # Auto-GPT-aj: build: diff --git a/vendor/AutoGPTv2 b/vendor/AutoGPTv2 deleted file mode 160000 index b4fccc1..0000000 --- a/vendor/AutoGPTv2 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b4fccc16715fb86b19fe9648eb5526fdf644663d