Commit 50cf866
Replace go-containerregistry with containerd/moby (docker#536)
* Replace go-containerregistry with containerd/moby
This commit removes the vendored go-containerregistry package and replaces
it with containerd and moby packages for OCI registry operations.
Signed-off-by: Eric Curtin <[email protected]>
* fix for removing ggcr (docker#545)
* Add Docker Hub integration tests and hostname remapping for API requests
* Refactor Docker Model Runner setup to use a configuration struct for environment variables and log messages
* Update go.mod dependencies to include latest versions of cloud.google.com/go/compute/metadata and golang.org/x/oauth2
* Add support for HuggingFace registry in manifest fetching
* Refactor manifest endpoint logic to apply it only on HF repos
* Remove Docker Hub hostname remapping and update manifest fetching logic for HuggingFace registry
* Refactor manifest endpoint check for HuggingFace to use dedicated media type function
---------
Signed-off-by: Eric Curtin <[email protected]>
Co-authored-by: Ignasi <[email protected]>1 parent fe10622 commit 50cf866
File tree
554 files changed
+3614
-67581
lines changed- cmd/cli
- commands
- pkg
- distribution
- builder
- distribution
- huggingface
- internal
- bundle
- gguf
- mutate
- partial
- progress
- safetensors
- store
- modelpack
- oci
- authn
- reference
- remote
- registry
- testregistry
- tarball
- types
- go-containerregistry
- .ko/debug
- cmd
- crane
- cmd
- doc
- help
- gcrane
- cmd
- ko
- krane
- registry
- hack
- boilerplate
- images
- dot
- internal
- and
- cmd
- compression
- depcheck
- editor
- estargz
- gzip
- httptest
- redact
- retry
- wait
- verify
- windows
- zstd
- pkg
- authn
- github
- k8schain
- tests
- explicit
- implicit
- noauth
- serviceaccount
- kubernetes
- compression
- crane
- testdata
- gcrane
- legacy
- tarball
- logs
- name
- internal
- registry
- v1
- cache
- compare
- daemon
- empty
- fake
- google
- testdata
- layout
- testdata
- test_gc_image_unknown_mediatype
- test_gc_index
- blobs/sha256
- test_index_media_type
- blobs/sha256
- test_index_one_image
- blobs/sha256
- test_index
- blobs/sha256
- match
- mutate
- testdata
- whiteout
- partial
- random
- remote
- transport
- static
- stream
- tarball
- testdata
- bat
- types
- validate
- inference
- backends
- llamacpp
- mlx
- models
- scheduling
- metrics
- ollama
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
554 files changed
+3614
-67581
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | | - | |
19 | | - | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | | - | |
40 | | - | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
83 | 91 | | |
84 | 92 | | |
85 | 93 | | |
| 94 | + | |
86 | 95 | | |
87 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
88 | 100 | | |
89 | | - | |
90 | | - | |
| 101 | + | |
| 102 | + | |
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
| |||
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
| 119 | + | |
107 | 120 | | |
108 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
109 | 125 | | |
110 | | - | |
111 | | - | |
| 126 | + | |
| 127 | + | |
112 | 128 | | |
113 | 129 | | |
114 | 130 | | |
| |||
136 | 152 | | |
137 | 153 | | |
138 | 154 | | |
| 155 | + | |
139 | 156 | | |
140 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
141 | 161 | | |
142 | | - | |
143 | | - | |
| 162 | + | |
| 163 | + | |
144 | 164 | | |
145 | 165 | | |
146 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | | - | |
22 | | - | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
82 | 90 | | |
83 | | - | |
84 | | - | |
| 91 | + | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| |||
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
152 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
153 | 167 | | |
154 | 168 | | |
155 | 169 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | 170 | | |
161 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
162 | 178 | | |
163 | 179 | | |
164 | 180 | | |
| |||
169 | 185 | | |
170 | 186 | | |
171 | 187 | | |
172 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
173 | 195 | | |
174 | 196 | | |
175 | 197 | | |
| |||
185 | 207 | | |
186 | 208 | | |
187 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
188 | 221 | | |
189 | 222 | | |
190 | 223 | | |
| |||
1037 | 1070 | | |
1038 | 1071 | | |
1039 | 1072 | | |
1040 | | - | |
| 1073 | + | |
1041 | 1074 | | |
1042 | 1075 | | |
1043 | 1076 | | |
| |||
1070 | 1103 | | |
1071 | 1104 | | |
1072 | 1105 | | |
1073 | | - | |
| 1106 | + | |
1074 | 1107 | | |
1075 | 1108 | | |
1076 | 1109 | | |
| |||
1100 | 1133 | | |
1101 | 1134 | | |
1102 | 1135 | | |
1103 | | - | |
| 1136 | + | |
1104 | 1137 | | |
1105 | 1138 | | |
1106 | 1139 | | |
| |||
1118 | 1151 | | |
1119 | 1152 | | |
1120 | 1153 | | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| |||
0 commit comments