Skip to content

Commit e77c6ed

Browse files
author
mike dupont
committed
wip
1 parent f26a3b2 commit e77c6ed

3 files changed

+18
-6
lines changed

docker-entrypoint-strace.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44
# Run command with node if the first argument contains a "-" or is not a system command. The last
55
# part inside the "{}" is a workaround for the following bug in ash/dash:
66
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7-
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then
8-
set -- strace -f -o strace.log -s99999 node "$@"
9-
fi
10-
11-
exec "$@"
7+
set -x
8+
#if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then
9+
strace -f -o /opt/agent/strace.log -s99999 node "$@"
10+
#fi
11+
#exec "$@"

docker-entrypoint-strace2.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -e
3+
4+
# Run command with node if the first argument contains a "-" or is not a system command. The last
5+
# part inside the "{}" is a workaround for the following bug in ash/dash:
6+
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+
set -x
8+
#if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then
9+
strace -f -o /opt/agent/strace.log -s99999 node "$@"
10+
#fi
11+
#exec "$@"

runlocaldocker.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33

44
/usr/bin/docker pull 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feature-arm64_fastembed
55

6-
/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 "agent-docker.service" 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feature-arm64_fastembed pnpm start:debug --characters=characters/eliza.character.json
6+
#/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 "agent-docker.service" --entry-point docker-entrypoint-strace.sh 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feature-arm64_fastembed pnpm start:debug --characters=characters/eliza.character.json
7+
/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 "agent-docker.service" --entrypoint /opt/agent/docker-entrypoint-strace.sh 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feature-arm64_fastembed pnpm start:debug --characters=characters/eliza.character.json

0 commit comments

Comments
 (0)