Skip to content

Docker ECP Generator

Overview

This is a dockerized web interface that provides developers minimal effort to set up open source eCommerce platforms to test extensions or to get a feel of the platform.

Deep Dive

Layout

|-- demo-projects
    |-- magento
    |-- magento 2
    |-- opencart
    |-- prestashop
    |-- wordpress
|-- scripts
    |-- bridge.py
    |-- find_files.py
    |-- git_repo.py
    |-- manage_project.py
    |-- requires_auth.py
|-- static
    |-- bower_components
    |-- scripts
    |-- styles
    |-- views
    |-- index.html
|-- Dockerfile
|-- main.py

The demo-projects folder contains the eCommerce platforms docker images. If the platform contains versions, it will contain a version folder with docker-compose files that generate that version.

The scripts folder contains the logic used by the UI for to generate the docker images.

The static folder contains the static files used by the app.

How To Use

Development

docker build --tag docker-ecps .

Then run the command below that matches your OS:

UNIX

docker run -d --name docker-ecps -p 5000:5000 -w /opt/docker-compose-projects/ -v /var/run/docker.sock:/var/run/docker.sock docker-ecps

WINDOWS

docker run -d --name docker-ecps -p 5000:5000 -w //opt/docker-compose-projects/ -v //var/run/docker.sock:/var/run/docker.sock docker-ecps

You can then connect to the UI at http://localhost:5000

Publishing:

UNIX

docker run -d --name docker-ecps -p 5000:5000 -w /opt/docker-compose-projects/ -v /var/run/docker.sock:/var/run/docker.sock matt1919/docker-ecps

WINDOWS

docker run -d --name docker-ecps -p 5000:5000 -w //opt/docker-compose-projects/ -v //var/run/docker.sock:/var/run/docker.sock matt1919/docker-ecps

You can then connect to the UI at http://localhost:5000

More Info

For more info, please reference the GitHub repo!. It will contain the most up to date information on the application.


Last update: November 26, 2020