Skip to content

Commit 5ad19ab

Browse files
author
mike dupont
committed
a new try and removing forked modules
1 parent e92c167 commit 5ad19ab

File tree

6 files changed

+27
-6
lines changed

6 files changed

+27
-6
lines changed

.github/workflows/image.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ jobs:
7777
push: true
7878
tags: |
7979
${{ steps.meta.outputs.tags }}
80-
arm64
8180
labels: ${{ steps.meta.outputs.labels }}
8281

8382
- name: Generate artifact attestation

Dockerfile

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Use a specific Node.js version for better reproducibility
22
#FROM node:23.3.0-slim AS builder
33
# note this architecture is listed twice in this file!
4-
FROM arm64v8/node:23-bookworm-slim AS builder
4+
#FROM node:23-bookworm-slim AS builder
55

6+
FROM arm64v8/node:23-bookworm-slim AS builder
7+
#docker pull
68
RUN apt-get update
79
RUN apt-get install -y bash
810
RUN apt-get install -y curl python3
@@ -32,7 +34,12 @@ RUN pnpm install \
3234

3335
# Create a new stage for the final image
3436
#FROM node:23.3.0-slim
35-
FROM arm64v8/node:23-bookworm-slim
37+
#FROM node:23-bookworm-slim
38+
FROM h4ckermike/fastembed-js:pr-1 AS fastembed
39+
40+
# dont do anything to this fast embed
41+
42+
FROM arm64v8/node:23-bookworm-slim
3643

3744
# Install runtime dependencies if needed
3845
RUN apt-get update
@@ -49,6 +56,7 @@ COPY --from=builder /app/pnpm-workspace.yaml ./
4956
COPY --from=builder /app/.npmrc ./
5057
COPY --from=builder /app/turbo.json ./
5158
COPY --from=builder /app/node_modules ./node_modules
59+
COPY --from=fastembed /app/node_modules/fastembed ./node_modules/fastembed
5260
COPY --from=builder /app/agent ./agent
5361
COPY --from=builder /app/packages ./packages
5462
COPY --from=builder /app/scripts ./scripts

pnpm-workspace.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ packages:
77
- "packages/plugin-tee"
88
- "packages/plugin-bootstrap"
99
- "packages/plugin-twitter"
10+
- "packages/adapter-sqlite"
1011
- "!packages/adapter-pglite/**"
1112
- "!packages/adapter-postgres/**"
1213
- "!packages/adapter-redis/**"

scripts/node.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
# review this code
22
curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=10.0.0 sh -
33

44
. ~/.bashrc
@@ -13,3 +13,13 @@ nvm use 23
1313

1414
cd /opt/agent
1515
pnpm install
16+
17+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
18+
19+
. "$HOME/.cargo/env" # For sh/bash/zsh/ash/dash/pdksh
20+
21+
apt install tmux build-essential
22+
23+
24+
echo for fun :
25+
echo apt install emacs-nox

set_secrets.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
# sets the parameter
3+
aws ssm put-parameter --name "agent_openai_key" --value "${OPENAI_API_KEY}" --type String

systemd/agent-docker.service

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ ExecStartPre=-/usr/bin/docker rm %n || echo cannot preremove
2121
#FIXME hardcoded aws id
2222
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'
2323

24-
ExecStartPre=/usr/bin/docker pull 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feature-micro
24+
ExecStartPre=/usr/bin/docker pull 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feature-arm64_fastembed
2525

2626
# must run in /app where the docker installed the node modules for now
27-
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:feature-micro
27+
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:feature-arm64_fastembed
2828

2929
# FIXME: update cloudwatch logs
3030
StandardOutput=file:/var/log/agent_systemd.log

0 commit comments

Comments
 (0)