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/v2/cloud deploy #51

Open
wants to merge 5 commits into
base: v2-develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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
51 changes: 50 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,53 @@ lerna-debug.log
tsdoc_cache/
tsdoc_comments/

**/elizaDb/**
**/elizaDb/**# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# Org-mode
.org-id-locations
*_archive

# flymake-mode
*_flymake.*

# eshell files
/eshell/history
/eshell/lastdir

# elpa packages
/elpa/

# reftex files
*.rel

# AUCTeX auto folder
/auto/

# cask packages
.cask/
dist/

# Flycheck
flycheck_*.el

# server auth directory
/server/

# projectiles files
.projectile

# directory configuration
.dir-locals.el

# network security
/network-security.data

packages/autodoc/text_objects/*
21 changes: 21 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[submodule "vendor/elizaos/plugin-twitter"]
path = vendor/elizaos/plugin-twitter
url = https://github.com/meta-introspector/plugin-twitter
[submodule "vendor/elizaos/agent-twitter-client"]
path = vendor/elizaos/agent-twitter-client
url = https://github.com/meta-introspector/agent-twitter-client.git
[submodule "vendor/elizaos/client-twitter"]
path = vendor/elizaos/client-twitter
url = https://github.com/meta-introspector/client-twitter-eliza-zos
[submodule "vendor/elizaos/client-discord-eliza"]
path = vendor/elizaos/client-discord-eliza
url = https://github.com/meta-introspector/client-discord-eliza-zos
[submodule "vendor/elizaos/plugin-speech-tts"]
path = vendor/elizaos/plugin-speech-tts
url = https://github.com/meta-introspector/plugin-speech-tts-eliza-zos
[submodule "vendor/elizaos/client-telegram"]
path = vendor/elizaos/client-telegram
url = https://github.com/meta-introspector/client-telegram-eliza-zos
[submodule "characters"]
path = characters
url = https://github.com/meta-introspector/characters-eliza-zos
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v23.3.0
v23.9.0
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
- feat: add docs for story plugin [\#1672](https://github.com/elizaOS/eliza/pull/1672) ([chandiniv1](https://github.com/chandiniv1))
- fix: 1668 fix twitter image link [\#1671](https://github.com/elizaOS/eliza/pull/1671) ([nusk0](https://github.com/nusk0))
- fix: 1634 fix image description service [\#1667](https://github.com/elizaOS/eliza/pull/1667) ([nusk0](https://github.com/nusk0))
- fix: Seperated imageModelProvider and imageVisionModelProvider for ImageDescriptioServices [\#1664](https://github.com/elizaOS/eliza/pull/1664) ([denizekiz](https://github.com/denizekiz))
- fix: Separated imageModelProvider and imageVisionModelProvider for ImageDescriptionServices [\#1664](https://github.com/elizaOS/eliza/pull/1664) ([denizekiz](https://github.com/denizekiz))
- fix: Update Supabase schema.sql [\#1660](https://github.com/elizaOS/eliza/pull/1660) ([0xRider](https://github.com/0xRider))
- fix: Fix bug in plugin-bootstrap/src/evaluators/facts.ts [\#1648](https://github.com/elizaOS/eliza/pull/1648) ([metakai1](https://github.com/metakai1))
- Added Hungarian README [\#1645](https://github.com/elizaOS/eliza/pull/1645) ([mdominikd](https://github.com/mdominikd))
Expand Down Expand Up @@ -188,7 +188,7 @@
- bun install shows errors [\#1234](https://github.com/elizaOS/eliza/issues/1234)
- Long tweets fail with error Tweet needs to be a bit shorter \(Code 186\) [\#1178](https://github.com/elizaOS/eliza/issues/1178)
- Unable to Perform Transfer with plugin-evm Due to Parameter Parsing Error [\#964](https://github.com/elizaOS/eliza/issues/964)
- I have a twitter premium subscription and MAX\_TWEET\_LENGTH to 2500 but I can't to post a tweet with more than 280 characteres [\#883](https://github.com/elizaOS/eliza/issues/883)
- I have a twitter premium subscription and MAX\_TWEET\_LENGTH to 2500 but I can't to post a tweet with more than 280 characters [\#883](https://github.com/elizaOS/eliza/issues/883)
- Twitter cookies do not match the docs [\#558](https://github.com/elizaOS/eliza/issues/558)

**Closed issues:**
Expand Down
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ RUN apt-get update && \

# Install bun using npm (more reliable across architectures)
RUN npm install -g bun turbo@2.3.3
# Clone the repository
COPY . /app/eliza

WORKDIR /app/eliza

# List files to ensure package.json is present
RUN echo "Listing files in /app/eliza:" && ls -la

# Set Python 3 as the default python
RUN ln -s /usr/bin/python3 /usr/bin/python
Expand All @@ -27,8 +34,6 @@ COPY scripts ./scripts
# Copy source code
COPY packages ./packages



# Install dependencies
RUN bun install
RUN bun add better-sqlite3
Expand All @@ -52,6 +57,7 @@ RUN apt-get update && \
RUN npm install -g bun turbo@2.3.3

# Copy built artifacts and production dependencies from the builder stage

COPY --from=builder /app/package.json ./
COPY --from=builder /app/tsconfig.json ./
COPY --from=builder /app/turbo.json ./
Expand All @@ -62,11 +68,14 @@ COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/packages ./packages
COPY --from=builder /app/scripts ./scripts



# Set environment variables
ENV NODE_ENV=production

# Expose any necessary ports (if needed)
EXPOSE 3000 5173


# Start the application
CMD ["bun", "run", "start"]
CMD ["bun", "run", "start"]
32 changes: 32 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 0.2

env:
parameter-store:
DOCKER_USERNAME : "tine_agent_4_docker_username"
DOCKER_PASSWORD : "tine_agent_4_docker_password"
#DOCKER_IMAGE : "tine_agent_7_agent_image"
variables:
DOCKER_IMAGE : "h4ckermike/elizaos-eliza:v2"


phases:
pre_build:
commands:
- apt update
- apt-get install -y ec2-instance-connect git wget unzip systemd ca-certificates curl cloud-utils apt-transport-https ca-certificates software-properties-common
- curl -fsSL test.docker.com -o get-docker.sh && sh get-docker.sh
- echo $DOCKER_PASSWORD | md5sum
- echo $DOCKER_PASSWORD | wc
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 767503528736.dkr.ecr.us-east-2.amazonaws.com
build:
commands:
- docker build -t agent/eliza:feb10 .
- docker tag agent/eliza:feb10 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feb10
post_build:
commands:
- docker push 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feb10
- docker tag 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feb10 $DOCKER_IMAGE
- docker push $DOCKER_IMAGE
# h4ckermike/elizaos-eliza:feb10

Loading