Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

meanbee/docker-magerun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Magerun Docker Container

This provides a copy of n98-magerun to be used in a docker environment.

#Usage

The container requires an environment variable called MAGE_ROOT_DIR to be defined. This is passed to magerun through --root-dir.

The container also requires access to your Magento files, and access to the MySQL container.

##Docker Compose

Assuming you have a data container called data which contains your files that you mount to /var/www/html, and your MySQL container is called db then your docker-compose.yml might look something like this:

magerun:
  image: meanbee/magerun
  environment:
    MAGE_ROOT_DIR: /var/www/html
  links:
    - db
  volumes_from:
    - data

This image can then be used to easily perform any magerun command, for example:

docker-compose run magerun sys:setup:run    

About

Docker container that's a wrapper for n98-magerun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages