Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Oct 6, 2023
1 parent 71e87f7 commit d2a4444
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 27 deletions.
30 changes: 30 additions & 0 deletions docker-compose-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '3'
services:
mockopenai: # interface
healthcheck:
test: curl --fail http://mockopenai:8080/v1/models
interval: 5s
timeout: 5s
retries: 5
environment:
- GITHUB_PAT=${GITHUB_PAT}
- GITHUB_REPO=${GITHUB_REPO}
image: h4ckermike/mockopenai
ports:
- "8080:5000"
autogpt: #the beast
extra_hosts:
- "host.docker.internal:host-gateway"
entrypoint: bash -c "poetry run autogpt --install-plugin-deps --skip-news \
--ai-name "${AI_NAME}" \
--ai-role "${AI_ROLE}" \
"${AI_GOALS}" \
-y --continuous --continuous-limit 1 "
environment:
- GITHUB_PAT="${GITHUB_PAT}"
- GITHUB_REPO="jmikedupont2/ai-ticket"
- OPENAI_API_KEY=your-openai-api-key
- OPENAI_API_BASE=http://host.docker.internal:8080/v1
image: h4ckermike/autogpt
depends_on:
- mockopenai
94 changes: 67 additions & 27 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,63 @@
version: '3'
services:

ai_ticket:
image: ai_ticket
build:
context: .
#entrypoint: /bin/bash
#stdin_open: true # docker run -i
#tty: true # docker run -t
act_base: #root base of action
image: h4ckermike/act_base
#build: vendor/act_base
#h4ckermike/
poetry_base: # use poetry
image: h4ckermike/poetry_base
# build:
# context: vendor/python-poetry/build
# args:
# OFFICIAL_PYTHON_IMAGE: h4ckermike/act_base:latest
# POETRY_VERSION: 1.6.1
depends_on:
- act_base

ai_ticket: # the ticket to unite
image: h4ckermike/ai_ticket
# build:
# context: .
# args:
# BASE_IMAGE: h4ckermike/poetry_base
depends_on:
- poetry_base

basic_agent: #basic agnet
image: h4ckermike/basic_agent
# build:
# context: vendor/basic_agent/
# args:
# OFFICIAL_PYTHON_IMAGE: h4ckermike/act_base:latest
depends_on:
- ai_ticket

mockopenai: # interface
depends_on:
- ai_ticket
healthcheck:
test: curl --fail http://mockopenai:8080/v1/models
interval: 5s
timeout: 5s
retries: 5

environment:
- GITHUB_PAT=${GITHUB_PAT}
- GITHUB_REPO=${GITHUB_REPO}
image: h4ckermike/mockopenai
# build:
# context: vendor/lollms/
# args:
# OFFICIAL_PYTHON_IMAGE: h4ckermike/ai_ticket:latest
ports:
- "8080:5000"

autogpt: #the beast
extra_hosts:
- "host.docker.internal:host-gateway"
entrypoint: bash -c "poetry run autogpt --install-plugin-deps --skip-news --ai-name 'meta-autogpt' --ai-role 'you will introspect autogpt and reveal its internals via reflection and comprehension' --ai-goal 'Observe your behaviour' --ai-goal 'Reflect over your outcomes' --ai-goal 'Orient yourself to your knowledge' --ai-goal 'Decide on your next step' --ai-goal 'Act on your chosen next experiment' -y --continuous --continuous-limit 1 "

autogpt:
#entrypoint: bash -c "poetry run pip install /opt/ai-ticket && poetry run autogpt --install-plugin-deps --skip-news -y"
entrypoint: bash -c "poetry run pip install /opt/ai-ticket && poetry run autogpt --install-plugin-deps --skip-news -y --ai-name 'meta-autogpt' --ai-role 'you will introspect autogpt and reveal its internals via reflection and comprehension' --ai-goal 'Observe your behaviour' --ai-goal 'Reflect over your outcomes' --ai-goal 'Orient yourself to your knowledge' --ai-goal 'Decide on your next step' --ai-goal 'Act on your chosen next experiment' "

# uncomment thse next 3 lines for debugging
#entrypoint: /bin/bash
Expand All @@ -21,22 +67,16 @@ services:
- 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/
depends_on:
- mockopenai
- OPENAI_API_BASE=http://host.docker.internal:8080/v1
image: h4ckermike/autogpt
volumes:
- ./vendor/Auto-GPT/autogpts/autogpt/autogpt/:/app/autogpt
# build:
# context: vendor/Auto-GPT/
# dockerfile: slim/Dockerfile
# args:
# OFFICIAL_PYTHON_IMAGE: h4ckermike/ai_ticket:latest

mockopenai:
depends_on:
- ai_ticket

environment:
- GITHUB_PAT=${GITHUB_PAT}
- GITHUB_REPO=${GITHUB_REPO}

build:
context: vendor/lollms/
ports:
- "5000:5000"

- basic_agent
- mockopenai

0 comments on commit d2a4444

Please sign in to comment.