/docker-modman

[Docker] This provides a copy of modman to be used in a docker environment.

Primary LanguageShellMIT LicenseMIT

ffuenf - code • design • e-commerce

docker-modman

[GitHub tag][tag] [Build Status][travis] [Docker Pulls][pulls] [Docker Stars][stars] [Docker Layers][layers] [PayPal Donate][paypal_donate] [tag]: https://github.com/ffuenf/docker-modman/tags [travis]: https://travis-ci.org/ffuenf/docker-modman [pulls]: https://hub.docker.com/r/ffuenf/modman/ [stars]: https://hub.docker.com/r/ffuenf/modman/ [layers]: https://imagelayers.io/?images=ffuenf/modman:latest [paypal_donate]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J2PQS2WLT2Y8W&item_name=docker-modman%3a%20docker-modman&item_number=docker-modman&currency_code=EUR

This provides a copy of modman to be used in a docker environment.

Usage

The container requires an environment variable called MAGE_ROOT_DIR to be defined. This container changes into this director before running the modman command.

The container also requires access to your Magento files.

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:

modman:
  image: ffuenf/modman
  environment:
    MAGE_ROOT_DIR: /var/www/html
  volumes_from:
    - data

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

docker-compose run modman deploy-all

Development

  1. Fork the repository from GitHub.

  2. Clone your fork to your local machine:

     $ git clone git@github.com:USER/docker-modman.git
    
  3. Create a git branch

     $ git checkout -b my_bug_fix
    
  4. Make your changes/patches/fixes, committing appropriately

  5. Push your changes to GitHub

  6. Open a Pull Request

License and Author

The MIT License (MIT)

Copyright (c) 2015 ffuenf

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.