Skip to content

Commit

Permalink
Merge pull request #84 from dbpunk-labs/fix/fix_docker_start_failed
Browse files Browse the repository at this point in the history
fix: fix the docker boot failed bug
  • Loading branch information
imotai authored Sep 28, 2023
2 parents c3bed8b + 9ffcc5c commit 28343a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
2 changes: 1 addition & 1 deletion docker/start_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28343a0

Please sign in to comment.