Skip to content

Commit

Permalink
Resolve issue #69 (#71)
Browse files Browse the repository at this point in the history
* Resolve issue #69

Signed-off-by: Ashutosh Tripathi <[email protected]>

* Update Dockerfile

Signed-off-by: Ashutosh Tripathi <[email protected]>

* Update README.md

Signed-off-by: Ashutosh Tripathi <[email protected]>

---------

Signed-off-by: Ashutosh Tripathi <[email protected]>
  • Loading branch information
ashucoder9 authored Jun 14, 2024
1 parent a857165 commit 33e8c99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
ARG AVALANCHEGO_VERSION
FROM avaplatform/avalanche-cli:latest as avalanche-cli
FROM ghcr.io/foundry-rs/foundry:latest as foundry
FROM avaplatform/avalanchego:$AVALANCHEGO_VERSION as avalanchego
FROM mcr.microsoft.com/devcontainers/base

COPY --from=avalanchego /avalanchego/build /go/src/github.com/ava-labs/avalanchego/build
COPY --from=avalanche-cli /avalanche /usr/local/bin/avalanche

COPY --from=foundry /usr/local/bin/forge /usr/local/bin/forge
COPY --from=foundry /usr/local/bin/cast /usr/local/bin/cast
COPY --from=foundry /usr/local/bin/anvil /usr/local/bin/anvil
COPY --from=foundry /usr/local/bin/chisel /usr/local/bin/chisel

RUN curl -sSfL https://raw.githubusercontent.com/ava-labs/avalanche-network-runner/main/scripts/install.sh | sh -s
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,18 @@ You can build your precompile and Subnet-EVM with `./scripts/build.sh`. This scr

### Run

You can run you Precompile-EVM by using Avalanche Network Runner
You can run you Precompile-EVM by using the Avalanche CLI.

First, create the configuration for your subnet.

```bash
avalanche-network-runner server \
--log-level debug \
--port=":8080" \
--grpc-gateway-port=":8081"
avalanche subnet create mysubnet --custom --vm $AVALANCHEGO_PLUGIN_PATH/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy --genesis ./.devcontainer/genesis-example.json
```

Then launch a Subnet with your custom VM:
Next, launch the Subnet with your custom VM:

```bash
avalanche-network-runner control start \
--log-level debug \
--endpoint="0.0.0.0:8080" \
--number-of-nodes=5 \
--blockchain-specs '[{"vm_name": "subnetevm", "genesis": "./.devcontainer/genesis-example.json"}]'
avalanche subnet deploy mysubnet
```

### Test
Expand Down

0 comments on commit 33e8c99

Please sign in to comment.