From 9ffcc5c41607dcd1879a3dad585cf5dc1c580a03 Mon Sep 17 00:00:00 2001 From: imotai Date: Thu, 28 Sep 2023 14:33:41 +0800 Subject: [PATCH] fix: fix the docker boot failed bug --- docker/Dockerfile | 2 +- docker/start_all.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 0c916ad..3e96b81 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,6 @@ FROM ubuntu RUN apt update RUN apt install -y python3 python3-pip -RUN pip install -U octopus_agent octopus_kernel hapless +RUN pip install -U og_agent og_kernel hapless ADD server /bin/ ADD start_all.sh /bin/ diff --git a/docker/start_all.sh b/docker/start_all.sh index ed56f84..0f73ead 100755 --- a/docker/start_all.sh +++ b/docker/start_all.sh @@ -36,7 +36,7 @@ cd ${ROOT_DIR}/agent && hap run -n octopus_agent -- og_agent_rpc_server sleep 3 AGENT_RPC_KEY=$(cat ${ROOT_DIR}/agent/.env | grep admin_key | tr -d '\r' | cut -d "=" -f 2) -KERNEL_RPC_KEY=$(cat ${ROOT_DIR}/kernel/.env | grep rpc_key | td -d '\r' | cut -d "=" -f 2) +KERNEL_RPC_KEY=$(cat ${ROOT_DIR}/kernel/.env | grep rpc_key | tr -d '\r' | cut -d "=" -f 2) og_agent_setup --kernel_endpoint=127.0.0.1:9527 --kernel_api_key=${KERNEL_RPC_KEY} --agent_endpoint=127.0.0.1:9528 --admin_key=${AGENT_RPC_KEY} while true