Skip to content

Commit 4672cc4

Browse files
authored
Move Dockerfile.debug to public artifact registry (#4602)
## Motivation Since we might want to access this image from clusters in other cloud providers, it makes sense for it to be in the public registry. ## Proposal Move it to public registry ## Test Plan Built and uploaded the image, and used it to debug something in a OVH cluster ## Release Plan - Nothing to do / These changes follow the usual release cycle.
1 parent 1758c18 commit 4672cc4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker/debug/Dockerfile.debug

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# * Create a buildx builder instance (if you don't have one already):
33
# docker buildx create --name my-buildx-builder --driver docker-container --use
44
# * 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
66
#
77
# To use this, given a running container that contains a pod you're interested in debugging (let's
88
# call it `shards-0`), and a container within that pod (let's call it `linera-server`), do the following:
@@ -11,19 +11,19 @@
1111
# - For a kind cluster with id for example `97461`, run:
1212
# kubectl config use-context kind-97461
1313
# 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
1515
# 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
1717
# 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
1919

2020
# * For debugging a GCP cluster:
2121
# 1) Connect to the cluster:
2222
# - Let's say we're trying to connect to the cluster `testnet-babbage-validator-1-cluster`
2323
# in region `us-east1-b`. Run:
2424
# gcloud container clusters get-credentials testnet-babbage-validator-1-cluster --region us-east1-b
2525
# 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
2727
#
2828
# You should now have a shell in this debugging container, with all the different debugging tools
2929
# installed below, but without bloating the production Docker image.

0 commit comments

Comments
 (0)