Skip to content

Commit

Permalink
Add instructions for VM
Browse files Browse the repository at this point in the history
Signed-off-by: Darko Draskovic <[email protected]>
  • Loading branch information
darkodraskovic committed Sep 21, 2023
1 parent 352999b commit f266259
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/manual/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

## CLI

Throughout the tests, we assume that our current working directory is the root of the `agent` repository.
Throughout the tests, we assume that our current working directory is the root of the `agent` repository, both on the host machine and in the VM.

### Python virtual environment
### Python requirements

Do this both on the host machine and in the VM.

```sh
apt update
Expand All @@ -14,16 +16,16 @@ pip3 install pandas sklearn scikit-learn

### Agent-CLI interaction

Open a console and start `agent`
In the VM, open a console and start `agent`:

```sh
AGENT_LOG_LEVEL=info go run cmd/agent/main.go
AGENT_LOG_LEVEL=info AGENT_GRPC_URL=10.0.2.15:7002 go run cmd/agent/main.go
```

Open another console and run
Open console on the host, and run

```sh
export AGENT_GRPC_URL=localhost:7002
export AGENT_GRPC_URL=localhost:7020

# Run the CLI program with algorithm input
go run cmd/cli/main.go algo test/manual/algo/lin_reg.py
Expand Down

0 comments on commit f266259

Please sign in to comment.