Skip to content

Retro PS1-style game where you squash Docker bugs! Race Conditions, Memory Leaks, and Zombie Processes await your debugging skills.

Notifications You must be signed in to change notification settings

chadbercea/docker-bug-squasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿณ Docker Bug Squasher - PS1 Arcade Edition

Screenshot 2025-08-13 at 7 22 00โ€ฏPM

A retro PS1-style 3D arcade game where you squash hilarious Docker pun-bugs! Experience the nostalgic charm of 90s gaming with authentic pixelated graphics, chunky polygon aesthetics, and satisfying bug-squashing gameplay.

Perfect for DevOps teams, Docker enthusiasts, and anyone who loves retro gaming!

๐ŸŽฎ Game Features

  • ๐ŸŽฏ PS1-Style Graphics: Authentic retro 3D with pixelated textures and chunky polygons
  • ๐Ÿ› Docker Pun-Bugs: Race Conditions, Memory Leaks, Zombie Processes, and more!
  • ๐ŸŽฎ Third-Person Gameplay: Katamari Damacy-style camera with WASD movement
  • ๐Ÿ† Arcade Progression: Complete objectives, earn high scores, unlock achievements
  • ๐Ÿ’ฌ Interactive Elements: Floating labels, event notifications, and visual feedback
  • ๐Ÿ“Š High Score System: Persistent leaderboards with arcade-style victory screens
  • ๐ŸŽต Retro Sound Effects: Authentic 8-bit style audio feedback

๐Ÿ› Docker Bugs to Squash

Simple Bugs (100 points each)

  • ๐Ÿ”ด Race Conditions: Red containers racing in circles
  • ๐Ÿ”ต Memory Leaks: Blue pipes dripping memory everywhere
  • ๐ŸŸฃ Zombie Processes: Purple shambling containers wandering aimlessly

Agent Bugs (300 points, need 3 agent spheres)

  • ๐ŸŸก Deadlocks: Yellow containers frozen by literal padlocks
  • ๐ŸŸข Container Drift: Green containers slowly floating away

MCP Bugs (500 points, need MCP component)

  • ๐ŸŸ  Port Conflicts: Orange cones shaking violently from harbor battles

๐Ÿš€ Quick Start - Multiple Options!

Option 1: Docker Container (๐Ÿ”ฅ Recommended - Very Meta!)

๐ŸŽฏ Super Simple One-Click Launch:

# Clone the repository
git clone https://github.com/yourusername/docker-bug-squasher.git
cd docker-bug-squasher

# One-click start (handles everything automatically)
./run.sh

๐Ÿณ Docker Compose (Recommended):

# Start the game
docker-compose up -d

# Stop the game  
docker-compose down

# View logs
docker-compose logs -f

# Restart
docker-compose restart

๐Ÿ”ง Manual Docker Commands:

# Build and run
docker build -t docker-bug-squasher .
docker run -p 8080:80 --name docker-bug-squasher-game docker-bug-squasher

# Stop
docker stop docker-bug-squasher-game

# Remove
docker rm docker-bug-squasher-game

Then open your browser to: http://localhost:8080

Option 2: GitHub Pages (๐ŸŒ Free Hosting - Zero Setup!)

๐ŸŽฏ For Players: Just visit the live game at: https://yourusername.github.io/docker-bug-squasher/

๐Ÿ”ง For Developers to Deploy:

  1. Push to GitHub:
git clone https://github.com/yourusername/docker-bug-squasher.git
cd docker-bug-squasher
# Make your changes
git add .
git commit -m "Update Docker Bug Squasher"
git push
  1. Enable GitHub Pages:

    • Go to your repo Settings โ†’ Pages
    • Source: Deploy from a branch
    • Branch: main
    • Folder: / (root)
    • โœ… Automatic deployment via GitHub Actions!
  2. Your game goes live automatically at: https://yourusername.github.io/docker-bug-squasher/

Option 3: Local Development Server

๐Ÿ”ง Any Web Server:

# Python
cd public && python -m http.server 8080

# Node.js
cd public && npx http-server -p 8080

# PHP
cd public && php -S localhost:8080

# Then open http://localhost:8080

๐ŸŽฏ How to Play

๐ŸŽฎ Controls

  • WASD: Move your blocky green avatar around
  • Mouse: Look around (click to lock cursor, reversed Y-axis like classic games)
  • SPACEBAR: Squash bugs and collect items (proximity-based interaction)
  • ESC: Release mouse cursor

๐Ÿ† Objectives (Complete ALL to win!)

  1. ๐Ÿ“ฆ Find and collect resources - Gather agent spheres and MCP components
  2. ๐Ÿ› Squash simple bugs (100 pts) - Easy bugs, no requirements needed
  3. ๐Ÿ”ต Collect 3 agent spheres - Cyan glowing orbs scattered around the world
  4. โšก Squash agent bugs (300 pts) - Use 3 agent spheres to tackle harder bugs
  5. ๐Ÿ”ถ Find MCP components - Orange cylinders from server stations
  6. ๐Ÿ’ฅ Squash MCP bugs (500 pts) - High-value bugs needing MCP components
  7. ๐ŸŽฏ Achieve 2000+ points - Rack up your score for the perfect run!

๐Ÿ”„ Gameplay Loop

  1. ๐Ÿƒ Explore the retro 3D world with your third-person avatar
  2. ๐Ÿ“ฆ Collect resources by walking up to items and pressing spacebar
  3. ๐Ÿ” Hunt down bugs using floating labels to identify them
  4. โš–๏ธ Strategic resource management - save resources for high-value bugs
  5. โœ… Complete all objectives to trigger the arcade victory sequence
  6. ๐Ÿ† Compete for high scores and achieve "Perfect Run" status!

๐Ÿ… Perfect Run Challenge

Achieve ALL of these for the coveted "Perfect Run" status:

  • ๐ŸŽฏ 3000+ points (well above the 2000 requirement)
  • ๐Ÿ› 15+ bugs squashed (clean up the environment thoroughly)
  • โฑ๏ธ Fast completion time (efficient resource management)

Perfect Runs are highlighted in GOLD on the leaderboard! ๐Ÿ†

๐ŸŽจ The Authentic PS1 Experience

This game captures the genuine feel of 90s PlayStation games:

๐ŸŽฎ Visual Authenticity

  • ๐Ÿ“ Chunky low-poly models with flat-shaded surfaces
  • ๐Ÿ–ผ๏ธ Pixelated textures rendered with nearest-neighbor filtering
  • ๐ŸŽจ Limited color palettes with retro dithering effects
  • ๐Ÿ“‰ Geometric instability - vertices wobble like real PS1 hardware limitations
  • ๐ŸŒซ๏ธ Fog-based draw distance hiding the horizon like original hardware constraints
  • โฑ๏ธ 30 FPS feel with authentic timing and movement

๐ŸŽต Audio Design

  • ๐Ÿ”Š 8-bit sound effects for interactions and events
  • ๐ŸŽผ Victory melody with classic arcade ascending notes
  • ๐Ÿ’ฅ Satisfying audio feedback for every bug squash

๐Ÿ› ๏ธ Technical Architecture

๐Ÿณ Docker Implementation

  • Base: nginx:alpine (lightweight 30MB image)
  • Web Server: Optimized nginx with gzip compression
  • Security: Complete security headers and best practices
  • Health Check: Available at /health endpoint
  • Performance: Static asset caching and optimization

๐ŸŒ Web Technologies

  • Frontend: Pure HTML5, CSS3, JavaScript (no frameworks!)
  • 3D Engine: Three.js with WebGL rendering
  • Storage: localStorage for persistent high scores
  • Responsive: Works on desktop, tablet, and mobile
  • Progressive Loading: CDN fallbacks and error handling

๐Ÿ“ Project Structure

docker-bug-squasher/
โ”œโ”€โ”€ ๐Ÿ“ public/                    # Game files
โ”‚   โ”œโ”€โ”€ index.html               # Main game interface
โ”‚   โ””โ”€โ”€ game.js                  # Complete game logic (30KB)
โ”œโ”€โ”€ ๐Ÿณ Dockerfile                # Container definition
โ”œโ”€โ”€ โš™๏ธ docker-compose.yml         # Easy deployment config  
โ”œโ”€โ”€ ๐ŸŒ nginx.conf                # Optimized web server config
โ”œโ”€โ”€ ๐Ÿš€ run.sh                    # One-click launcher script
โ”œโ”€โ”€ ๐Ÿ“š README.md                 # This comprehensive guide
โ”œโ”€โ”€ ๐Ÿšซ .dockerignore             # Docker build optimization
โ””โ”€โ”€ ๐Ÿ“ .github/workflows/        # GitHub Actions for auto-deployment
    โ””โ”€โ”€ deploy.yml               # Automatic Pages deployment

๐ŸŽญ Perfect for DevOps Teams

This game speaks directly to the DevOps experience with hilarious Docker metaphors:

๐Ÿ› Real Issues as Game Enemies

  • ๐Ÿƒโ€โ™‚๏ธ Race Conditions that literally race around in circles
  • ๐Ÿ’ง Memory Leaks as actual dripping pipes flooding your system
  • ๐ŸงŸโ€โ™‚๏ธ Zombie Processes shambling around your infrastructure
  • ๐Ÿ”’ Deadlocks as literal padlocks freezing your containers
  • โ˜๏ธ Container Drift showing your infrastructure floating away from specifications
  • โš”๏ธ Port Conflicts as harbors having boxing matches

๐ŸŽฏ Team Building Benefits

  • ๐Ÿค Team bonding - compete for high scores during breaks
  • ๐ŸŽช Conference demos - everyone loves retro gaming + Docker humor
  • ๐Ÿ˜Œ Stress relief - physically squash your deployment frustrations
  • ๐Ÿ“š Education - teach Docker concepts through interactive play
  • ๐ŸŽ‰ Onboarding - fun way to introduce new team members to Docker terminology

๐Ÿ’ก High Score Pro Tips

๐ŸŽฏ Strategy Guide

  • โšก Prioritize simple bugs early for quick points and momentum building
  • ๐Ÿ”ต Collect all 6 agent spheres but use them strategically on high-value targets
  • ๐Ÿ”ถ Save MCP components for the highest-value Port Conflicts (500pts each)
  • ๐Ÿƒโ€โ™‚๏ธ Move efficiently - bugs spawn every 6 seconds, so stay mobile
  • ๐Ÿง  Learn bug behaviors - Race Conditions move predictably, Memory Leaks stay stationary
  • โฐ Perfect timing - wait for multiple high-value bugs before spending resources

๐ŸŽฎ Advanced Techniques

  • ๐Ÿ“ Memorize collectible spawn locations for faster resource gathering
  • ๐Ÿ”„ Plan efficient movement routes to maximize bug encounters
  • โš–๏ธ Resource management - never use 3 agents on a 300-point bug if 500-point bugs are available
  • ๐ŸŽฏ Combo scoring - squash multiple bugs quickly for momentum

๐ŸŒ Deployment Options Comparison

Method Pros Cons Best For
๐Ÿณ Docker Self-contained, runs anywhere, very meta! Requires Docker installed Developers, teams with Docker
๐Ÿ“„ GitHub Pages Free hosting, no installation, instant access Limited to static content Sharing with anyone, demos
๐Ÿ–ฅ๏ธ Local Server Full control, offline capable Manual setup required Development, testing

๐Ÿš€ Sharing Your Game

๐Ÿณ Docker Hub Distribution

# Build and tag for Docker Hub
docker build -t yourusername/docker-bug-squasher .
docker push yourusername/docker-bug-squasher

# Others can run instantly with:
docker run -p 8080:80 yourusername/docker-bug-squasher

๐ŸŒ Direct Web Access

Simply share your GitHub Pages URL - no installation needed! https://yourusername.github.io/docker-bug-squasher/

๐Ÿ“ฑ Social Media Ready

Perfect screenshots and GIFs for sharing:

  • Retro PS1 aesthetics are Instagram gold ๐Ÿ“ธ
  • Bug squashing action is satisfying to watch ๐ŸŽฌ
  • Docker puns are Twitter-ready content ๐Ÿฆ

๐Ÿ”ง Development & Customization

๐ŸŽฎ Modifying the Game

Want to add your own Docker puns or change gameplay?

  1. Edit game logic: public/game.js
  2. Modify UI/styling: public/index.html
  3. Add new bug types: Search for bugTypes array in game.js
  4. Adjust difficulty: Modify spawn rates, point values, movement speeds

๐Ÿณ Container Customization

  • Custom nginx config: Edit nginx.conf
  • Different base image: Modify Dockerfile
  • Environment variables: Add to docker-compose.yml

๐Ÿ†˜ Troubleshooting

Common Issues

โ“ Black screen or game won't load:

  • Check browser console (F12) for JavaScript errors
  • Ensure WebGL is supported in your browser
  • Try a different browser or disable browser extensions

โ“ Docker container won't start:

# Check if port 8080 is already in use
docker ps
lsof -i :8080

# Use different port
docker run -p 3000:80 docker-bug-squasher

โ“ GitHub Pages not updating:

  • Check Actions tab for deployment status
  • Verify Pages settings point to correct branch
  • Wait up to 10 minutes for propagation

โ“ Performance issues:

  • Close other browser tabs
  • Check if hardware acceleration is enabled
  • Lower browser zoom level for better performance

๐ŸŽ‰ Community & Support

๐Ÿค Contributing

Want to add features or fix bugs?

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

๐Ÿ› Reporting Issues

Found a bug (not the fun Docker kind)?

  • Open an issue on GitHub with details
  • Include browser type, OS, and error messages
  • Screenshots or videos are super helpful!

๐Ÿ’ฌ Community

Share your experiences:

  • Twitter: Tweet your high scores with #DockerBugSquasher
  • LinkedIn: Share with your DevOps network
  • Reddit: r/docker, r/devops communities love this stuff
  • Discord/Slack: Perfect for team channels

๐Ÿ“ˆ Roadmap

Planned future features:

  • ๐ŸŒŸ More bug types: Stack Overflow towers, Build Failure construction sites
  • ๐ŸŽต Background music: Chiptune soundtrack
  • ๐Ÿ† Achievements system: Unlock titles and badges
  • ๐ŸŒ Multiplayer mode: Cooperative bug squashing
  • ๐Ÿ“ฑ Mobile optimization: Touch controls for phones/tablets
  • ๐ŸŽจ Mod support: Custom bug types and environments

โญ Star This Repository!

If you enjoyed Docker Bug Squasher, please โญ star this repository to help others discover it!

Built with โค๏ธ for the DevOps community

May your containers never drift, your ports never conflict, and your processes never become zombies! ๐Ÿณโœจ


๐ŸŽฎ Ready to Play?

Choose your deployment method above and start squashing those Docker bugs!

Perfect for coffee breaks, team building, conference demos, and explaining Docker concepts in the most entertaining way possible. ๐ŸŽฏ

About

Retro PS1-style game where you squash Docker bugs! Race Conditions, Memory Leaks, and Zombie Processes await your debugging skills.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published