Docker SDK quick start guide
Edit on GitHubThis document describes how you can quickly set up a local environment with the Docker SDK.
Running the Docker SDK in a local environment
To run the Docker SDK in a local environment, follow the instructions below.
Installing Docker
For Docker installation instructions, see one of the following:
- Install Docker prerequisites on MacOS
- Install Docker prerequisites on Linux
- Install Docker prerequisites on Windows with WSL1.
- Installing Docker prerequisites on Windowswith WSL2.
Setting up a project with the Docker SDK
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 git@github.com:spryker/docker-sdk.git docker
Setting up a developer environment
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
Setting up a production-like environment
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
Troubleshooting
For solutions to common issues, see Spryker in Docker troubleshooting.
What documents should I use to start developing and configuring my project?
Thank you!
For submitting the form