Skip to content

Commit

Permalink
Added Installation with Debian
Browse files Browse the repository at this point in the history
  • Loading branch information
Tvisha Raji authored and Tvisha Raji committed Aug 11, 2024
1 parent 467db52 commit 9ff6b0d
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions versioned_docs/version-2.0.0/concepts/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ Use "keploy [command] --help" for more information about a command.

#### On macOS

Note : Keploy is not supported natively on MacOS, so you can follow the below method to run with docker

1. Open up a terminal window.

2. Create a bridge network in Docker using the following docker network create command:
Expand All @@ -96,6 +98,97 @@ alias keploy="docker run --name keploy-v2 -p 16789:16789 --network keploy-networ
</details>

<details>
<details>
<summary>Running Keploy Natively on MacOS by setting up a linux env</summary>

### Downloading and running Keploy in Native using Debian on MacOS

1. Open the terminal Session.
2. Run the following command

```bash
limactl show-ssh --format=config debian-12 & add it to its ssh config
```
3. Open a remote window on your code editor
4. Click on connect to host
5. Now select the configured SSH as "lima-debian"
6. Once you are in the terminal run the following commands to go into your directory

```bash
cd /Users
```

```bash
cd /{Username}
```
7. Run the following command to install Keploy

```bash
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
```
8. Run the following command to install Zsh

```bash
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.

9. Install Git

```bash
sudo apt-get -y install git
```

10. Install 'Oh-my-zsh'

```bash
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.

11. Commands to Install docker

```bash
sudo apt-get -y update
```
```bash
sudo apt-get -y install ca-certificates curl
```
```bash
sudo install -m 0755 -d /etc/apt/keyrings
```
```bash
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
```
```bash
sudo chmod a+r /etc/apt/keyrings/docker.asc
```
```bash
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
```
```bash
sudo apt-get -y update
```
```bash
sudo apt-get -y update
```
```bash
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```

12. Add docker to sudoers
```bash
sudo groupadd docker
```
```bash
sudo gpasswd -a $USER docker
```

</details>
<summary>Downloading and running Keploy in Native</summary>

### Downloading and running Keploy in Native
Expand Down

0 comments on commit 9ff6b0d

Please sign in to comment.