Support: All Prerequisites
All necessary prerequisites are listed below.
Pre-Requisites
Registrations
Installations
- git CLI (Mac/Linux/Windows)
- Docker Deskop & CLI (Mac/Windows)
- Tanzu Community Edition CLI (tanzu)
- Kubernetes CLI (kubectl) (Mac/Windows
- Visual Studio Code)
- Java (Mac/Windows)
Installation Notes
For Java Installation, Add JAVA_HOME to System Environment Variables
Mac
Download Java JDK Mac Installer Here
- Open Terminal
- Notice if you see
zsh
orbash
on the top of your window - Run the following command to find where Java is.
where java
- Copy the line that has jdk in it
- Run the following command if you have
bash
echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile
Restart Terminal
cat ~/.bash_profile echo $JAVA_HOME
- Run the following command if you have
zsh
-
echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.zshrc
Close & Re open Terminal
cat ~/.zshrc echo $JAVA_HOME
-
Windows
Download Java JDK Windows Installer Here
- Open File Explorer
- Click
This PC
,Local Disk (C:)
,Program Files
,Java
,jdk-##
- Right click the folder
jdk-##
and clickCopy address as text
- Open Control Plane
- Click
System & Security
,System
,Advanced System Settings
,Environment Variables
- Under ‘System Variables’ Click
New
- Set Variable Name to
JAVA_HOME
- For Variable value paste the result of $where java
- Press
OK
- Restart Command Prompt
- Type the following command to make sure the variable has been correctly set
set JAVA_HOME
For Tanzu & Kubernetes Installation,
Mac: Install Homebrew
- Run the following command in terminal
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Run the following commands to make sure Homebrew was installed and install TCE and Kubernetes
brew -v brew install vmware-tanzu/tanzu/tanzu-community-edition brew install kubernetes-cli
- Run the following commands to verify installation
tanzu version kubectl version
Windows: Install Chocolatey
- Run Command Prompt as Admin, Type Win + X, Click Command Prompt (Admin)
- Paste the following code and press enter
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
- Restart Command Prompt/Windows Terminal/Powershell (Admin)
- Run the following commands to make sure Chocolatley was installed and install TCE and Kubernetes
choco -v choco install tanzu-community-edition choco install kubernetes-cli
Note: Chocolatley
choco
commands can only be run by administrator. Packages installed can be used in Admin or Non-admin Command Prompts. - Run the following commands to verify installation
tanzu version kubectl version
To Run Docker in Windows you must make sure Virtualization Proptection is enabled.
Contact a VMware Instructor in class or on discord (#howard-cloud-web-development-course) before beginning this process. They will verify if you need to complete these steps or not.
- Open Command Prompt
- Type
systeminfo
to see Hyper-V Requirements. If any are set to No, follow these steps: - Type Windows Key +
X
- Click
Settings
,Update & Security
,Recovery
- Under ‘Advanced startup’ Click
Restart Now
- Under ‘Choose an option’ click
Troubleshoot
,Advanced Options
,UEFI Firmware Settings
,Restart
- On Startup Menu Type ‘fn key’ + ‘f10 key’ to Open BIOs Set Up
-
Click the right arrow to
System Configuration
Note: If your computer does not have a System Configuration tab Follow links Step 2 based on your device manufacturer
- Click down to
Virtualization Technology
- Click Enter to change and Click the up/down arrow to enabled
- Click Enter
- Click ‘fn key’ + ‘f10 key’ to save and exit
- Open Command Prompt & Type
systeminfo
to make sure the Hypervisor has been found - Open Control Panel
- Click
Programs
,Turn Windows featured on or off
- Make sure ‘Windows Hypervisor Platoform’ and Virtual Machine Platform’ have a check next to them
- Restart your computer
- Open Docker Desktop and wait for it to start
Note: You may see a pop up instructing you to install a linux kernel package. Follow the steps to install then click restart.