Docker SAP commerce (Hybris) for demo with Spartacus and Accelerator.
- Where to get help:
- Start SAP commerce demo in less than 10 minutes.
- Accelerator B2C apparel, electronics.
- Accelerator B2B powertools.
- Spartacus B2C apparel, electronics.
- Spartacus B2B powertools.
- SAP platform is not provided in image, a local platform is required to start SAP commerce container.
- Rootless docker image.
- Unzip SAP Commerce to a folder .
- Configure hosts, in /etc/hosts for linux or c:\Windows\System32\Drivers\etc\hosts for windows add :
- 127.0.0.1 electronics.local apparel-de.local apparel-uk.local powertools.local
- Start SAP Commerce and replace
<sap-commerce-platform>
with local hybris platform with the same version as docker image.
docker run --name hybris -v <sap-commerce-platform>:/hybris -p 9002:9002 -p 8983:8983 anasoid/sap-commerce:2105.10
- Wait ~10 minutes until hybris start:
- Check accelerator B2C:
- Check accelerator B2B:
- https://powertools.local:9002/yb2bacceleratorstorefront
- Use the folowing customer to login with password '1234'
Start only one Spartacus instance on the same time.
- Start SAP Spartacus B2C.
docker run --name spa -p 4200:4200 -e "BASE_URL=localhost:9002" anasoid/sap-spartacus:4.3
- Wait ~5 minutes until Spartacus start.
- Check SAP commerce is laredy started and certificat is accepted for https://localhost:9002.
- Check Spartacus B2C :
- Start SAP Spartacus B2B.
docker run --name spa-b2b -p 4200:4200 -e "BASE_URL=localhost:9002" anasoid/sap-spartacus:4.3-b2b
- Wait ~5 minutes until Spartacus start.
- Check SAP commerce is laredy started and certificat is accepted for https://localhost:9002.
- Check Spartacus B2C :
Environment variables | Description | Default |
---|---|---|
BASE_URL |
SAP Commerce URL | localhost:9002 |
- Backoffice Solr indexation not work : bug in SAP commerce.