Set up your machine for local development and testing
This documentation will teach how to set up and install the required software tools in order to start using the DXPR products for development.
Setup of Linux
- Installing Docker, follow the steps in the official documentation here. Also, make sure you follow this link after installation to be able to run Docker commands without using
sudo
. - Install the Docker Compose.
Setup on Mac
- Installing the Docker Desktop application for Mac will automatically install the Docker Engine and the docker-compose for you. Just follow the documentation here.
- Make sure the
Experimental Features
>Use Docker Compose V2
option in the Docker Desktop application is disabled. - You need to have
realpath
command installed. If on your terminal the commandwhich realpath
returns empty, follow installation instructions here.
Setup on Windows
- Make sure your Windows 10 installation 100% up to date.
- Enable Developer Mode
- Installing the Docker Desktop application for Windows will automatically install the Docker Engine and the docker-compose for you. Just follow the documentation here.
- Make sure the setting General > Use Docker Compose V2 option in the Docker Desktop application is enabled.
- Install the app Windows Terminal from the Microsoft Store app
- Install the app Ubuntu from the Microsoft Store app
- Launch Windows Terminal and open the Settings window
- Set Default profile to Ubuntu
- Close and restart the Windows Terminal app. Make sure your're starting it in the Ubuntu mode.
- In the future, you should run all commands, including git commands and bash scripts using the Windows Terminal app (making sure it runs Ubuntu).
Windows Docker/WSL2 Troubleshooting
If Docker keeps saying that WSL 2 installation is not complete, follow these steps:
- Open command prompt as administrator
- Run command
wsl -l -v 3
. If that last number is 2 you’re good, if the last number is 1 continue with the next steps - Run command
wsl --set-default-version 2
- Run command
wsl --set-version Ubuntu 2
- After Ubuntu is upgraded to WSL 2 open Docker Desktop, click the settings button, go to Resources > WSL Integration. Ubuntu should be list now and you can enable the integrations.
- Press the Apply & Restart button.
- See if Docker is running (green logo in the lower-left corner). If it’s not, restart Windows and check again.