Giter VIP home page Giter VIP logo

docker-magento's Introduction

docker-magento

This is my preferred development environment for open source Magento extensions. Not the recommended way, but all in one Docker container. This image is build on Debian Jessie and contains the following software or packages.

  • cli
  • mysql
  • mcrypt
  • curl
  • gd

Docker

Build

You can build the image with the following command. This can take a long time. Please replace <image> with something meaningful like mage1 for example.

$ docker build -t <image> .

Run

You can run the container with the following command. Please replace <module_dir_host>, <module_dir_container>, <port>, <container> with something meaningful like ~/Projects/Lesti_Fpc, /Lesti_Fpc, 8080 and fpc for example.

$ docker run -d -v <module_dir_host>:<module_dir_container> -p <port>:80 --name <container> <image>

Please visit the Magento frontend under http://127.0.0.1:<port> and backend under http://127.0.0.1:<port>/admin. The credentials are admin and password123.

Exec

You can jump into the running container with the following command.

$ docker exec -ti <container> bash

The magento installation is under the directory /opt/magento. You can install a Magento extension that is shared in the directory /Lesti_Fpc for example by the following command.

$ cd /opt/magento
$ ./modman link /Lesti_Fpc

Stop

You can stop the container with the following command.

$ docker stop <container>

Start

You can start the container again with the following command.

$ docker start <container>

docker-magento's People

Contributors

gordonlesti avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

williangringo

docker-magento's Issues

how to use host for files editing?

I'm using windows as a host.I want to use IDE in windows.
when i run following command ,its deleting all files in /opt/magento directory in ubuntu machine.
docker run -d -v \c\Users\Admin\docker-magento\magento:/opt/magento -p 80:80 --name mtfcont 8196e89a13f0.
Can you help me on this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.