Configuring a mount mode
Edit on GitHubThis document describes how to configure a mount mode.
Configuring mutagen mount mode on MacOS
To configure mutagen mount mode on MacOS:
-
Install or update Docker Desktop for Mac to the latest stable version.
-
Adjust the
mount:
section ofdeploy.local.yml
as follows:
docker:
...
mount:
mutagen:
platforms:
- macos
- Bootstrap the Docker SDK:
docker/sdk boot
-
Follow the installation instructions displayed in the grey block of the output of the command you have run in the previous step.
-
Build and run Spryker application based on demo data:
docker/sdk up --build --data --assets
Configuring docker-sync mount mode on MacOS
To configure docker-sync mount mode on MacOS:
- Install ruby and ruby-dev 2.7.0preview1 or higher:
sudo apt-get install ruby ruby-dev
- Install Unison 2.51.2 or higher:
brew install unison
- Install docker-sync 0.5.11 or higher:
sudo gem install docker-sync
- Adjust the mount section of
deploy.local.yml
as follows:
docker:
...
mount:
docker-sync:
platforms:
- macos
- Bootstrap the Docker SDK:
docker/sdk boot
-
Follow the installation instructions displayed in the grey block of the output of the command you have run in the previous step.
-
Build and run Spryker application based on demo data:
docker/sdk up --build --data --assets
Configuring a native mount mode on Linux
To configure a native mount mode on Linux:
-
Install or update Docker for Linux to the latest stable version.
-
Adjust the
mount:
section ofdeploy.local.yml
as follows:
docker:
...
mount:
native:
platforms:
- linux
- Bootstrap the Docker SDK:
docker/sdk boot
-
Follow the installation instructions displayed in the grey block of the output of the command you have run in the previous step.
-
Build and run Spryker application based on demo data:
docker/sdk up --build --data --assets
Configuring docker-sync mount mode on Windows with WSL1
Docker for Windows requires project files to be stored in the Windows file system. For example, you can store project files in C:/my-project
and use /c/my-project
as a working directory.
Find more details about it in Ensure Volume Mounts Work.
To configure docker-sync mount mode on Windows with Windows Subsystem for Linux 1 (WSL1):
-
Install Docker Desktop Stable 2.3.0.2 or higher.
-
In WSL, install the latest version of Docker:
- Update packages to the latest versions:
sudo apt-get update
- Install the following packages to allow apt to access repositories via HTTPS:
sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common
- Add Docker’s official GNU Privacy Guard key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- Set up a stable repository:
sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
- Install the latest version of Docker Community Edition:
sudo apt-get install docker-ce docker-ce-cli containerd.io
-
Install Docker Compose:
-
Check the latest stable release of Docker Compose.
-
Download Docker Compose:
Docker Compose versionReplace
{docker-compose-release}
in the command parameter with the version you have selected in the previous step.sudo curl -L "https://github.com/docker/compose/releases/download/{docker-compose-release}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
-
-
Install docker-sync:
- Install ruby and ruby-dev:
sudo apt-get install ruby ruby-dev
- Install docker-sync:
sudo gem install docker-sync
-
Set your Docker for Windows host as an environment variable:
-
In Docker for Windows settings, select Expose daemon on tcp://localhost:2375 without TLS.
-
To update the profile with the environment variable, in your WSL shell, run the command:
echo "export DOCKER_HOST=tcp://127.0.0.1:2375" >> ~/.bashrc
-
-
Compile and install OCaml:
- Install the build script:
sudo apt-get install build-essential make
-
Check the latest compatible OCaml release. In the next steps, replace
{ocaml-version}
in command parameters with the version you choose. -
Download the OCaml archive:
wget http://caml.inria.fr/pub/distrib/ocaml-{ocaml-version}/ocaml-{ocaml-version}.tar.gz
- Extract the archive:
tar xvf ocaml-{ocaml-version}.tar.gz
- Change the directory:
cd ocaml-{ocaml-version}
- Configure and compile OCaml:
./configure make world make opt umask 022
- Install OCaml and clean:
sudo make install sudo make clean
-
Compile and install Unison:
-
Check the latest release of Unison. In the next steps, replace
{unison-version}
in command parameters with the version you choose. -
Download the Unison archive:
wget https://github.com/bcpierce00/unison/archive/{unison-version}.tar.gz
- Extract the archive:
tar xvf {unison-version}.tar.gz
- Change the directory:
cd unison-{unison-version}
- Compile and install Unison:
make UISTYLE=text sudo cp src/unison /usr/local/bin/unison sudo cp src/unison-fsmonitor /usr/local/bin/unison-fsmonitor
-
-
Adjust the
mount:
section ofdeploy.local.yml
as follows:
docker:
...
mount:
docker-sync:
platforms:
- windows
- Bootstrap the Docker SDK:
docker/sdk boot
-
Follow the installation instructions displayed in the grey block of the output of the command you have run in the previous step.
-
Build and run Spryker application based on demo data:
docker/sdk up --build --data --assets
Configuring native mount mode for Windows with WSL2
To configure native mount mode for Windows with Windows Subsystem for Linux 2 (WSL2):
-
Download and install Docker Desktop Stable 2.3.0.2 or higher.
-
In WSL, install Docker:
- Update packages to the latest version:
sudo apt-get update
- Install packages to allow apt to access repositories via HTTPS:
sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common
- Add Docker’s official GNU Privacy Guard key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- Set up a stable repository:
sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
- Install the latest version of Docker Community Edition:
sudo apt-get install docker-ce docker-ce-cli containerd.io
-
Install Docker Compose:
-
Check the latest stable release of Docker Compose.
-
Download Docker Compose:
```bash sudo curl -L "https://github.com/docker/compose/releases/download/{docker-compose-release}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose ```Docker Compose versionReplace
{docker-compose-release}
in the command parameter with the version you have selected in the previous step.- Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
-
-
Bootstrap the Docker SDK:
docker/sdk boot
- Follow the installation instructions displayed in the grey block of the output of the command you have run in the previous step.
- Build and run Spryker application based on demo data.
docker/sdk up --build --data --assets
Thank you!
For submitting the form