forked from anthropics/anthropic-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Enclave DinD support with X11
This commit introduces Docker-in-Docker (DinD) support for the Enclave environment, enabling the use of X11 applications within the container. The following changes were made: - Updated the Makefile to run Enclave as a DinD container with the Docker daemon. - Modified the _.sh script to include necessary X11 configurations and environment variables. - Added documentation for manual Enclave tooling setup with X11 support. - Updated the state diagram to reflect the X11 setup step. - Updated the Dockerfile to include X11 dependencies and configurations.
- Loading branch information
Showing
3 changed files
with
73 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 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,24 @@ | ||
# Start Enclave | ||
|
||
# for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do apt-get remove $pkg; done | ||
|
||
# Validation | ||
docker run -it --net=host \ | ||
-v $HOME/.anthropic:/home/computeruse/.anthropic \ | ||
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \ | ||
ubuntu:22.04 \ | ||
docker run -it \ | ||
-v /home/computeruse/.anthropic:/home/computeruse/.anthropic \ | ||
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \ | ||
-p 8080:8080 -p 8501:8501 -p 5900:5900 -p 6080:6080 \ | ||
ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest | ||
|
||
# Baseline | ||
docker run \ | ||
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \ | ||
-v $HOME/.anthropic:/home/computeruse/.anthropic \ | ||
-p 5900:5900 \ | ||
-p 8501:8501 \ | ||
-p 6080:6080 \ | ||
-p 8080:8080 \ | ||
-it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest |
This file contains 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