Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,27 @@ on:
jobs:

build-and-publish-docker:

runs-on: h4ckermike/act_base:latest
runs-on: ubuntu-latest
#runs-on: h4ckermike/act_base:latest

steps:
- uses: actions/checkout@v3
- uses: meta-introspector/checkout@v3
with :
submodules: true

- name: Build the Docker imaage
run: docker-compose build
run: docker-compose build autogpt-standalone

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: "h4ckermike"
password: ${{ secrets.DOCKER }}
logout : 'false'

- name: Build the Docker imaage
run: docker-compose push

run: docker-compose push autogpt-standalone
env:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
DOCKER_HUB_USERNAME: "h4ckermike"
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER }}
2 changes: 1 addition & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
submodules: 'true'
- name: Run autogpt in docker with mock openai server
run: docker-compose up --no-build
run: docker-compose up --no-build --abort-on-container-exit
env:
GITHUB_PAT: ${{ secrets.PAT }}
GITHUB_REPO: "jmikedupont2/ai-ticket"
Expand Down
75 changes: 42 additions & 33 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,46 @@
version: '3'
services:

ai_ticket:
image: ai_ticket
build:
context: .
#entrypoint: /bin/bash
#stdin_open: true # docker run -i
#tty: true # docker run -t

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
#stdin_open: true # docker run -i
#tty: true # docker run -t
build:
context: vendor/Auto-GPT/
depends_on:
- mockopenai

mockopenai:
depends_on:
- ai_ticket

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

build:
context: vendor/lollms/
ports:
- "5000:5000"
# ai_ticket:
# image: ai_ticket
# build:
# context: .
# #entrypoint: /bin/bash
# #stdin_open: true # docker run -i
# #tty: true # docker run -t

# 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
# #stdin_open: true # docker run -i
# #tty: true # docker run -t
# build:
# context: vendor/Auto-GPT/
# depends_on:
# - mockopenai

# mockopenai:
# depends_on:
# - ai_ticket

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

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

autogpt-standalone:
image: h4ckermike/autogpt-standalone
build:
context: vendor/Auto-GPT/
dockerfile: slim/Dockerfile
args:
OFFICIAL_PYTHON_IMAGE: h4ckermike/ai_ticket:latest


3 changes: 3 additions & 0 deletions runact.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
act -P ubuntu-latest=h4ckermike/act_base \
--verbose \
--job mock_openai_and_autogpt
2 changes: 1 addition & 1 deletion vendor/Auto-GPT
Submodule Auto-GPT updated 2 files
+23 −13 Dockerfile
+2 −2 slim/Dockerfile