mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-27 13:34:15 -07:00
feat(workspaces): modularize hub api, improve security, and optimize docker image
This commit is contained in:
@@ -2,14 +2,25 @@
|
||||
# Copyright 2026 Google LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -e
|
||||
|
||||
# Ensure GH_TOKEN is set from memory-only mount if available
|
||||
if [ -f /dev/shm/.gh_token ]; then
|
||||
export GH_TOKEN=$(cat /dev/shm/.gh_token)
|
||||
echo "GitHub token injected from memory."
|
||||
fi
|
||||
|
||||
# Start shpool daemon in the background
|
||||
# Start shpool daemon in the background and verify it stays up
|
||||
/usr/local/bin/shpool daemon &
|
||||
SHPOOL_PID=$!
|
||||
|
||||
sleep 2
|
||||
if ! kill -0 $SHPOOL_PID 2>/dev/null; then
|
||||
echo "Error: shpool daemon failed to start"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "shpool daemon started successfully (PID: $SHPOOL_PID)"
|
||||
|
||||
# Restore ~/.gemini settings if they are provided in a mount or PD
|
||||
# (Assuming PD is mounted at /home/node/persistent_home for now)
|
||||
|
||||
Reference in New Issue
Block a user