Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/arm64 fastembed #8

Open
wants to merge 50 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
8485e19
squashing
Jan 8, 2025
5882b45
Now responding locally, it shows akash
Jan 10, 2025
b411c95
adding systemd and start script
Jan 11, 2025
c0d2235
Update README.md
jmikedupont2 Jan 11, 2025
a7d6ba8
first draft untested of sdk with no boot yet
Jan 12, 2025
9531466
readme
Jan 12, 2025
4de1ea0
update readme and bootscript
Jan 12, 2025
9bd429d
adding curl to the dockerfile
Jan 12, 2025
20426ee
now booting into chatgpt
Jan 12, 2025
846cfe7
adding the docker compose .env example
Jan 12, 2025
5e5bba1
working locally
Jan 12, 2025
4b64b89
adding FIXME for values to change
Jan 12, 2025
93f4f2e
updating image name and creating branch
Jan 12, 2025
433f2d4
adding platforms
Jan 12, 2025
055444b
plaforms
Jan 12, 2025
a25263f
lets get this build working
Jan 13, 2025
854e374
remove install
Jan 13, 2025
520afaf
image
Jan 13, 2025
f88cf14
Update image.yaml
jmikedupont2 Jan 13, 2025
29a6e13
try the default node image
Jan 13, 2025
e71735d
Merge remote-tracking branch 'origin/feature/micro' into feature/micro
Jan 13, 2025
63f9e64
try again
Jan 13, 2025
238b40e
Update generate-readme-translations.yml
jmikedupont2 Jan 13, 2025
4d2be64
Update greetings.yml
jmikedupont2 Jan 13, 2025
750bfd0
trying again
Jan 13, 2025
61c9d58
arm64v8 build
Jan 13, 2025
3152315
now using standard tagging
Jan 13, 2025
a98445d
changing targets
Jan 13, 2025
4d47ebe
change tag
Jan 13, 2025
ea5b12c
node
Jan 13, 2025
e92c167
update image
Jan 13, 2025
5ad19ab
a new try and removing forked modules
Jan 14, 2025
cbaff2f
run local docker helper
Jan 15, 2025
87acab2
runlocaldocker
Jan 15, 2025
fa12d63
fixing bad tag
Jan 15, 2025
2190384
strace
Jan 15, 2025
f26a3b2
remove the auto build
Jan 15, 2025
e77c6ed
wip
Jan 15, 2025
4e906fa
a second copy
Jan 15, 2025
c1f5328
adding
Jan 15, 2025
df9cbb8
adding my local files to git ignore
Jan 15, 2025
53ce34c
falsy ignored
Jan 15, 2025
015bfc9
install
Jan 15, 2025
51e4824
fix
Jan 15, 2025
fdb451a
fix
Jan 15, 2025
d53a882
update
Jan 15, 2025
9d9a1e6
fix
Jan 15, 2025
fb07ce7
this might just work
Jan 15, 2025
18347ce
now this might work
Jan 15, 2025
4fbdf21
W00T! its running :)
Jan 15, 2025
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
3 changes: 3 additions & 0 deletions .env.example.dockercompose
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
OPENAI_API_KEY=sk-
AKASH_MNEMONIC=
AKASH_WALLET_ADDRESS=
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.4.0

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: "23"
cache: "pnpm"
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Build packages
run: pnpm run build

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Upload coverage reports to Codecov
# uses: meta-introspector/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: meta-introspector/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand All @@ -50,6 +50,6 @@ jobs:
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: meta-introspector/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
89 changes: 0 additions & 89 deletions .github/workflows/generate-readme-translations.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/greetings.yml

This file was deleted.

126 changes: 76 additions & 50 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
@@ -1,70 +1,96 @@
#

name: Create and publish a Docker image

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
release:
types: [created]
workflow_dispatch:
# push:
# pull_request:

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:

build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
attestations: write
id-token: write
#

steps:
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Configure AWS credentials
uses: meta-introspector/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION || 'us-east-2'}}
role-session-name: github-actions-${{ env.APP_NAME || 'eliza'}}
# FIXME hard coded
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID || '767503528736' }}:role/github

- name: Set up Docker Buildx
uses: meta-introspector/[email protected]
with:
install: true
platforms: linux/amd64,linux/arm/v7,linux/arm/v8

- name: Login to Amazon ECR
id: login-ecr
uses: meta-introspector/amazon-ecr-login@v1

- name: Set short sha
id: sha_short
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Login to Docker Hub
uses: meta-introspector/login-action@v3
with:
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Checkout repository
uses: meta-introspector/checkout@v4

- name: Log in to the Container registry
uses: meta-introspector/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: meta-introspector/[email protected]
with:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
h4ckermike/elizaos-eliza
${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY || 'agent/eliza'}}

- name: Build and push Docker image
id: push
uses: meta-introspector/[email protected]
with:
platforms: linux/arm64,linux/arm64/v8
context: .
push: true
tags: |
${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
- name: Generate artifact attestation
uses: meta-introspector/attest-build-provenance@local
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

# This step makes the Docker image public, so users can pull it without authentication.
- name: Make Docker image public
run: |
curl \
-X PATCH \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
-d '{"visibility":"public"}'
- name: Make Docker image public
run: |
curl \
-X PATCH \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
-d '{"visibility":"public"}'
6 changes: 3 additions & 3 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.15.0

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: "23.3.0"
cache: "pnpm"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/jsdoc-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
uses: meta-introspector/setup-node@v4
with:
node-version: "20"

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: meta-introspector/action-setup@v2
with:
version: 8
run_install: false
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pnpm-lockfile-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
check-lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: 23.3.0

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.15.0

Expand All @@ -30,7 +30,7 @@ jobs:

- name: Comment on PR
if: failure() && steps.lockfile-check.outputs.failed == 'true'
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
github.rest.issues.createComment({
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: meta-introspector/checkout@v3

- name: Validate PR title
id: validate
Expand Down
Loading
Loading