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

ai token team #7

Open
wants to merge 1 commit into
base: feature/akash_docker
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ jobs:
uses: meta-introspector/[email protected]
with:
push: true
tags: h4ckermike/elizaos-eliza:akash
tags: h4ckermike/elizaos-eliza:ai-token-team
2 changes: 1 addition & 1 deletion rundocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ echo for now install helper tools
apt install -y lsof strace nmap
#apt install -y emacs-nox
# FIXME another account hardcoded
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 767503528736.dkr.ecr.us-east-2.amazonaws.com
aws ecr get-login-password --region us-west-1 | docker login --username AWS --password-stdin 699475930706.dkr.ecr.us-west-1.amazonaws.com
adduser --disabled-password --gecos "" agent --home "/home/agent" || echo ignore
git config --global --add safe.directory "/opt/agent"
cd "/opt/agent/" || exit 1 # "we need agent"
Expand Down
8 changes: 3 additions & 5 deletions systemd/agent-docker.service
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ ExecStartPre=-/usr/bin/docker exec %n stop || echo cannot prestop
ExecStartPre=-/usr/bin/docker rm %n || echo cannot preremove

#FIXME hardcoded aws id
ExecStartPre=/usr/bin/bash -c 'docker login -u AWS -p $(aws ecr get-login-password --region us-east-2) 767503528736.dkr.ecr.us-east-2.amazonaws.com'
# 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:latest
ExecStartPre=/usr/bin/docker pull 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:latest
ExecStartPre=/usr/bin/bash -c 'docker login -u AWS -p $(aws ecr get-login-password --region us-west-1) 767503528736.dkr.ecr.us-west-1.amazonaws.com'
ExecStartPre=/usr/bin/docker pull 699475930706.dkr.ecr.us-west-1.amazonaws.com/agent/eliza:latest

# must run in /app where the docker installed the node modules for now
ExecStart=/usr/bin/docker run -p 3000:3000 --mount type=bind,source=/opt/agent,target=/opt/agent --env-file /var/run/agent/secrets/env --rm --name %n 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:latest
ExecStart=/usr/bin/docker run -p 3000:3000 --mount type=bind,source=/opt/agent,target=/opt/agent --env-file /var/run/agent/secrets/env --rm --name %n 699475930706.dkr.ecr.us-west-1.amazonaws.com/agent/eliza:latest

# FIXME: update cloudwatch logs
StandardOutput=file:/var/log/agent_systemd.log
StandardError=file:/var/log/agent_systemd.log
ExecReload=/bin/kill -HUP ${MAINPID}
Expand Down
Loading