diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 94d9880..d4ccf72 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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 }} diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 9aba941..ba181ac 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -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" diff --git a/docker-compose.yml b/docker-compose.yml index ef6e8e8..8a4c17c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 + diff --git a/runact.sh b/runact.sh new file mode 100644 index 0000000..468a2f6 --- /dev/null +++ b/runact.sh @@ -0,0 +1,3 @@ +act -P ubuntu-latest=h4ckermike/act_base \ + --verbose \ + --job mock_openai_and_autogpt diff --git a/vendor/Auto-GPT b/vendor/Auto-GPT index 2717205..2c9f2ec 160000 --- a/vendor/Auto-GPT +++ b/vendor/Auto-GPT @@ -1 +1 @@ -Subproject commit 271720501967226a1c5fb67fd5eba4a19a058e6a +Subproject commit 2c9f2ec8badcf331c74ed241a2df56abe4408cac