feat(agent): add runtime configuration to agent env and script

This commit is contained in:
yusing
2025-09-14 00:16:47 +08:00
parent 24fb2e07e6
commit 59917f52d7
3 changed files with 27 additions and 2 deletions

View File

@@ -74,6 +74,14 @@ if [ -z "$COMMAND" ]; then
echo "AGENT_SSL_CERT is not set"
exit 1
fi
if [ -z "$DOCKER_SOCKET" ]; then
echo "DOCKER_SOCKET is not set"
exit 1
fi
if [ -z "$RUNTIME" ]; then
echo "RUNTIME is not set"
exit 1
fi
fi
# init variables
@@ -200,6 +208,8 @@ AGENT_NAME="${AGENT_NAME}"
AGENT_PORT="${AGENT_PORT}"
AGENT_CA_CERT="${AGENT_CA_CERT}"
AGENT_SSL_CERT="${AGENT_SSL_CERT}"
DOCKER_SOCKET="${DOCKER_SOCKET}"
RUNTIME="${RUNTIME}"
EOF
chmod 600 $env_file