Skip to content

Commit

Permalink
Instruction to install WSL2 and Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
tpmai22 committed Oct 28, 2021
1 parent 207df8a commit 4ad9795
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion docs/environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,31 @@
- [Node.js (npm)](https://nodejs.org/en/download/)
- [Docker and Docker-Compose](https://docs.docker.com/install/)

## Install Redis and WSL2

1. Follow Microsoft WSL2 [installation guide](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to complete the installation. Suggest to run the following once in the WSL2 environment.

```bash
# fetch updated packages information
sudo apt update

# upgrade or install outdated packages
sudo apt upgrade
```

2. Depending on the distribution you chose for WSL2, install redis using that distro's package manager. You can check your distro's package manager [here](https://www.tecmint.com/linux-distro-for-power-users/). The two most common package manager are APT and DNF.

```bash
# for APT package manager
sudo apt-get install redis

#for DNF package manager
sudo dnf install redis -y
```

3. Suggest to install [Windows Terminal](https://docs.microsoft.com/en-us/windows/wsl/install-win10#install-windows-terminal-optional), it facilitates you to switch directories between WSL2 Ubuntu bash and Windows drive.
4. Suggest to install [Node, nvm and npm for WSL2](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl#install-nvm-nodejs-and-npm), so as to be able to use Node and npm in the subsystem.

## Docker and Docker-Compose Setup

### Linux-Ubuntu
Expand Down Expand Up @@ -139,7 +164,7 @@ _NOTE: This will not work on WSL (Windows Subsystem for Linux). Use the approach
1. Get [Docker for Desktop For Windows](https://hub.docker.com/editions/community/docker-ce-desktop-windows)
1. Docker for Desktop comes with docker-compose installed.

### Windows 10 Home, Pro, Enterprise, or Education (Insiders WSL 2 Docker)
#### Windows 10 Home, Pro, Enterprise, Education or Windows 11 (Insiders / WSL 2 / Docker)

1. If your [Windows build number](https://www.windowscentral.com/how-check-your-windows-10-build) is below [18917](https://docs.microsoft.com/en-us/windows/wsl/wsl2-install/), join the [insiders program](https://insider.windows.com/en-us/). Then, update your machine to a newer build through Automatic Updates.
2. Once installed successfully, install [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/wsl2-install).
Expand Down

0 comments on commit 4ad9795

Please sign in to comment.