Skip to content

Commit

Permalink
Merge pull request #706 from ava-labs/add-devcontainer
Browse files Browse the repository at this point in the history
Add devcontainer config
  • Loading branch information
felipemadero authored Mar 5, 2024
2 parents 187d46d + 97fa3dd commit 458079f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// For format details, see https://aka.ms/devcontainer.json.
{
"name": "Avalanche-Network-Runner Dev Container",

"image": "golang:latest",
"runArgs": ["--network=host"],

"remoteEnv": {
"PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/bin"
},

"postCreateCommand": "scripts/build.sh"
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export PATH=~/bin:$PATH

To add it to your path permanently, add an export command to your shell initialization script (ex: .bashrc).

## Dev Container & Codespace

To get started easily, we provide a Dev Container specification, that can be used using GitHub Codespace or locally using Docker and VS Code. [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) are a concept that utilizes containerization to create consistent and isolated development environment. You can run them directly on Github by clicking **Code**, switching to the **Codespaces** tab and clicking **Create codespace on main**. Alternatively, you can run them locally with the extensions for [VS Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) or other code editors.

## Build from source code

This is only needed by advanced users who want to modify or test Avalanche Network Runner in specific ways.
Expand Down

0 comments on commit 458079f

Please sign in to comment.