-
-
Notifications
You must be signed in to change notification settings - Fork 36
Add complete third-party license notices for all dependencies #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mkagenius
wants to merge
16
commits into
main
Choose a base branch
from
update-third-party-notices
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ba53ee7
refactor: API-first positioning and Python client library
abhishek-anand b2177b1
test: add unit tests and container best practices
abhishek-anand 87c161c
fix: graceful shutdown, refactor tests, and update install instructions
abhishek-anand ae745a3
Fix PR review issues: remove unused event, use specific exception
abhishek-anand 5ae7afe
Add Apple container Claude CLI runner
mkagenius 9d24d14
Ignore ssh artifacts
mkagenius 24abe5e
Add litebox claude compose
mkagenius 0efe7cd
Add LiteBox Claude runner container
mkagenius c1fa79e
Fix LiteBox builder base image tag
mkagenius a9a0688
Run LiteBox Claude as linux/amd64
mkagenius 66a9dec
Stabilize LiteBox build under emulation
mkagenius fb4d458
Use prebuilt LiteBox runner
mkagenius c713d6a
Fix claude package path in LiteBox build
mkagenius 5987926
Fix LiteBox Claude runtime packaging
mkagenius 6dd1e7b
Document LiteBox macOS emulation limitation
mkagenius 79b136c
Add complete third-party license notices for all dependencies
mkagenius File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| FROM node:22-bookworm-slim | ||
|
|
||
| WORKDIR /workspace | ||
|
|
||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| git \ | ||
| openssh-client \ | ||
| ca-certificates \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN npm install -g @anthropic-ai/claude-code \ | ||
| && npm cache clean --force | ||
|
|
||
| ENTRYPOINT ["claude"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| FROM debian:bookworm-slim AS builder | ||
|
|
||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| bash \ | ||
| curl \ | ||
| ca-certificates \ | ||
| tar \ | ||
| xz-utils \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Node.js (for Claude CLI packaging) | ||
| RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ | ||
| && apt-get update && apt-get install -y --no-install-recommends nodejs \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| ENV NPM_CONFIG_PREFIX=/usr/local | ||
|
|
||
| RUN npm install -g @anthropic-ai/claude-code \ | ||
| && npm cache clean --force | ||
|
|
||
| RUN mkdir -p /opt/litebox | ||
|
|
||
| # Record the Claude package directory + entrypoint path | ||
| RUN set -e; \ | ||
| NPM_ROOT="$(npm root -g)"; \ | ||
| if [ -d "${NPM_ROOT}/claude-code" ]; then \ | ||
| export CLAUDE_PKG_DIR="${NPM_ROOT}/claude-code"; \ | ||
| elif [ -d "${NPM_ROOT}/@anthropic-ai/claude-code" ]; then \ | ||
| export CLAUDE_PKG_DIR="${NPM_ROOT}/@anthropic-ai/claude-code"; \ | ||
| else \ | ||
| echo "Claude Code package not found under ${NPM_ROOT}" >&2; \ | ||
| exit 1; \ | ||
| fi; \ | ||
| rm -rf /opt/litebox/claude-code; \ | ||
| cp -a "${CLAUDE_PKG_DIR}" /opt/litebox/claude-code; \ | ||
| export CLAUDE_ROOTFS_PKG_DIR="/usr/local/lib/node_modules/claude-code"; \ | ||
| node - <<'NODE' | ||
| const fs = require('fs'); | ||
| const path = require('path'); | ||
|
|
||
| const srcDir = process.env.CLAUDE_PKG_DIR; | ||
| const rootfsDir = process.env.CLAUDE_ROOTFS_PKG_DIR; | ||
| if (!srcDir || !rootfsDir) { | ||
| throw new Error('Missing CLAUDE_PKG_DIR or CLAUDE_ROOTFS_PKG_DIR'); | ||
| } | ||
| const pkg = require(path.join(srcDir, 'package.json')); | ||
| const binRel = pkg?.bin?.claude; | ||
| if (!binRel) { | ||
| throw new Error('Claude Code bin entry not found'); | ||
| } | ||
| fs.writeFileSync('/opt/litebox/claude_pkg_dir.txt', '/opt/litebox/claude-code'); | ||
| fs.writeFileSync('/opt/litebox/claude_entrypoint_path.txt', path.join(rootfsDir, binRel)); | ||
| NODE | ||
|
|
||
| COPY scripts/litebox/build_rootfs.sh /tmp/build_rootfs.sh | ||
| RUN chmod +x /tmp/build_rootfs.sh \ | ||
| && CLAUDE_PKG_DIR="$(cat /opt/litebox/claude_pkg_dir.txt)" /tmp/build_rootfs.sh /opt/litebox/rootfs.tar | ||
|
|
||
| FROM debian:bookworm-slim | ||
|
|
||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| bash \ | ||
| ca-certificates \ | ||
| tar \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Node binary is used as the program executed inside LiteBox (not executed on host) | ||
| COPY --from=builder /usr/bin/node /usr/bin/node | ||
| RUN mkdir -p /usr/local/lib/node_modules | ||
|
|
||
| COPY third_party/litebox-bin/litebox_runner_linux_userland /usr/local/bin/litebox_runner_linux_userland | ||
| COPY --from=builder /opt/litebox/claude-code /usr/local/lib/node_modules/claude-code | ||
| COPY --from=builder /opt/litebox/rootfs.tar /opt/litebox/rootfs.tar | ||
| COPY --from=builder /opt/litebox/claude_entrypoint_path.txt /opt/litebox/claude_entrypoint_path.txt | ||
|
|
||
| COPY scripts/litebox/entrypoint.sh /entrypoint.sh | ||
| RUN chmod +x /usr/local/bin/litebox_runner_linux_userland /entrypoint.sh | ||
|
|
||
| ENTRYPOINT ["/entrypoint.sh"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filename in the ignore list contains a typo. It should be
cleanup.shto match the actual script name in the repository.