Running Keploy Natively on MacOS by setting up a linux env
Downloading and running Keploy in Native using Debian on MacOS
- Open the terminal Session.
- Run the following command. This installs homebrew and makes it easier to manage software and packages on macOS
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Now, with the help of homebrew, we would install Lima (Linux Virtual Machine) by running this command.
brew install lima
- Paste this command next.
limactl show-ssh --format=config debian-12 & add it to its ssh config
- Open a remote window on your code editor
- Click on connect to host
- Now select the configured SSH as "lima-debian"
- Once you are in the terminal run the following commands to go into your directory
cd /Users
cd /{Username}
- Run the following command to install Keploy
curl --silent --location "https://github.com/keploy/keploy/releases/latest/download/keploy_linux_arm64.tar.gz" | tar xz --overwrite -C /tmp
sudo mkdir -p /usr/local/bin && sudo mv /tmp/keploy /usr/local/bin/keploy
- Run the following command to install Zsh
sudo apt-get -y install zsh
Why? : zsh (Z Shell) is an advanced shell that offers enhanced features compared to the default bash shell. It provides better autocompletion, advanced globbing, improved history management, and more customization options.
- Install Git
sudo apt-get -y install git
- Install 'Oh-my-zsh'
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
Why? : oh-my-zsh is a framework for managing your zsh configuration. It comes with a collection of plugins, themes, and helpful features that enhance the zsh experience.
- Commands to Install docker
sudo apt-get -y update
sudo apt-get -y install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get -y update
sudo apt-get -y update
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- Add docker to sudoers
sudo groupadd docker
sudo gpasswd -a $USER docker