Skip to content

Commit

Permalink
Update README.md (#27)
Browse files Browse the repository at this point in the history
FIx references to docker registry.
  • Loading branch information
deuszx authored Mar 28, 2024
1 parent 8b89343 commit 88358e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function ink-build() {
docker run \
-v ${PWD}:/code \
--platform linux/amd64 \
--rm -it cardinal-cryptography/ink-dev:latest \
--rm -it public.ecr.aws/p6e8q1z1/ink-dev:latest \
cargo contract build --release --quiet
}
```
Expand All @@ -37,7 +37,7 @@ function ink-dev() {
-v ~/.cargo/registry:/usr/local/cargo/registry \
--platform linux/amd64 \
-u $UID:$(id -g) \
cardinal-cryptography/ink-dev:latest "$@"
public.ecr.aws/p6e8q1z1/ink-dev:latest "$@"
}
```

Expand All @@ -58,7 +58,7 @@ function ink-wrapper {
-v ~/.cargo/git:/usr/local/cargo/git \
-v ~/.cargo/registry:/usr/local/cargo/registry \
--entrypoint /bin/sh \
cardinal-cryptography/ink-dev:latest \
public.ecr.aws/p6e8q1z1/ink-dev:latest \
-c "ink-wrapper -m metadata.json | rustfmt --edition 2021 > src/ink_contract.rs"
}
```
Expand Down Expand Up @@ -87,7 +87,7 @@ where you want to overwrite Rust for all projects inside `my-app`, you will have

Example command (assuming `PWD=/my-app`):
```sh
docker run --rm -v ${PWD}:/code cardinal-cryptography/ink-dev:latest cargo contract build --release --manifest-path ink-project-a/Cargo.toml
docker run --rm -v ${PWD}:/code public.ecr.aws/p6e8q1z1/ink-dev:latest cargo contract build --release --manifest-path ink-project-a/Cargo.toml
```

By providing `--manifest-path` we can specify exactly which project we want to build.
Expand All @@ -112,7 +112,7 @@ For these cases, we need to mount additional directories manually:
-v ${PWD}/../other-contract:/other-contract
--platform linux/amd64 \
-u $UID:$(id -g) \
cardinal-cryptography/ink-dev:latest \
public.ecr.aws/p6e8q1z1/ink-dev:latest \
cargo contract build --release --quiet
```
Notice the additional `-v ${PWD}/../other-contract:/other-contract` which will mount your dependency so that it's visible in the docker container.
Expand Down

0 comments on commit 88358e2

Please sign in to comment.