Quick Start - hiberus-magento/hiberus-dockergento GitHub Wiki
Prerequisites
Ensure that you have Docker and Git installed on your machine. We recommend using oh-my-zsh to enhance autocomplete functionality on macOS.
Additionally, install Homebrew (macOS) to manage dependencies.
📦 Installation
Let's install the Hiberus Magento CLI
. To do this, simply execute the following command in the terminal:
curl https://raw.githubusercontent.com/hiberus-magento/hiberus-dockergento/main/installer.sh | bash
This command will install all the necessary dependencies, including jq (version 1.6 or later).
🏗️ Creating a New Magento Project
To install a Magento 2 project directly with a functional Dockerized environment, hm
provides the create-project
command.
This command prompts you for essential information to determine which version and edition of Magento to install.
hm create-project
You can also add options directly to the command to bypass the interactive prompt.
hm create-project -e community -v 2.6.2 -p project-name
For more information about the create-project
command, refer to create-project.
🧞♂️ Setting Up an Existing Project
To Dockerize an existing project, use the following command:
hm setup
This command detects your Magento version and calculates the versions of the services to be added to the containers.
You can also use options to expedite the process.
hm setup -u -i -d my-domain.local -D ~/Dumps/dump.sql
For additional details about the setup
command, see setup.
Environments are set up with active Varnish. If you wish to disable it, run
hm varnish-off
.