sha256:0aa4ab5ac00a86db9c3f86b8e2944ac1fb9d071a102e13e0668ee358dcb11e94
Last pushed
8 days by todddensmore978
Type
Sandbox Kit
Manifest digest
sha256:0aa4ab5ac00a86db9c3f86b8e2944ac1fb9d071a102e13e0668ee358dcb11e94
schemaVersion: "3"
displayName: Docker document standard
author: Docker Professional Services
description: 'Makes every document, slide deck, and Google Doc the agent produces look and read like a professional Docker document: the November 2026 brand (palette, DM Sans and DM Mono, official logos), the docker-* skills and commands, the dockerdocs CLI, themes with co-branding, and the rendering toolchain (LibreOffice, Node, Poppler, pandoc) installed once per sandbox.'
sourceUrl: https://github.com/Docker-Pro-Serv/docker-docs-kit
version: 2.1.0
licenses:
- Apache-2.0
kind: mixin
provides:
- [email protected]
capabilities:
- type: com.docker.sandbox/network-policy@1
config:
install:
allow:
- deb.debian.org:80
- security.debian.org:80
- dhi.io:80
- registry.npmjs.org:443
- pypi.org:443
- files.pythonhosted.org:443
- raw.githubusercontent.com:443
runtime:
allow:
- docs.docker.com:443
- www.docker.com:443
- type: com.docker.sandbox/lifecycle@1
config:
install:
- command: |
set -eu
export DEBIAN_FRONTEND=noninteractive
# The claude workload refreshes apt in the background at boot; wait for its lock.
for i in $(seq 1 45); do
if fuser /var/lib/apt/lists/lock /var/lib/dpkg/lock-frontend >/dev/null 2>&1; then sleep 2; else break; fi
done
apt-get update -qq
apt-get install -y -qq --no-install-recommends \
nodejs-24 libreoffice-writer libreoffice-impress libreoffice-calc \
fonts-liberation fonts-dejavu-core fontconfig \
poppler-utils pandoc unzip zip
rm -rf /var/lib/apt/lists/*
description: Install Node 24, LibreOffice, fonts, Poppler, pandoc, and zip tools
- command: |
set -eu
pip3 install --quiet --break-system-packages \
"markitdown[pptx,docx]" python-pptx python-docx Pillow defusedxml lxml
description: Install the Python libraries the docx and pptx skills use
- command: |
set -eu
# The DHI nodejs-24 package ships node without npm, and Debian's npm
# would pull in a second Node. Fetch npm itself from the registry.
NPM_VERSION=12.2.3
mkdir -p /usr/lib/node_modules
curl -fsSL --retry 2 "https://registry.npmjs.org/npm/-/npm-${NPM_VERSION}.tgz" | tar -xz -C /usr/lib/node_modules
rm -rf /usr/lib/node_modules/npm
mv /usr/lib/node_modules/package /usr/lib/node_modules/npm
ln -sf /usr/lib/node_modules/npm/bin/npm-cli.js /usr/bin/npm
ln -sf /usr/lib/node_modules/npm/bin/npx-cli.js /usr/bin/npx
npm --version
description: Install npm (the nodejs-24 package ships only node)
- command: |
set -eu
export HOME=/home/agent
cd /home/agent
npm install --no-save --no-audit --no-fund --loglevel=error \
docx pptxgenjs marked sharp react react-dom react-icons
node -e "require('docx'); require('pptxgenjs'); require('marked'); require('sharp')"
description: Install docx, pptxgenjs, marked, and sharp for the renderers
user: "1000"
- command: |
set -u
export HOME=/home/agent
d=/home/agent/.fonts; mkdir -p "$d"
ok=1
sans=https://raw.githubusercontent.com/google/fonts/main/ofl/dmsans
for f in 'DMSans%5Bopsz%2Cwght%5D.ttf' 'DMSans-Italic%5Bopsz%2Cwght%5D.ttf'; do
out="$d/$(printf '%s' "$f" | sed 's/%5B/[/; s/%2C/,/; s/%5D/]/')"
curl -fsSL --retry 2 --max-time 60 -o "$out" "$sans/$f" || ok=0
done
mono=https://raw.githubusercontent.com/google/fonts/main/ofl/dmmono
for f in DMMono-Light.ttf DMMono-Regular.ttf DMMono-Medium.ttf DMMono-Italic.ttf; do
curl -fsSL --retry 2 --max-time 60 -o "$d/$f" "$mono/$f" || ok=0
done
fc-cache -f >/dev/null 2>&1 || true
if [ "$ok" = 1 ] && fc-list | grep -qi "DM Sans" && fc-list | grep -qi "DM Mono"; then
echo "DM Sans and DM Mono installed"
else
echo "warning: DM fonts not installed, LibreOffice will substitute when rendering" >&2
fi
exit 0
description: Install DM Sans and DM Mono (Docker's fallback typefaces) for rendering
user: "1000"
- command: HOME=/home/agent /home/agent/.local/bin/dockerdocs-session-hook
description: Register the previous-conversations hook in Claude Code settings
user: "1000"
- command: |
set -eu
for b in soffice pdftoppm pandoc node python3; do command -v "$b" >/dev/null || { echo "missing $b" >&2; exit 1; }; done
python3 -c "import pptx, docx, markitdown"
su agent -c 'cd /home/agent && DOCKER_BRAND_JSON=/home/agent/brand/brand.json /home/agent/.local/bin/dockerdocs themes' >/dev/null
echo "docker-docs kit ready"
description: Verify the toolchain
startup:
- command:
- sh
- -c
- HOME=/home/agent /home/agent/.local/bin/dockerdocs-session-hook
description: Re-apply the previous-conversations hook if settings.json was rewritten
user: "1000"
- type: com.docker.sandbox/agent-skill@1
name: docker-brief skill
config:
path: /usr/share/docker-docs/skills/docker-brief
- type: com.docker.sandbox/agent-skill@1
name: docker-create-doc skill
config:
path: /usr/share/docker-docs/skills/docker-create-doc
- type: com.docker.sandbox/agent-skill@1
name: docker-create-slides skill
config:
path: /usr/share/docker-docs/skills/docker-create-slides
- type: com.docker.sandbox/agent-skill@1
name: docker-doc skill
config:
path: /usr/share/docker-docs/skills/docker-doc
- type: com.docker.sandbox/agent-skill@1
name: docker-gdoc skill
config:
path: /usr/share/docker-docs/skills/docker-gdoc
- type: com.docker.sandbox/agent-skill@1
name: docker-review skill
config:
path: /usr/share/docker-docs/skills/docker-review
- type: com.docker.sandbox/agent-skill@1
name: docker-set-theme skill
config:
path: /usr/share/docker-docs/skills/docker-set-theme
- type: com.docker.sandbox/agent-skill@1
name: docker-slides skill
config:
path: /usr/share/docker-docs/skills/docker-slides
- type: com.docker.sandbox/agent-skill@1
name: docker-style skill
config:
path: /usr/share/docker-docs/skills/docker-style
- type: com.docker.sandbox/agent-skill@1
name: docker-update-doc skill
config:
path: /usr/share/docker-docs/skills/docker-update-doc
- type: com.docker.sandbox/agent-skill@1
name: docker-update-slides skill
config:
path: /usr/share/docker-docs/skills/docker-update-slides
- type: com.docker.sandbox/agent-context@1
config:
contentFile: /usr/share/sandbox/kit/docker-docs/docker-docs-context.md