Skip to content

Commit 979b10f

Browse files
committed
modified documentation
1 parent 028cf81 commit 979b10f

1 file changed

Lines changed: 35 additions & 1 deletion

File tree

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,39 @@ make uninstall
7474
make undeploy
7575
```
7676

77-
##
77+
## Update cdnos controller image on AWS
7878

79+
To update cdnos controller, update the image tag on makefile:
80+
This line:
81+
>>> CONTROLLER_IMG ?= public.ecr.aws/dn/cdnos-controller:<your-tag>
82+
83+
84+
Rebuild the image:
85+
86+
```sh
87+
make docker-build
88+
```
89+
90+
Connect to aws ecr registry:
91+
```sh
92+
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/dn
93+
```
94+
95+
Push image to registry:
96+
```sh
97+
make docker-push```
98+
99+
We want to keep the latest tag updated so tag the image to `latest`:
100+
```sh
101+
docker tag public.ecr.aws/dn/cdnos-controller:<your-tag> public.ecr.aws/dn/cdnos-controller:latest
102+
```
103+
104+
And push it to AWS ecr:
105+
```sh
106+
docker push public.ecr.aws/dn/cdnos-controller:latest
107+
```
108+
109+
You should now be able to pull the image:
110+
111+
```sh
112+
docker pull public.ecr.aws/dn/cdnos-controller:<your-tag>```

0 commit comments

Comments
 (0)