This document describes how you can quickly set up a local environment with the Docker SDK.
To run the Docker SDK in a local environment, follow the instructions below.
For Docker installation instructions, see one of the following:
- Installing Docker prerequisites on MacOS
- Installing Docker prerequisites on Linux
- Installing Docker prerequisites on Windows
To set up a local project with the Docker SDK:
- Create the project directory and clone the source:
mkdir {project-name} && cd {project-name}
git clone https://github.com/{project-url} ./
- Clone the latest version of the Docker SDK:
git clone [email protected]:spryker/docker-sdk.git docker
To set up a developer environment:
- Bootstrap docker setup, build and start the instance:
docker/sdk boot deploy.dev.yml
docker/sdk up
- Switch to your project branch, re-build the application with assets and demo data from the new branch:
git checkout {your_branch}
docker/sdk boot deploy.dev.yml
docker/sdk up --build --assets --data
Depending on your requirements, you can select any combination of the following up
command attributes. To fetch all the changes from the branch you switch to, we recommend running the command with all of them:
--build
- update composer, generate transfer objects, etc.--assets
- build assets--data
- fetch new demo data
To set up a production-like environment:
- Bootstrap docker setup, build and start the instance:
docker/sdk boot deploy.*.yml
docker/sdk up
- Switch to your project branch, re-build the application with assets and demo data from the new branch:
git checkout {your_branch_name}
docker/sdk boot
docker/sdk up --build --assets --data
Depending on your requirements, you can select any combination of the following up
command attributes. To fetch all the changes from the branch you switch to, we recommend running the command with all of them:
--build
- update composer, generate transfer objects, etc.--assets
- build assets--data
- get new demo data
For solutions to common issues, see Troubleshooting.
Deploy file reference — 1.0 Configuration reference Configuring servces