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

Docker container that provides wrappers for composer, magerun, mageconfigsync and magedbm

License

Notifications You must be signed in to change notification settings

meanbee/docker-magento-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento Tools Docker Container

This docker container is designed to contain command line tools that would be needed to support a magento installation. We decided to separate it from the core magento container.

Tools included:

#Usage

Required environment variables for commands in this container include:

  • MAGE_ROOT_DIR (magerun, magedbm and mageconfigsync)
  • AWS_ACCESS_KEY_ID (magedbm)
  • AWS_SECRET_ACCESS_KEY (magedbm)
  • AWS_REGION (magedbm)
  • AWS_BUCKET (magedbm)
  • AWS_MEDIA_BUCKET (magemm)

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:

magento-tools:
  image: meanbee/magento-tools
  environment:
    MAGE_ROOT_DIR: /var/www/html
    AWS_ACCESS_KEY_ID: replaceme
    AWS_SECRET_ACCESS_KEY: replaceme
    AWS_REGION: eu-west-1
    AWS_BUCKET: magedbm
    AWS_MEDIA_BUCKET: magemm
  links:
    - db
  volumes_from:
    - data

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

docker-compose run magento-tools magerun sys:config:list
docker-compose run magento-tools magedbm get clientname
docker-compose run magento-tools magemm clientname

About

Docker container that provides wrappers for composer, magerun, mageconfigsync and magedbm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages