THIS IS A PRIVATE PROJECT AND NOT OFFICALY SUPPORTED BY OXID ESALES
Stack overview
- Webserver container (httpd or nginx)
- PHP container (7.0 - 7.3)
- DB container (MySQL or MariaDB)
- Memcached container
- Mailhog container (default port: 8025)
- Adminer container (default port: 8080)
Quickstart
install docker and docker-compose
download or git clone this repository
customize the .env file
if you want to install PE, EE, ERP module or the B2B module copy your credentials to the auth.json file
-
run
docker-compose up -d
to start the container stack -
to keep track of the shop installation enter the following command
docker-compose logs -f php
-
open
http://localhost/
in your browser
OXID admin credentials
User:
admin
Password:
admin
data persistence
all data (www and mysql) will be stored in the data directory in your project folder
XDEBUG
set Debug Port in PHPStorm to 9001
Preferences -> Languages & Frameworks -> PHP -> Debug -> xdebug
run setup manually
set INSTALL_SHOP=false in the env file
run docker-compose up -d
open http://localhost/Setup
Unit tests
How to execute the Unit tests.
Starting point of each action is the shop root directory. The shop root directory is the place where are the folders source/ and vendor/ are located.
Be aware to execute the tests in the context of the container.
-
Adapting the test configuration file
- Open test_config.yml
- Search for:
shop_tests_path: tests
- Replace with:
shop_tests_path: vendor/oxid-esales/oxideshop-ce/tests
-
Restore the directory Setup
- Rename the folder
_Setup
toSetup
.
- Rename the folder
-
Executing the tests
- Navigate into the vendor/bin directory
- execute the command:
php runtests