-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add Dockerfile for developing ROFL #2063
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for oasisprotocol-oasis-sdk ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
0cf620f
to
0554b1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make another pass once Oasis CLI 0.10.3+ is released.
@@ -77,20 +98,18 @@ nightly-2022-08-22-x86_64-unknown-linux-gnu (overridden by '/code/rust-toolchain | |||
rustc 1.65.0-nightly (c0941dfb5 2022-08-21) | |||
``` | |||
|
|||
For testing ROFL binaries on Sapphire Localnet, the binaries should be compiled | |||
for [MUSL C standard library]. You will need to add the following target to your |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to remove the [MUSL C standard library]
URL below .
the next section of this guide: | ||
|
||
```bash | ||
docker run --platform linux/amd64 --volume ./rofl-oracle:/src -it ghcr.io/oasisprotocol/rofl-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command could actually be expanded in the application.md chapter to include full build commands.
@@ -0,0 +1,9 @@ | |||
FROM ghcr.io/oasisprotocol/oasis-core-dev:stable-24.3.x AS oasis-core-dev | |||
|
|||
ARG OASIS_CLI_VERSION=0.10.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to oasisprotocol/cli#319
you can install those by running: | ||
|
||
```shell | ||
sudo apt install musl-tools gcc-multilib clang | ||
sudo apt install gcc-multilib clang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: when trying to run it in ubuntu docker (and devcontainer), it also required:
sudo apt update
sudo apt -y install pkg-config protobuf-compiler cmake
No description provided.