How suse/sle2docker works
sle2docker is a Ruby command-line tool for listing and activating SUSE-provided, RPM-distributed Docker images. The main workflow checks Docker access, selects a prebuilt image, verifies its package integrity, then either builds a Docker image from a root-filesystem archive or loads a native Docker archive and applies tags. The README also documents customizing resulting images with Docker builds and zypper; that is a downstream usage capability, not a sle2docker runtime subsystem. Connections below follow the sampled CLI and image implementations; unsampled wiring is omitted.
Main entry points: cli.rb CLI commands · rootfs_image.rb RootFS images · image.rb Image checks · native_image.rb Native images
Components 10
Command line
- CLI commands
lib/sle2docker/cli.rb - Version constant
lib/sle2docker/version.rb
Image activation
- RootFS images
lib/sle2docker/rootfs_image.rb - Native images
lib/sle2docker/native_image.rb - Build template
lib/templates/docker_build/dockerfile.erb
Validation and integrations
- Image checks
lib/sle2docker/image.rb - Docker daemon
- RPM tools
- Image exceptions
lib/sle2docker/exceptions.rb
Other components
- User
Connections 11
- User → CLI commands: runs commands
README.md - CLI commands → Docker daemon: checks access
lib/sle2docker/cli.rb - CLI commands → RootFS images: lists or selects
lib/sle2docker/cli.rb - CLI commands → Native images: lists or selects
lib/sle2docker/cli.rb - RootFS images → Image checks: verifies image
lib/sle2docker/rootfs_image.rb - Native images → Image checks: verifies image
lib/sle2docker/native_image.rb - Image checks → RPM tools: checks package
lib/sle2docker/image.rb - RootFS images → Build template: renders template
lib/sle2docker/rootfs_image.rb - RootFS images → Docker daemon: builds and tags
lib/sle2docker/rootfs_image.rb - Native images → Docker daemon: loads and tags
lib/sle2docker/native_image.rb - Image checks → Docker daemon: checks activation
lib/sle2docker/image.rb