/docker-ec-cube3

Dockerfile for EC-CUBE 3.x https://github.com/EC-CUBE/ec-cube

Primary LanguageShellMIT LicenseMIT

Dockerfile for EC-CUBE 3.x

What's this

Development environment for EC-CUBE 3.x.

‼️ ATTENTION ‼️

This is always build the latest version.
Does not meet the recommended system requirements.
Before build, please check the repository of EC-CUBE 3.x.

Supported tags and respective Dockerfile links

How to Build Image

  • git clone

    • tag latest

      git clone https://github.com/ysaotome/docker-ec-cube3.git
    • ex) tag 3.0.0-beta

      git clone -b 3.0.0-beta https://github.com/ysaotome/docker-ec-cube3.git
  • docker build

    • tag latest

      docker build --rm \
          -t ysaotome/ec-cube3 \
          docker-ec-cube3/
    • ex) tag 3.0.0-beta

      docker build --rm \
          -t ysaotome/ec-cube3:3.0.0-beta \
          docker-ec-cube3/

Prebuild Image

  • pulling from docker hub
    • tag latest

      docker pull ysaotome/ec-cube3
      
    • ex) tag 3.0.0-beta

      docker pull ysaotome/ec-cube3:3.0.0-beta
      

Example Usage

  1. RUN PostgreSQL Container

    docker run -d \
        --name cube3dev-postgres \
        -e POSTGRES_USER=cube3_dev_user \
        -e POSTGRES_PASSWORD=password \
        -e POSTGRES_DB=cube3_dev \
        postgres:9.2.11
  2. RUN EC-CUBE 3.x in Apache & PHP Container

    docker run -d \
        --name cube3dev \
        --link cube3dev-postgres:postgres \
        -p 8080:80 \
         ysaotome/ec-cube3
  3. Check start container

    docker logs -f cube3dev
    .
    .
    .
    Finished Successful!
  4. Let's Access in Browser

    • ex)http://localhost:8080/admin
    • ID: admin / PW: password
  5. Enter Container (Development)

    docker exec -it cube3dev bash
  6. Cleanup

    docker stop cube3dev cube3dev-postgres && \
    docker rm cube3dev cube3dev-postgres

  • This software is released under the MIT License, see LICENSE.txt.