|
2 | 2 | # * Create a buildx builder instance (if you don't have one already): |
3 | 3 | # docker buildx create --name my-buildx-builder --driver docker-container --use |
4 | 4 | # * Build the image: |
5 | | -# docker buildx build --platform linux/amd64,linux/arm64 -t us-docker.pkg.dev/linera-io-dev/linera-docker-repo/linera-debug:latest -f docker/debug/Dockerfile.debug . --push |
| 5 | +# docker buildx build --platform linux/amd64,linux/arm64 -t us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-debug:latest -f docker/debug/Dockerfile.debug . --push |
6 | 6 | # |
7 | 7 | # To use this, given a running container that contains a pod you're interested in debugging (let's |
8 | 8 | # call it `shards-0`), and a container within that pod (let's call it `linera-server`), do the following: |
|
11 | 11 | # - For a kind cluster with id for example `97461`, run: |
12 | 12 | # kubectl config use-context kind-97461 |
13 | 13 | # 2) Pull the docker image, if you don't have it locally: |
14 | | -# docker pull us-docker.pkg.dev/linera-io-dev/linera-docker-repo/linera-debug:latest |
| 14 | +# docker pull us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-debug:latest |
15 | 15 | # 3) Load the image into the kind cluster: |
16 | | -# kind load docker-image --name 97461 us-docker.pkg.dev/linera-io-dev/linera-docker-repo/linera-debug:latest |
| 16 | +# kind load docker-image --name 97461 us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-debug:latest |
17 | 17 | # 4) Create a debugging container that shares the same processes as the pod you're interested in debugging, and get a shell into it: |
18 | | -# kubectl debug -n default shards-0 -it --image=us-docker.pkg.dev/linera-io-dev/linera-docker-repo/linera-debug:latest --target=linera-server --share-processes --image-pull-policy=IfNotPresent --profile=sysadmin -- bash |
| 18 | +# kubectl debug -n default shards-0 -it --image=us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-debug:latest --target=linera-server --share-processes --image-pull-policy=IfNotPresent --profile=sysadmin -- bash |
19 | 19 |
|
20 | 20 | # * For debugging a GCP cluster: |
21 | 21 | # 1) Connect to the cluster: |
22 | 22 | # - Let's say we're trying to connect to the cluster `testnet-babbage-validator-1-cluster` |
23 | 23 | # in region `us-east1-b`. Run: |
24 | 24 | # gcloud container clusters get-credentials testnet-babbage-validator-1-cluster --region us-east1-b |
25 | 25 | # 2) Create a debugging container that shares the same processes as the pod you're interested in debugging, and get a shell into it: |
26 | | -# kubectl debug -n default shards-0 -it --image=us-docker.pkg.dev/linera-io-dev/linera-docker-repo/linera-debug:latest --target=linera-server --share-processes --image-pull-policy=Always --profile=sysadmin -- bash |
| 26 | +# kubectl debug -n default shards-0 -it --image=us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-debug:latest --target=linera-server --share-processes --image-pull-policy=Always --profile=sysadmin -- bash |
27 | 27 | # |
28 | 28 | # You should now have a shell in this debugging container, with all the different debugging tools |
29 | 29 | # installed below, but without bloating the production Docker image. |
|
0 commit comments