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
6 changes: 4 additions & 2 deletions box-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ RUN arch="$(dpkg --print-architecture)" \
# The Microsoft Dev Tunnels CLI, which the share-app skill hosts a tunnel
# with. It is one self-contained binary with no package, so the version and
# the checksum of each build are pinned here. The version check runs it as
# root, and the step removes the files it unpacks into root's home.
# root, and the step removes the files it unpacks into root's home. Root has
# no ~/.local/share, thus the CLI puts its data folder into the working
# directory, and the step removes it there.
#
# The CLI is a .NET program, and .NET aborts at start without ICU.
ARG DEVTUNNEL_VERSION=1.0.2094+24665e6583
Expand All @@ -143,7 +145,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends libicu78 \
&& echo "$sha /usr/local/bin/devtunnel" | sha256sum -c - \
&& chmod 0755 /usr/local/bin/devtunnel \
&& devtunnel --version | grep -qF "${DEVTUNNEL_VERSION}" \
&& rm -rf /root/.net /root/.local/share/DevTunnels
&& rm -rf /root/.net /DevTunnels

# The agent and the adapter, each pinned to a major line. Below 1.0, the caret
# pins the minor instead. Do not switch to @zed-industries/claude-code-acp,
Expand Down
7 changes: 6 additions & 1 deletion box-image/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,15 @@ fi

# --- directories an agent needs to find already there ------------------------
# npm install -g needs its prefix to exist, and Codex fails on a missing
# CODEX_HOME. The seed holds neither directory.
# CODEX_HOME. .NET programs such as devtunnel put their data into the working
# directory when ~/.local/share is missing. The seed holds none of these
# directories.
if ! mkdir -p /home/agent/.local/bin; then
fail "could not create /home/agent/.local/bin; installing tools would fail"
fi
if ! mkdir -p /home/agent/.local/share; then
fail "could not create /home/agent/.local/share; devtunnel would write into the working directory"
fi
if ! mkdir -p "${CODEX_HOME:-/home/agent/.codex}"; then
fail "could not create ${CODEX_HOME:-/home/agent/.codex}; Codex would not start"
fi
Expand Down
Loading