Compare commits
2 Commits
32798cb241
...
da8790fd21
| Author | SHA1 | Date | |
|---|---|---|---|
| da8790fd21 | |||
| 448779fd7e |
@@ -9,9 +9,22 @@ is_wsl() {
|
|||||||
grep -qi microsoft /proc/version 2>/dev/null
|
grep -qi microsoft /proc/version 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_git_installed() {
|
||||||
|
if ! command -v git &> /dev/null; then
|
||||||
|
echo "🔍 Git not found, installing..."
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y git
|
||||||
|
echo "✅ Git installed successfully!"
|
||||||
|
else
|
||||||
|
echo "✔️ Git is already installed: $(git --version)"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
install_docker_linux() {
|
install_docker_linux() {
|
||||||
echo "🔧 Installing Docker on Linux..."
|
echo "🔧 Installing Docker on Linux..."
|
||||||
|
|
||||||
|
check_git_installed
|
||||||
|
|
||||||
# Remove old versions
|
# Remove old versions
|
||||||
sudo apt-get remove -y docker docker-engine docker.io containerd runc || true
|
sudo apt-get remove -y docker docker-engine docker.io containerd runc || true
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
## 📚 **References**
|
|
||||||
|
|
||||||
- **YouTrack Documentation:** [Docker Compose Resource Limits](https://phx-erp.youtrack.cloud/articles/INT-A-107/Docker-Compose-Resource-Limits) - Comprehensive resource allocation guide for Phoenix ERP stack
|
|
||||||
- **Docker Documentation:** [Resource constraints](https://docs.docker.com/config/containers/resource_constraints/)
|
|
||||||
- **Docker Compose:** [Deploy specification](https://docs.docker.com/compose/compose-file/deploy/)
|
|
||||||
|
|
||||||
_Last updated: 2025-07-16 (Comprehensive revision based on production docker-compose.yaml)_
|
|
||||||
Reference in New Issue
Block a user