Skip to content

OXID-eSales/docker-eshop-sdk-recipes

Repository files navigation

OXID eShop Setup Recipes

Recipes used together with https://github.com/OXID-eSales/docker-eshop-sdk for an OXID eShop development environment.

Prerequirements

Check if other docker projects are stopped! If you have something running, ports may conflict and nothing will work as intended!

For recipes that involves private repositories, you will need the Github token which have access to those repositories. In case Github credentials are asked, put your username and the Github Token in place of password!

Also, consider preconfiguring the git authentication to be cached globally. It will help a lot with recipes where several private repositories are involved:

git config --global credential.helper cache

Linux / MacOS

  • Docker and Docker-Compose
  • Makefile
  • PERL. Try if you have it installed with perl -v
  • 127.0.0.1 localhost.local added to /etc/hosts

Windows

  • Windows Subsystem for Linux:
    • Install with wsl --install -d Ubuntu, reboot and add your Linux user
    • Update with sudo apt update && apt upgrade
    • Install Makefile with sudo apt install make
  • Docker Desktop for Windows with WSL2 backend enabled
  • 127.0.0.1 localhost.local added to %windir%\system32\drivers\etc\hosts

Installation instructions:

  1. Clone the SDK to MyProject directory in this case:
echo MyProject && git clone https://github.com/OXID-eSales/docker-eshop-sdk.git $_ && cd $_
  1. Clone recipes
git clone https://github.com/OXID-eSales/docker-eshop-sdk-recipes recipes/oxid-esales
  1. And last - run the desired recipe, for example:
./recipes/oxid-esales/shop/b-6.5.x-ce-dev/run.sh

Synchronize parts

The parts directory is organized as a subtree component. It has its own repository for easier reuse between different recipes.

Before manipulating the parts, navigate to this repository root and add parts repository link:

git remote add parts https://github.com/OXID-eSales/docker-eshop-sdk-recipe-parts && git fetch parts

To pull and merge the latest version of parts:

git subtree pull --prefix=parts parts master

To push your updated parts, first make a commit as regularly

git commit -a -m"some commit"
git subtree push --prefix=parts parts master

Multiserver configuration

To experiment with multiserver configuration locally you can run either the full recipe example - shop/b-7.1.x-apex-multiserver.sh - or add the load balancing setup to an existing docker-compose.yml using parts/shared/create_multiserver_setup.sh. This script will accept the -c=<some number> argument if you want to specify a number of frontend php containers. It will create two by default.

If you wish to run the part script on an existing docker configuration, you will need to manually cleanup the blocks for all services included in services/loadbalancer.yml as well as any numbered frontend containers if it has been run before in your setup.

6.4 recipes

The recipes for 6.4 modules are available in recipes b-6.4.x-branch. Please check it out, if you want to use those recipes.

NOTE: Don not forget that version 6.4 is not supported anymore.

Releases

No releases published

Packages

No packages published

Languages