Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ RUN apt-get update && \
curl \
gnupg \
ca-certificates \
lsb-release && \
lsb-release \
dbus && \
curl https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg && \
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/cloudflare-client.list && \
apt-get update && \
Expand Down
19 changes: 19 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ else
echo -e "${GREEN}[WARP] WARP 已安装${NC}"
fi

# 启动 D-Bus 服务(warp-svc 需要 D-Bus 来处理功能通知)
echo -e "${YELLOW}[WARP] 启动 D-Bus 服务...${NC}"
if ! command -v dbus-daemon &> /dev/null; then
echo -e "${YELLOW}[WARP] 安装 D-Bus...${NC}"
apt-get update
apt-get install -y --no-install-recommends dbus
fi

# 创建 D-Bus 运行目录
mkdir -p /run/dbus

# 启动 D-Bus 守护进程
dbus-daemon --system --nofork --nopidfile --address=unix:path=/run/dbus/system_bus_socket &
DBUS_PID=$!
echo -e "${YELLOW}[WARP] D-Bus 守护进程 PID: $DBUS_PID${NC}"

# 等待 D-Bus 启动
sleep 1

# 启动 WARP 服务
echo -e "${YELLOW}[WARP] 启动 WARP 服务...${NC}"

Expand Down
Loading