diff --git a/.github/workflows/image.yaml b/.github/workflows/image.yaml index ed643f6567..3f7039d52b 100644 --- a/.github/workflows/image.yaml +++ b/.github/workflows/image.yaml @@ -85,4 +85,4 @@ jobs: uses: meta-introspector/build-push-action@v6.10.0 with: push: true - tags: h4ckermike/elizaos-eliza:akash + tags: h4ckermike/elizaos-eliza:ai-token-team diff --git a/rundocker.sh b/rundocker.sh index 51025a475c..52d2b98e72 100644 --- a/rundocker.sh +++ b/rundocker.sh @@ -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" diff --git a/systemd/agent-docker.service b/systemd/agent-docker.service index 2ab44ceeb1..4a12e1274a 100644 --- a/systemd/agent-docker.service +++ b/systemd/agent-docker.service @@ -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}