From 88358e23ec047bc7f044b47cae1f5439c3540853 Mon Sep 17 00:00:00 2001 From: deuszx <95355183+deuszx@users.noreply.github.com> Date: Thu, 28 Mar 2024 12:26:25 +0100 Subject: [PATCH] Update README.md (#27) FIx references to docker registry. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b9fe4e0..696e123 100644 --- a/README.md +++ b/README.md @@ -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 } ``` @@ -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 "$@" } ``` @@ -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" } ``` @@ -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. @@ -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.