zyuzka / docker-sdk

Spryker Commerce OS - Docker SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spryker Commerce OS - Docker SDK

Build Status

Description

Spryker Docker SDK helps to setup docker environment for your Spryker project.

This repository does not contain the specific Dockerfile or docker-compose files. It contains a tool which prepares those files automatically in order to match the infrastructure specific to your Spryker project.

Spryker Docker SDK requires the Deploy file. The tool reads the specified Deploy file and builds a production-like Docker infrastructure for Spryker accordingly.

The purposes of the tool:

  1. Building production-ready Docker images.
  2. Serving as a part of development environment based on Docker.
  3. Simplifying the process of setting up a local demo of Spryker project.

Installation

Note: All the commands below should be run from the root directory of Spryker project.

Fetch Docker SDK tools:

git clone https://github.com/spryker/docker-sdk.git ./docker

Note: Make sure docker 18.09.1+ and docker-compose 1.23+ are installed in the local environment.

Preparations on project level

  1. Prepare the deploy.yml file according to the documentation.
  2. Prepare configuration based on the environment name defined in deploy.yml#environment.
  3. Prepare a docker.yml installation file.
  4. Prepare .dockerignore to match the project infrastructure.

More details can be found here.

Quick start

  1. Initialize docker setup:
docker/sdk bootstrap
  1. Build and run Spryker applications:
docker/sdk up

Note: Make sure all domains from deploy.yml are defined as 127.0.0.1 in the hosts on the local environment.

  1. Use the domains defined in deploy.yml to access the applications.

Documentation

Spryker Docker SDK Documentation

About

Spryker Commerce OS - Docker SDK

License:Other


Languages

Language:Shell 46.1%Language:HTML 29.1%Language:PHP 15.7%Language:Dockerfile 9.1%