Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reverted back to Leap builder #37

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ contrib/.cipd
contrib/.gclient*
contrib/rapidyaml-build
contrib/pistache-build
venv
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1 align="left"><img alt="chatterbox-logo" src="./assets/images/cbox-logo.png"/>
</h1>

chatterbox is a tool for quickly write a conversation against a REST endpoint.
chatterbox is a tool for chatting with a REST endpoint.

You write conversations using a `yaml` formalism describing an arbitrary
complex interaction between chatterbox and the endpoint.
Expand All @@ -22,13 +22,10 @@ chatterbox could be useful to you when you have to:
- Quickly build a complex interaction with an endpoint.
- Debug/test your endpoint when APIs are not available.

chatterbox embeds [V8](https://v8.dev/) the Google’s open source
high-performance JavaScript engine.

The V8 engine is used to allow an input to be optionally evaluated
as the result of a user defined JavaScript function.
Moreover, the V8 engine allows to maintain a JavaScript context
during the conversation; this can be used to store an arbitrary state.
chatterbox embeds a JavaScript interpreter: [V8](https://v8.dev/)
so the user can benefit from scripting capabilities.
A JavaScript context is kept during the entire conversation;
this allows to maintain an arbitrary state.

## quick example

Expand Down
2 changes: 1 addition & 1 deletion contrib/depot_tools
Submodule depot_tools updated from 60adf7 to 9c44fe
6 changes: 3 additions & 3 deletions docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- [Build](#build)
- [Build requirements](#build-requirements)
- [How to build](#how-to-build)
- [Build using the OpenSuse Tumbleweed Docker builder image](#build-using-the-opensuse-tumbleweed-docker-builder-image)
- [Build using the OpenSuse Leap Docker builder image](#build-using-the-opensuse-leap-docker-builder-image)

## Build requirements

Expand All @@ -30,7 +30,7 @@ cd scripts
./build.sh build-all
```

### Build using the OpenSuse Tumbleweed Docker builder image
### Build using the OpenSuse Leap Docker builder image

It is possible to use a Docker builder image to compile the binary
of `chatterbox`.
Expand All @@ -55,7 +55,7 @@ localhost/chatterbox-builder latest
```

Using this image, it is possible to build the `chatterbox` binary
for OpenSuse Tumbleweed:
for OpenSuse Leap:

```shell
cd scripts
Expand Down
3 changes: 2 additions & 1 deletion scripts/Dockerfile.builder
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM opensuse/tumbleweed
FROM opensuse/leap:15.5
LABEL Name=chatterbox-builder

RUN zypper -n install --no-recommends \
Expand All @@ -12,6 +12,7 @@ RUN zypper -n install --no-recommends \
ccache \
ninja \
binutils \
python311 \
gcc12-c++ \
automake \
autogen \
Expand Down
2 changes: 1 addition & 1 deletion scripts/Dockerfile.chatterbox
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM opensuse/tumbleweed
FROM opensuse/leap:15.5
LABEL Name=chatterbox

RUN zypper -n install --no-recommends curl \
Expand Down
2 changes: 1 addition & 1 deletion scripts/Dockerfile.chatterbox-test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM opensuse/tumbleweed
FROM opensuse/leap:15.5
LABEL Name=chatterbox-test

RUN zypper -n install --no-recommends curl \
Expand Down
3 changes: 3 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ basedir=$(realpath ${BASE_DIR:-"../"})
ninja_jobs=${NINJA_JOBS:-"6"}
builder_image=${BUILDER_IMAGE:-"chatterbox-builder"}
contrib_path=$(realpath ${CONTRIB_PATH:-"../contrib"})
python_bin=${PYTHON_BIN:-"python3.11"}

usage() {
cat << EOF
Expand Down Expand Up @@ -159,6 +160,8 @@ patch_v8_code() {
}

build_v8() {
$python_bin -m venv venv
source venv/bin/activate
echo "Building V8 ..."
PATH=$contrib_path/depot_tools:$PATH
cd $contrib_path
Expand Down
Loading