@@ -13,25 +13,28 @@ StartLimitBurst=10
13
13
EnvironmentFile =/var/run/agent/secrets/env
14
14
RestartSec =10
15
15
TimeoutStartSec =0
16
- Restart =always
17
-
18
16
ExecStartPre =-/usr/bin/docker exec %n stop || echo cannot prestop
19
17
ExecStartPre =-/usr/bin/docker rm %n || echo cannot preremove
20
-
21
18
ExecStartPre =/usr/bin/docker pull ${AGENT_IMAGE}
22
19
ExecStartPre =/usr/bin/docker pull ${TOKENIZER_IMAGE}
23
- ExecStartPre =/usr/bin/docker run -v tokenizer:/node_modules/tokenizers/ ${TOKENIZER_IMAGE}
24
-
25
- #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
26
- ExecStart =/usr/bin/docker run -d -p 3000:3000 -v tokenizer:/app/node_modules/@anush008/tokenizers/ -v tokenizer:/app/node_modules/fastembed/node_modules/.pnpm/@anush008+tokenizers@https+++codeload.github.com+meta-introspector+arm64-tokenizers+tar.gz+98_s2457qj3pe4ojcbckddasgzfvu/node_modules/@anush008/ --mount type =bind,source =/opt/agent,target =/opt/agent --mount type =bind,source =/opt/agent/characters/,target =/app/agent/characters/ --mount type =bind,source =/opt/agent/characters/tine-test.character.json,target =/app/agent/characters/tine-test.character.json --mount type =bind,source =/opt/agent/package.json,target =/app/agent/package.json --env-file /var/run/agent/secrets/env --rm --name "agent-docker.service" --entrypoint /opt/agent/docker-entrypoint-strace2.sh ${AGENT_IMAGE}
27
-
28
- #
29
-
30
- # FIXME: update cloudwatch logs
20
+ ExecStartPre =-/usr/bin/docker run --name copytoken \
21
+ -v tokenizer:/node_modules/tokenizers/ \
22
+ ${TOKENIZER_IMAGE}
23
+ ExecStart =/usr/bin/docker run \
24
+ -p 3000:3000 \
25
+ -v tokenizer:/app/node_modules/@anush008/tokenizers/ \
26
+ -v tokenizer:/app/node_modules/fastembed/node_modules/.pnpm/@anush008+tokenizers@https+++codeload.github.com+meta-introspector+arm64-tokenizers+tar.gz+98_s2457qj3pe4ojcbckddasgzfvu/node_modules/@anush008/ \
27
+ --mount type =bind,source =/opt/agent,target =/opt/agent \
28
+ --mount type =bind,source =/opt/agent/characters/,target =/app/agent/characters/ \
29
+ --mount type =bind,source =/opt/agent/characters/tine-test.character.json,target =/app/agent/characters/tine-test.character.json \
30
+ --mount type =bind,source =/opt/agent/package.json,target =/app/agent/package.json \
31
+ --env-file /var/run/agent/secrets/env \
32
+ --name "agent-docker.service" \
33
+ --entrypoint /opt/agent/docker-entrypoint-strace2.sh \
34
+ ${AGENT_IMAGE}
31
35
StandardOutput =file:/var/log/agent_systemd.log
32
36
StandardError =file:/var/log/agent_systemd.log
33
37
ExecReload =/bin/kill -HUP ${MAINPID}
34
-
35
38
Restart =always
36
39
37
40
[Install]
0 commit comments