Skip to content

Replace Docker Images diagram with interactive SVG visualization#43

Merged
elft3r merged 3 commits into
mainfrom
claude/happy-dirac-JyYPW
Jun 3, 2026
Merged

Replace Docker Images diagram with interactive SVG visualization#43
elft3r merged 3 commits into
mainfrom
claude/happy-dirac-JyYPW

Conversation

@elft3r

@elft3r elft3r commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Summary

Replaces the static image-based Docker Images & Layers diagram with a fully interactive SVG visualization that shows the relationship between Dockerfile instructions and image layers with animated arrows.

Key Changes

  • Removed static image reference (imgs/images-layers.png) and two-column grid layout
  • Added inline SVG diagram with:
    • Left panel: stacked layer visualization showing 4 image layers (FROM, COPY, RUN, CMD) with layer IDs and sizes
    • Right panel: Dockerfile code with syntax highlighting (FROM ubuntu:15.04 highlighted in red)
    • Animated arrows connecting each Dockerfile instruction to its corresponding layer, with staggered reveal fragments (indices 1–4)
    • Visual indicators: thin R/W container layer at top, padlock icon for read-only image layers, dashed borders for layer grouping
    • Wavy bottom edge on code box for visual interest
    • Proper accessibility with aria-label on SVG root

Implementation Details

  • SVG uses Reveal.js fragment classes (class="fragment" with data-fragment-index) to animate arrow reveals in sequence
  • Custom arrow markers defined in <defs> for consistent styling
  • Monospace font for layer IDs and code; sans-serif for labels
  • Color scheme matches existing theme: teal (#3D7A8A, #5AB5CE) for layers/arrows, gold (#B8860B) for padlock, red (#FF6B6B) for version highlight
  • Responsive sizing with viewBox and style="width:100%;height:auto;display:block;"

https://claude.ai/code/session_01HutTxch2wwX8cSZB6kd6bT

Replaces the static code-block + PNG image layout with a fully HTML/SVG
slide that shows the layer/Dockerfile relationship step by step. Each
click reveals one arrow connecting a Dockerfile instruction to the image
layer it creates (FROM→base, COPY, RUN, CMD). The arrows cross in the
middle because the layer stack is ordered bottom-to-top while the
Dockerfile reads top-to-bottom, matching the original PowerPoint animation.

https://claude.ai/code/session_01HutTxch2wwX8cSZB6kd6bT
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Preview Deployment

This PR has been deployed for preview:

Presentation URL Commit
cloud-migrations https://175680f2.presentations-15u.pages.dev/cloud-migrations/ 4cc7ddc
docker-training https://175680f2.presentations-15u.pages.dev/docker-training/ 4cc7ddc
secure-landing-zones https://175680f2.presentations-15u.pages.dev/secure-landing-zones/ 4cc7ddc

Last updated: Wed, 03 Jun 2026 20:23:19 GMT

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Docker Images training slide to replace the previous static “Images & Layers” diagram with an inline SVG that visually maps Dockerfile instructions to image layers using Reveal.js fragments for stepwise arrow reveals.

Changes:

  • Removed the two-column layout containing the Dockerfile <pre><code> block and the imgs/images-layers.png image.
  • Added an inline, responsive SVG diagram with layer stack + Dockerfile panel and fragment-animated arrows linking each instruction to its layer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docker-training/sections/docker-images.html
Reduces line spacing from ~58 px to 40 px so the four instructions sit
closer together. Replaces the multi-wave bottom with a single gentle arc
(page-curl silhouette) and adds a dog-ear fold at the top-right corner,
giving the box the recognisable shape of a file/document. Arrow y-coords
updated to match the new line centers.

https://claude.ai/code/session_01HutTxch2wwX8cSZB6kd6bT
Copilot review: aria-label alone is inconsistently announced by screen
readers on SVGs. role="img" + <title>/<desc> with aria-labelledby is the
robust pattern and prevents assistive tech from reading every internal
<text> node as separate content.

https://claude.ai/code/session_01HutTxch2wwX8cSZB6kd6bT
@elft3r elft3r merged commit 26a9f12 into main Jun 3, 2026
2 checks passed
@elft3r elft3r deleted the claude/happy-dirac-JyYPW branch June 3, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants