Install requirements
This page provides help to install requirements for d2s
:
- Pip to install python packages
- Docker to run services
#
Install pipxIf you just want to run d2s
we recommend you to use pipx as it install the tool in an isolated environment. It can be compared to apt
, brew
or npx
.
Consider doing a
pip install --upgrade pip
to update your pip installation.
Instructions use
pip3
to make surepipx
is installed with Python3, but feel free to use your ownpip
installation.
#
Install pipx on Ubuntu#
Install pipx on MacOSInstall python3
and pip3
if not installed.
#
Install pipx on CentOS#
Install pipx on WindowsWe will use the Chocolatey package manager for Windows on the PowerShell. To install Chocolatey:
- Open the PowerShell as administrator to install Chocolatey and its packages.
- Check and fix system restrictions:
- Install Chocolatey on PowerShell:
See the official Chocolatey documentation.
Chocolatey can also be installed using a non-administrative shell. See the documentation.
Open the PowerShell as administrator and use Chocolatey to install Python 3.8 and pip:
A reboot of your system is required to complete the installation.
Pip does not need to be run as administrator (only
choco install
)
We recommend using pipx if you are not developing on the d2s Python CLI:
#
Upgrade d2s versionUpgrade d2s to the latest release:
#
UninstallIf you face issues where d2s
or cwl-runner
is already installed, try to make sure it is properly uninstall from pip
:
If you are facing issue with No module name pip found
, it might be due to pip and pipx version issues. Be careful when installing pip
and pipx
as you want it to properly use python3.6
. Those commands will help you uninstalling pipx
properly:
#
Install Docker#
On UbuntuInstall Docker and docker-compose.
sudo groupadd docker
could be required beforeusermod
if the group has not been created.
#
On MacOSUse the Docker installer for MacOS (.dmg
file) to install Docker and docker-compose
.
If you have a DockerHub account you can use the DockerHub installer instead.
You can change Docker settings by clicking on the Docker icon 🐳 in the top bar, then click Preferences...
The volumes /Users
and /tmp
should be shared by default. It is recommended to create the d2s
project folder in a subfolder of /Users
.
#
On WindowsInstall the Docker Desktop for Windows (now also available for Windows Home)
Activate Virtualization: Virtualization and Hyper-V might need to be activated. Check in the Task Manager
, in tab Performance
if Virtualization is enabled
.
Check the documentation to enable it.
Docker-desktop installation will propose to install virtualization automatically after the Docker installation, if they are not installed.
Note that Docker Hyper-V is not available for Windows 10 Home edition (you will need Pro or Enterprise edition)
You might need to access the BIOS to enable VT-x virtualization
Share drive
By default docker-desktop
and docker-toolbox
are sharing your C:/Users
volume. Docker will only be able to access folders and files in the Shared Drives
. So make sure you execute d2s init
somewhere in your users directories.
On
docker-desktop
you can change it in Docker config >Settings
>Shared Drives
> Share Drive C
On
docker-toolbox
you need to change the settings of the Virtual Box
#
Fix known issuesDNS issue: Docker build can't access the internet. E.g.: getting
wget: unable to resolve host address
If Docker can't access internet when building you might want to change the DNS (to use Google's one).
On Linux:
On Windows: go to
Docker Settings
>Network
>DNS Server
>Fixed: 8.8.8.8
Firewall issue on Windows: it is common to face a firewall when Docker tries to connect to the internet
- This could be due to local services: try deactivate your firewall and/or antivirus
- If you are running it on your office network you might face issues related to the office network firewall. Try at home and contact your IT department if needed.
Check the Docker guide
For more details on how to run Docker see the Docker guide.