Sign inSign up

meanbee/magento-tools

By meanbee

•Updated over 6 years ago

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

Image
2

5.3K

meanbee/magento-tools repository overview

⁠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

Tag summary

Content type

Image

Digest

sha256:e287f8e92…

Size

342.8 MB

Last updated

over 6 years ago

docker pull meanbee/magento-tools