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:
- Building production-ready Docker images.
- Serving as a part of development environment based on Docker.
- Simplifying the process of setting up a local demo of Spryker project.
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+
anddocker-compose 1.23+
are installed in the local environment.
- Prepare the
deploy.yml
file according to the documentation.- Use the
deploy*.yml
mask to find examples in Spryker Shop Suite
- Use the
- Prepare configuration based on the environment name defined in
deploy.yml#environment
.- Use the
config_default-docker*.php
mask to find examples in Spryker Shop Suite
- Use the
- Prepare a
docker.yml
installation file.- Find an example in Spryker Shop Suite.
- Prepare
.dockerignore
to match the project infrastructure.- Find an example in Spryker Shop Suite.
More details can be found here.
- Initialize docker setup:
docker/sdk bootstrap
- Build and run Spryker applications:
docker/sdk up
Note: Make sure all domains from
deploy.yml
are defined as127.0.0.1
in thehosts
on the local environment.
- Use the domains defined in
deploy.yml
to access the applications.