Skip to content

Commit d800da4

Browse files
committed
Change Docker registry commands
Signed-off-by: Nadine2016 <[email protected]>
1 parent d0bfc4d commit d800da4

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

src/app/docs/kagent/examples/a2a-byo/page.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,19 @@ The following example builds a simple agent from the [kagent code repository](ht
3131
cd kagent
3232
```
3333

34-
2. Optional: If you do not have a Docker registry, you can use the `make helm-install` command to create one as part of installing kagent in your kind cluster.
35-
36-
3. Build the custom agent image and push it to your local Docker registry.
37-
34+
2. Build the custom agent image and push it to your Docker registry. This example assumes that you want to push the image to the ghcr.io registry.
3835
```bash
3936
cd python/samples/adk/basic
40-
docker build . -t localhost:5001/my-byo:latest \
41-
--build-arg DOCKER_REGISTRY=localhost:5001 \
42-
--build-arg VERSION=latest \
43-
--push
37+
docker build . -t ghcr.io/my-org:$latest \
38+
--build-arg DOCKER_REGISTRY=ghcr.io \
39+
--build-arg VERSION=latest \
40+
--push
4441
```
4542

43+
If you do not have a Docker registry, you can use the `make helm-install` command to create one as part of installing kagent in your kind cluster.
44+
Then, change `ghcr.io` to `localhost:5001`.
45+
46+
4647
## Creating a BYO Agent resource
4748

4849
Now that you have your own custom agent image, you can create a BYO Agent resource for kagent to manage.
@@ -73,7 +74,7 @@ Now that you have your own custom agent image, you can create a BYO Agent resour
7374
type: BYO
7475
byo:
7576
deployment:
76-
image: localhost:5001/my-byo:latest
77+
image: ghcr.io/my-org:latest
7778
env:
7879
- name: GOOGLE_API_KEY
7980
valueFrom:

src/app/docs/kagent/examples/crewai-byo/page.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ The following example builds a research crew agent from the [kagent code reposit
3131
cd kagent
3232
```
3333

34-
2. Optional: If you do not have a Docker registry, you can use the `make helm-install` command to create one as part of installing kagent in your kind cluster.
35-
36-
3. Build the custom agent image and push it to your local Docker registry.
37-
34+
2. Build the custom agent image and push it to your Docker registry. This example assumes that you want to push the image to the ghcr.io registry.
3835
```bash
3936
cd python/samples/crewai/research-crew
40-
docker build . -t localhost:5001/research-crew:latest --push
37+
docker build . -t ghcr.io/research-crew:latest --push
4138
```
4239

40+
If you do not have a Docker registry, you can use the `make helm-install` command to create one as part of installing kagent in your kind cluster.
41+
Then, change `ghcr.io` to `localhost:5001`.
42+
4343
### Adapting your own CrewAI agent
4444

4545
A quickstart and detailed guide for adapting existing CrewAI crews and flows to work with kagent is available in the [package's README](https://github.com/kagent-dev/kagent/tree/main/python/packages/kagent-crewai).
@@ -96,7 +96,7 @@ You will need a Serper API Key that you can get for free [from their website](ht
9696
type: BYO
9797
byo:
9898
deployment:
99-
image: localhost:5001/research-crew:latest
99+
image: ghcr.io/research-crew:latest
100100
env:
101101
- name: OPENAI_API_KEY
102102
valueFrom:

src/app/docs/kagent/examples/langchain-byo/page.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,20 @@ The following example builds a simple LangGraph agent from the [kagent code repo
2929
cd kagent
3030
```
3131

32-
2. Optional: If you do not have a Docker registry, you can use the `make helm-install` command to create one as part of installing kagent in your kind cluster.
33-
34-
3. Build the custom agent image and push it to your local Docker registry.
35-
32+
2. Build the custom agent image and push it to your Docker registry. This example assumes that you want to push the image to the ghcr.io registry.
3633
```bash
3734
cd python
3835
docker build . -f samples/langgraph/currency/Dockerfile\
39-
-t localhost:5001/langgraph-currency:latest \
40-
--build-arg DOCKER_REGISTRY=localhost:5001 \
36+
-t ghcr.io/langgraph-currency:latest \
37+
--build-arg DOCKER_REGISTRY=ghcr.io \
4138
--build-arg VERSION=latest \
4239
--push
4340
```
4441

42+
If you do not have a Docker registry, you can use the `make helm-install` command to create one as part of installing kagent in your kind cluster.
43+
Then, change `ghcr.io` to `localhost:5001`.
44+
45+
4546
## Creating a BYO Agent resource
4647

4748
Now that you have your own custom agent image, you can create a BYO Agent resource for kagent to manage.
@@ -74,7 +75,7 @@ Now that you have your own custom agent image, you can create a BYO Agent resour
7475
type: BYO
7576
byo:
7677
deployment:
77-
image: localhost:5001/langgraph-currency:latest
78+
image: ghcr.io/langgraph-currency:latest
7879
env:
7980
- name: GOOGLE_API_KEY
8081
valueFrom:

0 commit comments

Comments
 (0)