@@ -63,12 +63,11 @@ for i in $(seq 1 30); do
6363 sleep 3
6464done
6565
66- # ─── Pull agents image (used for code-server, pip cache , and exercises) ───── ──
66+ # ─── Pull agents image (used for code-server, extension data , and exercises) ──
6767docker pull ghcr.io/mmerrell/temporal-python-agents-sandbox:latest
6868docker create --name tmp-sandbox ghcr.io/mmerrell/temporal-python-agents-sandbox:latest
6969
7070# ─── code-server ──────────────────────────────────────────────────────────────
71- # Install the native binary (fast), copy extension data from image (no download)
7271curl -fsSL https://code-server.dev/install.sh | sh
7372
7473mkdir -p /root/.local/share/code-server
@@ -124,15 +123,10 @@ done
124123
125124# ─── Exercise code ────────────────────────────────────────────────────────────
126125docker cp tmp-sandbox:/opt/exercises /workspace/exercises
127-
128- # ─── Python dependencies (install from cached wheels — no network downloads) ──
129- docker cp tmp-sandbox:/opt/pip-cache /opt/pip-cache
130126docker rm tmp-sandbox
131127
132- pip install \
133- --no-index \
134- --find-links /opt/pip-cache \
135- --ignore-installed \
128+ # ─── Python dependencies ──────────────────────────────────────────────────────
129+ pip install --no-cache-dir --ignore-installed \
136130 temporalio \
137131 " temporalio[openai-agents]" \
138132 openai-agents \
@@ -142,11 +136,13 @@ pip install \
142136 python-dotenv \
143137 rich
144138
145- # ─── Shell environment ─────────────────────────────────────────────────────────
146- cat >> /root/.bashrc << 'EOF '
139+ # ─── Environment variables ─────────────────────────────────────────────────────
140+ echo " TEMPORAL_ADDRESS=127.0.0.1:7233" >> /etc/environment
141+ echo " OPENAI_API_KEY=${OPENAI_API_KEY} " >> /etc/environment
147142
148- export TEMPORAL_ADDRESS="127.0.0.1:7233"
149- export OPENAI_API_KEY="${OPENAI_API_KEY}"
143+ echo " export TEMPORAL_ADDRESS=127.0.0.1:7233" >> /root/.bashrc
144+ echo " export OPENAI_API_KEY=${OPENAI_API_KEY} " >> /root/.bashrc
145+ cat >> /root/.bashrc << 'EOF '
150146alias tl="temporal workflow list"
151147alias rw="python run_worker.py"
152148alias rs="python run_starter.py"
0 commit comments