Skip to content

Conversation

@jayantk
Copy link
Contributor

@jayantk jayantk commented Nov 2, 2021

No description provided.

tony-ricciardi
tony-ricciardi previously approved these changes Nov 2, 2021
README.md Outdated
# run unit tests
ctest
```
export PYTH_REPO=`pwd`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PYTH_REPO=/path/to/host/pyth-client might be more clear. If you'd rather to stick with pwd, it should be "$( pwd )" to handle whitespace and be consistent with the podman command below.

README.md Outdated

If you are using an M1 mac, you will need to build this repository inside a linux docker container, as the build depends on
some linux-specific libraries. You can run the following command to open a shell in a linux docker container with the current
directory mounted:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove the first sentence, since this isn't specific to OS X. I use a similar podman command on RHEL, and more generally users should always be building & running BPF binaries inside a docker environment.

```

This command runs a recent pyth-client docker image that already has the necessary dependencies installed.
Therefore, once the container is running, all you have to do is run `cd pyth-client && ./scripts/build.sh`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also worth noting that the --user argument causes changes to source files, build directories, etc., within the mounted ~/pyth-client/ to be persisted to the host (generally desired).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants