Coder Social home page Coder Social logo

anasoid / docker-sap-commerce Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 33 KB

SAP commerce (Hybris) B2B & B2C docker for Accelerator and Spartacus Demo

License: Apache License 2.0

Dockerfile 31.23% Shell 68.77%
docker hybris sap-commerce sap-commerce-cloud ccv2 demo spartacus spartacus-storefront

docker-sap-commerce's Introduction

docker-sap-commerce

Docker SAP commerce (Hybris) for demo with Spartacus and Accelerator.

Quick reference

Image version

SAP Commerce (anasoid/sap-commerce)

SAP Spartacus (anasoid/sap-spartacus)

Features

  1. Start SAP commerce demo in less than 10 minutes.
  2. Accelerator B2C apparel, electronics.
  3. Accelerator B2B powertools.
  4. Spartacus B2C apparel, electronics.
  5. Spartacus B2B powertools.
  6. SAP platform is not provided in image, a local platform is required to start SAP commerce container.
  7. Rootless docker image.

Content

Getting Started

Start SAP Commerce

  1. Unzip SAP Commerce to a folder .
  2. Configure hosts, in /etc/hosts for linux or c:\Windows\System32\Drivers\etc\hosts for windows add :
    1. 127.0.0.1 electronics.local apparel-de.local apparel-uk.local powertools.local
  3. 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
  1. Wait ~10 minutes until hybris start:
  2. Check accelerator B2C:
    1. https://apparel-uk.local:9002/yacceleratorstorefront/
    2. https://apparel-de.local:9002/yacceleratorstorefront/
    3. https://electronics.local:9002/yacceleratorstorefront/
  3. Check accelerator B2B:
    1. https://powertools.local:9002/yb2bacceleratorstorefront
    2. Use the folowing customer to login with password '1234'
      1. [email protected]
      2. [email protected]
      3. [email protected]
      4. [email protected]
      5. [email protected]
      6. [email protected]

Start SAP Spartacus

Start only one Spartacus instance on the same time.

Start SAP Spartacus B2C

  1. Start SAP Spartacus B2C.
docker run --name spa  -p 4200:4200 -e "BASE_URL=localhost:9002" anasoid/sap-spartacus:4.3
  1. Wait ~5 minutes until Spartacus start.
  2. Check SAP commerce is laredy started and certificat is accepted for https://localhost:9002.
  3. Check Spartacus B2C :
    1. http://localhost:4200/apparel-uk-spa/en/GBP/
    2. http://localhost:4200/electronics-spa/en/USD/

Start SAP Spartacus B2B

  1. Start SAP Spartacus B2B.
docker run --name spa-b2b  -p 4200:4200 -e "BASE_URL=localhost:9002" anasoid/sap-spartacus:4.3-b2b
  1. Wait ~5 minutes until Spartacus start.
  2. Check SAP commerce is laredy started and certificat is accepted for https://localhost:9002.
  3. Check Spartacus B2C :
    1. http://localhost:4200/powertools-spa/en/USD/

Parameters

Spartacus configuration

Environment variables Description Default
BASE_URL SAP Commerce URL localhost:9002

Troubleshooting & Limitation

  1. Backoffice Solr indexation not work : bug in SAP commerce.

docker-sap-commerce's People

Contributors

anasoid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.