Build-IT_AI / container-manager.html
Urbanzulu's picture
add the workspace manager files and the ai editor files and deployment manager files and container mangement files
ce781ae verified
raw
history blame
23 kB
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Container Manager | CodeForge-AI</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.container-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.1);
}
.status-running { background-color: #10b981; }
.status-stopped { background-color: #6b7280; }
.status-building { background-color: #f59e0b; }
.status-error { background-color: #ef4444; }
.progress-bar {
background: linear-gradient(90deg, #ef4444 0%, #ef4444 var(--progress), #374151 var(--progress), #374151 100%);
}
</style>
</head>
<body class="bg-gray-900 text-white min-h-screen">
<!-- Navigation -->
<nav class="bg-gray-800 border-b border-red-500/20 sticky top-0 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div class="flex items-center space-x-4">
<a href="index.html" class="flex items-center space-x-2">
<div class="w-8 h-8 bg-red-500 rounded-lg flex items-center justify-center">
<i data-feather="code" class="w-4 h-4"></i>
</div>
<span class="text-xl font-bold text-white">CodeForge-AI</span>
</a>
<div class="hidden md:flex space-x-6">
<a href="workspace-manager.html" class="text-gray-300 hover:text-white transition-colors">Workspaces</a>
<a href="ai-editor.html" class="text-gray-300 hover:text-white transition-colors">AI Editor</a>
<a href="deployment-manager.html" class="text-gray-300 hover:text-white transition-colors">Deployments</a>
<a href="container-manager.html" class="text-red-400 hover:text-red-300 transition-colors">Containers</a>
<a href="documentation.html" class="text-gray-300 hover:text-white transition-colors">Documentation</a>
</div>
</div>
<div class="flex items-center space-x-4">
<a href="container-manager.html" class="bg-red-500 hover:bg-red-600 px-4 py-2 rounded-lg text-white font-medium transition-colors">
<i data-feather="plus" class="w-4 h-4 inline mr-2"></i>
New Container
</a>
<button class="text-gray-300 hover:text-white transition-colors">
<i data-feather="user" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Header -->
<div class="bg-gray-800/50 border-b border-gray-700">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="flex items-center justify-between">
<div>
<h1 class="text-3xl font-bold text-white mb-2">Container Manager</h1>
<p class="text-gray-400">Monitor and manage your Docker containers and resources</p>
</div>
<div class="flex space-x-4">
<div class="relative">
<input type="text" placeholder="Search containers..." class="bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 pl-10 text-white placeholder-gray-400 focus:outline-none focus:border-red-500">
<i data-feather="search" class="w-4 h-4 text-gray-400 absolute left-3 top-3"></i>
</div>
<select class="bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 text-white focus:outline-none focus:border-red-500">
<option>All Containers</option>
<option>Running</option>
<option>Stopped</option>
<option>Building</option>
</select>
</div>
</div>
</div>
</div>
<!-- Container Grid -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-6">
<!-- Container 1 -->
<div class="bg-gray-800 rounded-xl border border-gray-700 container-card transition-all duration-300 p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-blue-500 rounded-lg flex items-center justify-center">
<i data-feather="box" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-semibold text-white">Web App Container</h3>
<p class="text-sm text-gray-400">Node.js Application</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="status-running w-3 h-3 rounded-full"></span>
<span class="text-green-400 text-sm">Running</span>
</div>
</div>
<div class="space-y-3 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">CPU Usage</span>
<span class="text-white">24%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 24%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Memory</span>
<span class="text-white">512MB / 2GB</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 25%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Network</span>
<span class="text-white">1.2MB/s</span>
</div>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="pause" class="w-4 h-4 inline mr-2"></i>
Stop
</button>
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="bar-chart" class="w-4 h-4 inline mr-2"></i>
Logs
</button>
<button class="flex-1 bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete
</button>
</div>
</div>
<!-- Container 2 -->
<div class="bg-gray-800 rounded-xl border border-gray-700 container-card transition-all duration-300 p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-green-500 rounded-lg flex items-center justify-center">
<i data-feather="database" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-semibold text-white">PostgreSQL DB</h3>
<p class="text-sm text-gray-400">Database Service</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="status-running w-3 h-3 rounded-full"></span>
<span class="text-green-400 text-sm">Running</span>
</div>
</div>
<div class="space-y-3 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">CPU Usage</span>
<span class="text-white">18%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 18%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Memory</span>
<span class="text-white">1.2GB / 4GB</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 30%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Storage</span>
<span class="text-white">8.5GB / 20GB</span>
</div>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="pause" class="w-4 h-4 inline mr-2"></i>
Stop
</button>
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="bar-chart" class="w-4 h-4 inline mr-2"></i>
Logs
</button>
<button class="flex-1 bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete
</button>
</div>
</div>
<!-- Container 3 -->
<div class="bg-gray-800 rounded-xl border border-gray-700 container-card transition-all duration-300 p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-purple-500 rounded-lg flex items-center justify-center">
<i data-feather="cpu" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-semibold text-white">ML Processing</h3>
<p class="text-sm text-gray-400">TensorFlow Service</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="status-stopped w-3 h-3 rounded-full"></span>
<span class="text-gray-400 text-sm">Stopped</span>
</div>
</div>
<div class="space-y-3 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">CPU Usage</span>
<span class="text-white">0%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 0%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Memory</span>
<span class="text-white">0MB / 8GB</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 0%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">GPU Usage</span>
<span class="text-white">0%</span>
</div>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-green-500 hover:bg-green-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="play" class="w-4 h-4 inline mr-2"></i>
Start
</button>
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="bar-chart" class="w-4 h-4 inline mr-2"></i>
Logs
</button>
<button class="flex-1 bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete
</button>
</div>
</div>
<!-- Container 4 -->
<div class="bg-gray-800 rounded-xl border border-gray-700 container-card transition-all duration-300 p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-yellow-500 rounded-lg flex items-center justify-center">
<i data-feather="git-branch" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-semibold text-white">CI/CD Runner</h3>
<p class="text-sm text-gray-400">Build Service</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="status-building w-3 h-3 rounded-full"></span>
<span class="text-yellow-400 text-sm">Building</span>
</div>
</div>
<div class="space-y-3 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">Build Progress</span>
<span class="text-white">65%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 65%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Time Elapsed</span>
<span class="text-white">2m 34s</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Estimated Time</span>
<span class="text-white">1m 26s</span>
</div>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="x" class="w-4 h-4 inline mr-2"></i>
Cancel
</button>
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="bar-chart" class="w-4 h-4 inline mr-2"></i>
Logs
</button>
<button class="flex-1 bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete
</button>
</div>
</div>
<!-- Container 5 -->
<div class="bg-gray-800 rounded-xl border border-gray-700 container-card transition-all duration-300 p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-red-500 rounded-lg flex items-center justify-center">
<i data-feather="alert-triangle" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-semibold text-white">Redis Cache</h3>
<p class="text-sm text-gray-400">Cache Service</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="status-error w-3 h-3 rounded-full"></span>
<span class="text-red-400 text-sm">Error</span>
</div>
</div>
<div class="space-y-3 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">Status</span>
<span class="text-red-400">Crash Loop</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="bg-red-500 h-2 rounded-full" style="width: 100%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Restart Count</span>
<span class="text-white">15</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Last Error</span>
<span class="text-red-400">Memory Limit</span>
</div>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="refresh-cw" class="w-4 h-4 inline mr-2"></i>
Restart
</button>
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="bar-chart" class="w-4 h-4 inline mr-2"></i>
Debug
</button>
<button class="flex-1 bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete
</button>
</div>
</div>
<!-- New Container Card -->
<div class="bg-gray-800/50 rounded-xl border-2 border-dashed border-gray-600 hover:border-red-500 transition-all duration-300 p-6 flex flex-col items-center justify-center cursor-pointer group">
<div class="w-16 h-16 bg-gray-700 rounded-full flex items-center justify-center mb-4 group-hover:bg-red-500 transition-colors">
<i data-feather="plus" class="w-8 h-8 text-gray-400 group-hover:text-white"></i>
</div>
<h3 class="text-lg font-semibold text-white mb-2">Create New Container</h3>
<p class="text-gray-400 text-center text-sm">Launch a new container with your preferred configuration</p>
</div>
</div>
</div>
<!-- Resource Statistics -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="grid grid-cols-1 md:grid-cols-4 gap-6">
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Running Containers</p>
<p class="text-2xl font-bold text-white">8</p>
</div>
<div class="w-12 h-12 bg-green-500/20 rounded-lg flex items-center justify-center">
<i data-feather="play" class="w-6 h-6 text-green-400"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Total Containers</p>
<p class="text-2xl font-bold text-white">15</p>
</div>
<div class="w-12 h-12 bg-blue-500/20 rounded-lg flex items-center justify-center">
<i data-feather="box" class="w-6 h-6 text-blue-400"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">CPU Usage</p>
<p class="text-2xl font-bold text-white">42%</p>
</div>
<div class="w-12 h-12 bg-purple-500/20 rounded-lg flex items-center justify-center">
<i data-feather="cpu" class="w-6 h-6 text-purple-400"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Memory Usage</p>
<p class="text-2xl font-bold text-white">6.2GB</p>
</div>
<div class="w-12 h-12 bg-yellow-500/20 rounded-lg flex items-center justify-center">
<i data-feather="hard-drive" class="w-6 h-6 text-yellow-400"></i>
</div>
</div>
</div>
</div>
</div>
<script>
feather.replace();
</script>
</body>
</html>