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

docs: Update the Ballista dev env instructions #2419

Merged
merged 5 commits into from
May 2, 2022
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
14 changes: 13 additions & 1 deletion ballista/docs/dev-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,29 @@ You will need a standard Rust development environment. The easiest way to achiev

## Install OpenSSL

Follow instructions for [setting up OpenSSL](https://docs.rs/openssl/0.10.28/openssl/). For Ubuntu users, the following
Follow instructions for [setting up OpenSSL](https://docs.rs/openssl/latest/openssl/). For Ubuntu users, the following
command works.

```bash
sudo apt-get install pkg-config libssl-dev
```

For MacOS users, the following command works.

```bash
brew install [email protected]
```

## Install CMake

You'll need cmake in order to compile some of ballista's dependencies. Ubuntu users can use the following command:

```bash
sudo apt-get install cmake
```

MacOS users can use the following command:

```bash
brew install cmake
```
12 changes: 3 additions & 9 deletions ballista/ui/scheduler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ $ cd rust/scheduler
$ RUST_LOG=info cargo run --release
...
Finished release [optimized] target(s) in 11.92s
Running `/path-to-project/target/release/ballista-scheduler`
[2021-05-02T05:11:17Z INFO ballista_scheduler] Ballista v0.5.0-SNAPSHOT Scheduler listening on 0.0.0.0:50050
[2021-05-02T05:14:10Z INFO ballista_scheduler] Received get_executors_metadata request
Running `/path-to-project/target/release/ballista-scheduler`
```

and run executor in new terminal:
Expand All @@ -41,19 +39,15 @@ and run executor in new terminal:
$ cd rust/executor
$ RUST_LOG=info cargo run --release
Finished release [optimized] target(s) in 0.09s
Running `/path-to-project/target/release/ballista-executor`
[2021-05-02T05:11:30Z INFO ballista_executor] Running with config: ExecutorConfig { host: "localhost", port: 50051, work_dir: "/var/folders/y8/fc61kyjd4n53tn444n72rjrm0000gn/T/.tmpAZ0rn4", concurrent_tasks: 4 }
[2021-05-02T05:11:30Z INFO ballista_executor] Ballista v0.5.0-SNAPSHOT Rust Executor listening on 0.0.0.0:50051
Running `/path-to-project/target/release/ballista-executor`
```

### Run Client project

```shell
$ cd ui/scheduler
$ yarn
yarn install v1.22.10
[1/4] 🔍 Resolving packages...
...
Resolving packages...
$ yarn start
Starting the development server...
```
Expand Down