Skip to content

Commit

Permalink
Added bun installation, new docker-network, and mentioned error messa…
Browse files Browse the repository at this point in the history
…ges (#477)

* Update mac-linux.md

Added two more steps before the first limac command mentioned
-install homebrew
-install lima

Signed-off-by: Khushi Trivedi <[email protected]>

* Update samples-bunjs.md

-added installation of bun
-added potential error message

Signed-off-by: Khushi Trivedi <[email protected]>

* Creating new docker-network in file samples-bunjs.md

Creating new docker network after installing bun dependencies.

Signed-off-by: Khushi Trivedi <[email protected]>

---------

Signed-off-by: Khushi Trivedi <[email protected]>
  • Loading branch information
trivedi-khushi authored and actions-user committed Nov 6, 2024
1 parent a60e7a8 commit 3b2b83b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
34 changes: 23 additions & 11 deletions versioned_docs/version-2.0.0/keploy-explained/mac-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,28 @@ sidebar_label: Keploy on MacOS native
### Downloading and running Keploy in Native using Debian on MacOS

1. Open the terminal Session.
2. Run the following command
2. Run the following command. This installs homebrew and makes it easier to manage software and packages on macOS

```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

3. Now, with the help of homebrew, we would install Lima (Linux Virtual Machine) by running this command.

```bash
brew install lima
```

4. Paste this command next.

```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
5. Open a remote window on your code editor
6. Click on connect to host
7. Now select the configured SSH as "lima-debian"
8. Once you are in the terminal run the following commands to go into your directory

```bash
cd /Users
Expand All @@ -28,36 +40,36 @@ cd /Users
cd /{Username}
```

7. Run the following command to install Keploy
9. 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
10. 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
11. Install Git

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

10. Install 'Oh-my-zsh'
12. 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
13. Commands to Install docker

```bash
sudo apt-get -y update
Expand Down Expand Up @@ -98,7 +110,7 @@ sudo apt-get -y update
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```

12. Add docker to sudoers
14. Add docker to sudoers

```bash
sudo groupadd docker
Expand Down
12 changes: 11 additions & 1 deletion versioned_docs/version-2.0.0/quickstart/samples-bunjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ import InstallationGuide from '../concepts/installation.md'
```bash
git clone https://github.com/keploy/samples-typescript && cd samples-typescript/bun-mongo

#Install bun using this command

curl -fsSL https://bun.sh/install | bash

# Install the dependencies

bun install
Expand All @@ -55,12 +59,18 @@ We'll be running our sample application right on Linux, but just to make things

### 📼 Roll the Tape - Recording Time!

To install the dependencies
Install the dependencies. Note: using this command directly without installing bun might give an error like `zsh: command not found: bun`

```bash
bun install
```

This command will essentailly make a fresh docker-network named as `keploy-network `

```bash
docker network create keploy-network
```

Using the docker-compose file we will start our Postgres instance:-

```bash
Expand Down

0 comments on commit 3b2b83b

Please sign in to comment.