Skip to content
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

fix: Update localnet container naming #620

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Web3 gateway docker images for local development with bundled Emerald/Sapphire ParaTimes
# Web3 gateway docker images for local development with bundled Sapphire/Emerald ParaTimes

Subfolders contain Dockerfiles for bundling the following components required to
set up localnet for developing dApps running on Emerald or Sapphire:
set up localnet for developing dApps running on Sapphire or Emerald:

- oasis-node and oasis-net-runner
- Emerald or Sapphire ParaTime .orc bundles
- Sapphire or Emerald ParaTime .orc bundles
- oasis-web3-gateway
- oasis-deposit helper to fund local development accounts

## Prebuilt images

Oasis provides prebuilt `emerald-localnet` and `sapphire-localnet` docker
Oasis provides prebuilt `sapphire-localnet` and `emerald-localnet` docker
images. `latest` versions are based on:
- `stable` branch of `oasis-core`,
- `master` branch of `oasis-sdk`,
Expand All @@ -19,8 +19,8 @@ images. `latest` versions are based on:
To use the precompiled images, run:

```sh
docker run -it -p8545:8545 -p8546:8546 ghcr.io/oasisprotocol/emerald-localnet # Emerald
docker run -it -p8545:8545 -p8546:8546 ghcr.io/oasisprotocol/sapphire-localnet # Sapphire
docker run -it -p8545:8545 -p8546:8546 ghcr.io/oasisprotocol/emerald-localnet # Emerald
```

### Mac M Chips
Expand All @@ -29,8 +29,8 @@ There is currently no arm64 build available for M Macs, so make sure to force th
like this:

```sh
docker run -it -p8545:8545 -p8546:8546 --platform linux/x86_64 ghcr.io/oasisprotocol/emerald-localnet # Emerald
docker run -it -p8545:8545 -p8546:8546 --platform linux/x86_64 ghcr.io/oasisprotocol/sapphire-localnet # Sapphire
docker run -it -p8545:8545 -p8546:8546 --platform linux/x86_64 ghcr.io/oasisprotocol/emerald-localnet # Emerald
```
## Build image locally

Expand All @@ -44,8 +44,8 @@ make docker
To run the compiled image type:

```sh
docker run -it -p8545:8545 -p8546:8546 ghcr.io/oasisprotocol/emerald-localnet:local
docker run -it -p8545:8545 -p8546:8546 ghcr.io/oasisprotocol/sapphire-localnet:local
docker run -it -p8545:8545 -p8546:8546 ghcr.io/oasisprotocol/emerald-localnet:local
```

## Usage
Expand All @@ -55,8 +55,8 @@ truffle or metamask to the *Localnet* running at `http://localhost:8545` and
`ws://localhost:8546`.

Chain IDs:
- Emerald Localnet: `0xa514` (`42260`)
- Sapphire Localnet: `0x5afd` (`23293`)
- Emerald Localnet: `0xa514` (`42260`)

By default, a random mnemonic will be generated and the first 5 accounts will
be funded 10,000 TEST. Flags `-amount`, `-to`, `-n` can be added to specify an
Expand Down
Loading