Skip to content

Commit a3e77af

Browse files
author
Ben Greenberg
committed
readme
1 parent e1aad6d commit a3e77af

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
]
99
}
1010
},
11-
"postCreateCommand": "npm install && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && PATH=\"$HOME/.cargo/bin:$PATH\" && git clone https://github.com/couchbaselabs/couchbase-shell.git && cd couchbase-shell && cargo build && cd .. && echo 'export PATH=$(pwd)/couchbase-shell/target/debug:$PATH' >> ~/.bashrc && source ~/.bashrc",
11+
"postCreateCommand": "npm install && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && PATH=\"$HOME/.cargo/bin:$PATH\" && git clone https://github.com/couchbaselabs/couchbase-shell.git && cd couchbase-shell && cargo build",
1212
"features": {
1313
"ghcr.io/devcontainers/features/node:1": {}
1414
}

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ This workshop is designed to help you get started with vector search using Couch
99

1010
The entire workshop will be run from inside a GitHub Codespace, which is a cloud-based development environment that is pre-configured with all the necessary tools and services. You don't need to install anything on your local machine.
1111

12+
> [!IMPORTANT]
13+
> Key information needed for running this workshop in GitHub Codespaces can be found [here](#running-in-github-codespaces).
14+
1215
## Prerequisites
1316

1417
- A GitHub account
@@ -22,6 +25,7 @@ The entire workshop will be run from inside a GitHub Codespace, which is a cloud
2225
4. [Transform Data](#transform-data)
2326
5. [Index Data](#index-data)
2427
6. [Search Data](#search-data)
28+
7. [Running in GitHub Codespaces](#running-in-github-codespaces)
2529

2630
## Video Walkthrough
2731

@@ -234,3 +238,28 @@ curl -X POST http://localhost:3000/search \
234238
-d '{"q": "your_query_item"}'
235239
```
236240
241+
## Running in GitHub Codespaces
242+
243+
When working in a GitHub Codespaces environment, there are some differences to be aware of, especially for the Couchbase Shell commands.
244+
245+
* The `cbsh` binary is not available in your `PATH` by default in Codespaces. Instead, you can find it in the following directory within your workspace:
246+
247+
```bash
248+
couchbase-shell/target/debug/cbsh
249+
```
250+
251+
To use `cbsh` in your Codespace, provide the full path wwhen running commands. For example:
252+
253+
```bash
254+
./couchbase-shell/target/debug/cbsh --config-dir /path/to/config-file
255+
```
256+
257+
You can also create an alias for the `cbsh` binary to make it easier to use:
258+
259+
```bash
260+
alias cbsh="./couchbase-shell/target/debug/cbsh"
261+
```
262+
263+
This allows you to run `cbsh` commands without specifying the full path.
264+
265+
Other than that, Codespaces comes pre-configured with all the dependencies necessary to run this workshop.

0 commit comments

Comments
 (0)