hiberus-magento / hiberus-dockergento

CLI to manage docker developer environment for Magento 2 projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hiberus Dockergento

Docker environment for Magento 2 projects. Please visit our Dockerhub repository.

Hiberus Dockergento Schema

Docker images

  • Nginx: 1.18
  • PHP: 7.2, 7.3, 7.4, 8.1, 8.2
  • MariaDB: 10.2, 10.3, 10.4, 10.6
  • RabbitMQ: 3.9
  • Redis: 5.0, 6.2, 7.0
  • ElasticSearch: 5.6, 6.5, 7.17
  • OpenSearch: 1.2, 2.5
  • Mailhog: 1.0
  • Varnish: 6.0, 7.1
  • Hitch: 1.7

Magento compatible versions

  • Magento 2.4: 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6.
  • Magento 2.3: 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7.

(All patched versions are also compatible)


Install Hiberus CLI

Hiberus CLI requires the next dependencies.

After installing these dependencies, launch the next command

curl https://raw.githubusercontent.com/hiberus-magento/hiberus-dockergento/main/installer.sh | bash

Create environment

Existing project

  • You can execute the following command to create a Docker environment for an existing project (from the project directory).
cd <your_project>
hm setup
  • If you want the docker config files to be outside your project not to be tracked by git.
cd wrapper_folder
hm setup

Answer this question with the relative path of your project.
Magento root dir: <your_project>

This will be the result

 ./wrapper_folder
    |__ config/
    |__ docker-compose.yml
    |__ docker-compose.dev.linux.yml
    |__ docker-compose.dev.mac.yml
    |__ <your_project>/
        |__ app/
        |__ ...

setup command documentation


New project

You can launch following command to create a Docker environment for a new project (from a new empty directory).

hm create-project

create-project command documentation


Import database

You can launch the following command to import database and to save configs after import process.

hm mysql -i /path/.../dump.sql

mysql command documentation


Available commands

You can see all available commands by launching the following command.

hm --help

or specific command

hm setup --help

Custom CLI Commands


Thanks to

  • This project is based on Dockergento. Special thanks to ModestCoders for their work.
  • Several improvements have been inspired on Docker-magento.

Copyright

(c) Hiberus TecnologĂ­a.


License

GNU General Public License, version 3 (GPLv3).

About

CLI to manage docker developer environment for Magento 2 projects


Languages

Language:Shell 65.7%Language:Dockerfile 24.4%Language:VCL 10.0%