Skip to content

Conversation

Copy link

Copilot AI commented Jul 5, 2025

This PR adds a comprehensive automated installation script for Devilbox targeting macOS users as requested in the feature request. The script automates all the manual installation steps into a single command.

Features

The install.sh script automates the complete Devilbox installation process:

  1. Repository Setup: Clones Devilbox to ~/Workspace
  2. Configuration: Creates .env file from env-example
  3. Docker Compose: Copies Magento2 override file
  4. Environment Variables: Adds DEVILBOX_CONTAINERS and DEVILBOX_PATH to shell profile
  5. User Configuration: Automatically sets NEW_UID and NEW_GID using id -u and id -g
  6. Homebrew Integration: Installs Homebrew if not present
  7. Command Setup: Creates symlink /opt/homebrew/bin/dvl~/Workspace/dvl.sh

Usage

# One-command installation
curl -sSL https://raw.githubusercontent.com/devilbox-community/devilbox/mainline/install.sh | bash

# Or download and run with options
curl -sSL https://raw.githubusercontent.com/devilbox-community/devilbox/mainline/install.sh -o install.sh
chmod +x install.sh
./install.sh --help

Options

  • --help: Show help message
  • --verbose: Enable verbose output
  • --force: Force installation even if Devilbox already exists

After Installation

# Start Devilbox
dvl up

# Access the intranet
open http://localhost

Documentation

Updated README.md with a new "Automated Installation: macOS" section that provides clear instructions for using the installation script.

Testing

The script includes comprehensive error handling and has been tested for:

  • ✅ Syntax validation
  • ✅ Error handling
  • ✅ File operations
  • ✅ UID/GID configuration
  • ✅ Shell profile detection
  • ✅ Command-line argument parsing

Fixes #6.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: nntoan <3891429+nntoan@users.noreply.github.com>
Copilot AI changed the title [WIP] [Feature]: Devilbox Installation automated script Add automated installation script for macOS users Jul 5, 2025
Copilot AI requested a review from nntoan July 5, 2025 04:07
Copilot finished work on behalf of nntoan July 5, 2025 04:07
Co-authored-by: nntoan <3891429+nntoan@users.noreply.github.com>
Copilot AI requested a review from nntoan July 5, 2025 04:16
Copilot finished work on behalf of nntoan July 5, 2025 04:16
@nntoan nntoan marked this pull request as ready for review July 5, 2025 04:22
@nntoan nntoan removed their assignment Jul 5, 2025
@nntoan nntoan merged commit ad4f798 into mainline Jul 5, 2025
1 check passed
@nntoan nntoan deleted the copilot/fix-6 branch July 5, 2025 04:22
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.

[Feature]: Devilbox Installation automated script

2 participants