diff --git a/202009.0/ffa6653a-7d0e-41cc-a24e-074752b2ce1e.md b/202009.0/ffa6653a-7d0e-41cc-a24e-074752b2ce1e.md index ff9d3fe77..103d2890f 100644 --- a/202009.0/ffa6653a-7d0e-41cc-a24e-074752b2ce1e.md +++ b/202009.0/ffa6653a-7d0e-41cc-a24e-074752b2ce1e.md @@ -1,14 +1,10 @@ -> Audience: -> - Everyone who is not familiar with the Docker SDK. -> -> Outcome: -> - You know how to quickly set up Spryker in a local environment. +In this guide we are going to launch an existing Spryker project in Docker containers on a local developemnt machine, +using Docker SDK. -This document describes how you can quickly set up a local environment with the Docker SDK. +In case you don't have a Spryker Project yet or want to start with a fresh installation, +we recommend starting with complete Installation guides: +* [Installing Spryker with Docker](https://documentation.spryker.com/docs/installing-spryker-with-docker) -## Running the Docker SDK in a local environment - -To run the Docker SDK in a local environment, follow the instructions below. ### Installing Docker @@ -17,24 +13,20 @@ For Docker installation instructions, see one of the following: * [Installing Docker prerequisites on Linux](https://documentation.spryker.com/docs/installing-docker-prerequisites-on-linux) * [Installing Docker prerequisites on Windows](https://documentation.spryker.com/docs/installing-docker-prerequisites-on-windows) -### Setting up a project with the Docker SDK +### Adding Docker SDK to Spryker Project To set up a local project with the Docker SDK: -1. Create the project directory and clone the source: -```bash -mkdir {project-name} && cd {project-name} -git clone https://github.com/{project-url} ./ -``` +1. Using a terminal navigate to your project root folder, there you can find src/ directory and composer.json file. -2. Clone the latest version of the Docker SDK: +2. Clone the latest version of the Docker SDK into the project root folder: ```bash git clone git@github.com:spryker/docker-sdk.git docker ``` -## Setting up a developer environemnt +## Launching a developer environemnt To set up a developer environment: @@ -58,31 +50,8 @@ Depending on your requirements, you can select any combination of the following - `--assets` - build assets - `--data` - fetch new demo data - -## Setting up a production-like environment - -To set up a production-like environment: - -1. Bootstrap docker setup, build and start the instance: - -```bash -docker/sdk boot deploy.*.yml -docker/sdk up -``` - -2. Switch to your project branch, re-build the application with assets and demo data from the new branch: - -```bash -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 - +Here you go! Now every Spryker Application of your project is running in a separate Docker container and +you can continue writing amazing code using Docker environment! ## Troubleshooting