1 cd kops/kops/
2 ls
3 vi upup/pkg/fi/cloudup/template_functions.go
4 kops
5 cd
6 wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
7 sudo rm -rf /usr/local/go &&sudo tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
8 export PATH=$PATH:/usr/local/go/bin
9 which go
10 go version
11 mkdir kops
12 cd kops
13 export GOPATH=pwd
14 git clone https://github.com/kubernetes/kops.git
15 git fetch –all
16 cd kops/
17 git fetch –all
18 git checkout -b release-1.20 origin/release-1.20
19 vi upup/pkg/fi/cloudup/template_functions.go
20 sudo apt install npm
21 sudo apt update
22 sudo apt install npm
23 sudo npm install -g @bazel/bazelisk
24 bazel build –@io_bazel_rules_go//go/config:pure –platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //dns-controller/…
25 ls -lat
26 cd ..
27 ls
28 cd kops/
29 ls
30 ls -lat
31 cd bazel-kops
32 ls
33 cd dns-controller
34 ls
35 ls -lat
36 cd cmd/
37 ls
38 dns-controller
39 cd dns-controller/
40 ls
41 pwd
42 ls -lat
43 cd ..
44 ls
45 cd bazel-bin
46 ls
47 cd ..
48 cd ../../
49 ls
50 cd bazel-bin
51 ls
52 ls -lat
53 ls
54 cd dns-controller/
55 ls
56 cd cmd/
57 ls
58 cd dns-controller/
59 ls
60 ls -lat
61 tar zxf image-bundle-amd64.tar.gz
62 ls
63 ls -lat
64 tar zxvf image-bundle-amd64.tar.gz
65 cat manifest.json
66 cat a458f80703ea6c58736cc28a08518a7f504aa57df5b54609481e97bae20b258a.json
67 ls -lat
68 a458f80703ea6c58736cc28a08518a7f504aa57df5b54609481e97bae20b258a.json
69 a458f80703ea6c58736cc28a08518a7f504aa57df5b54609481e97bae20b258a.jsonls -lat
70 ls -lat
71 cat a38fa2314c0730339bb3cd08feb5d02d70990646a60624e00744bdc3897f40f4/json
72 cat 58a2f2648ece44fcf8d5e746e052244af8945c28ef764bcf4afc8b4f7d4bf99c/json
73 cat 19efc61537b5d4cafcb01cf45dadf760aa52b7974fbb285a697d0742562f6abf/json
74 cat a38fa2314c0730339bb3cd08feb5d02d70990646a60624e00744bdc3897f40f4/VERSION
75 ls -latcd ./../../
76 cd ..
77 ls -lat
78 git branch
79 maek bazel-crossbuild-dns-controller
80 make bazel-crossbuild-dns-controller
81 vi Makefile
82 $(shell tools/get_workspace_status.sh | grep STABLE_DNS_CONTROLLER_TAG | awk ‘{print $$2}’)
83 sudo docker image list
84 docker
85 sudo apt install docker.io
86 sudo docker ps -a
87 sudo docker image list
88 make dns-controller-push
89 vi Makefile
90 export DOCKER_IMAGE_PREFIX=hegwout
91 make dns-controller-push
92 vi Makefile
93 export DOCKER_IMAGE_PREFIX=/kops/
94 make dns-controller-push
95 export DOCKER_IMAGE_PREFIX=hegwout
96 make dns-controller-push
97 export DOCKER_IMAGE_PREFIX=hegwout/
98 make dns-controller-push
99 vi Makefile
100 make dns-controller-push
101 docker login
102 export DOCKER_IMAGE_PREFIX=hegwlive/
103 docker login
104 docker login docker.io
105 docker login
106 docker login –help
107 docker login -u hegwlive -p Tv59Cxu3nTNJQfS docker.io
108 docker login -u hegwlive -p Tv59Cxu3nTNJQfS docker.com
109 docker login -u hegwlive docker.com
110 docker login registry-1.docker.io
111 cd
112 ls
113 ls -lat
114 vi /etc/docker/key.json
115 cd –
116 sudo docker login
117 make dns-controller-push
118 cat /home/azureuser/.docker/config.json
119 sudo cat /home/azureuser/.docker/config.json
120 chmod 777 /home/azureuser/.docker/config.json
121 sudo chmod 777 /home/azureuser/.docker/config.json
122 make dns-controller-push
123 cat /home/azureuser/.docker/config.json
124 cd ~/.docker/
125 ls
126 chmod -R 777 /home/azureuser/.docker/config.json
127 sudo chmod -R 777 /home/azureuser/.docker/config.json
128 make dns-controller-push
129 sudo make dns-controller-push
130 sudo docker image list
131 sudo docker image list -A
132 sudo docker image list -a
133 ls
134 ls -lat
135 chown -R azureuser:azureuser ~/.docker/
136 sudo chown -R azureuser:azureuser ~/.docker/
137 make dns-controller-push
138 history
139 ls -lat
140 pwd
141 ls -lat
142 history