Adam Dangoor
55b552121b
Fix type of Docker BuildError.build_log ( #11917 )
...
In working this out I also had a go at changing the json_stream
functions used to create every BuildError in docker-py.
There are two `BuildError`s raised in docker-py, both in
b6464dbed9/docker/models/images.py (L304-L315)
```python
result_stream, internal_stream = itertools.tee(json_stream(resp))
for chunk in internal_stream:
if 'error' in chunk:
raise BuildError(chunk['error'], result_stream)
if 'stream' in chunk:
match = re.search(
r'(^Successfully built |sha256:)([0-9a-f]+)$',
chunk['stream']
)
if match:
image_id = match.group(2)
last_event = chunk
if image_id:
return (self.get(image_id), result_stream)
raise BuildError(last_event or 'Unknown', result_stream)
```
2024-05-18 08:26:17 -04:00
..
2024-04-02 15:44:44 +02:00
2024-03-30 18:34:51 -07:00
2024-05-15 14:56:43 -04:00
2024-04-22 15:10:59 +01:00
2024-05-10 10:45:44 +02:00
2024-03-30 18:34:51 -07:00
2024-04-22 15:03:38 +02:00
2024-02-04 16:38:55 -08:00
2024-04-04 12:32:02 +02:00
2023-10-26 20:07:20 +02:00
2024-03-30 18:34:51 -07:00
2024-04-07 07:32:41 -04:00
2024-03-30 18:34:51 -07:00
2024-03-09 14:25:00 -08:00
2023-07-22 20:21:37 +01:00
2024-03-10 14:11:43 +01:00
2024-03-10 14:11:43 +01:00
2024-01-05 15:40:13 +01:00
2023-07-20 16:45:41 +02:00
2024-04-22 11:31:04 +01:00
2024-04-19 08:58:09 +02:00
2024-03-09 14:25:00 -08:00
2024-02-17 15:56:08 +01:00
2024-03-10 14:11:43 +01:00
2024-05-18 08:26:17 -04:00
2024-01-05 15:40:13 +01:00
2023-08-13 22:03:33 +01:00
2024-04-22 14:58:21 +02:00
2024-04-20 14:28:39 +02:00
2024-01-05 11:39:39 +01:00
2024-03-10 14:11:43 +01:00
2024-03-09 14:25:00 -08:00
2023-07-20 16:45:41 +02:00
2024-05-09 19:50:07 -07:00
2023-07-20 16:45:41 +02:00
2024-04-27 09:00:14 +01:00
2024-04-10 07:37:36 +01:00
2023-07-20 16:45:41 +02:00
2023-07-20 16:45:41 +02:00
2023-09-24 01:16:29 +01:00
2023-10-03 06:07:50 +01:00
2024-04-04 12:34:44 +02:00
2024-03-10 08:01:38 -07:00
2024-03-30 18:34:51 -07:00
2024-05-18 06:51:24 -04:00
2024-04-07 06:53:56 -04:00
2024-04-24 14:09:16 +02:00
2024-03-11 00:22:14 +01:00
2024-03-10 14:11:43 +01:00
2024-04-17 09:50:58 -07:00
2024-02-27 11:55:29 -08:00
2024-03-09 14:25:00 -08:00
2023-10-26 20:07:20 +02:00
2024-05-13 05:31:48 -07:00
2024-03-10 14:11:43 +01:00
2024-04-08 12:51:48 -04:00
2024-05-18 06:43:35 -04:00
2024-03-09 14:25:00 -08:00
2024-04-24 08:10:33 +02:00
2024-01-05 15:40:13 +01:00
2024-04-30 18:14:38 -07:00
2024-03-09 14:25:00 -08:00
2024-02-04 16:38:55 -08:00
2024-04-24 14:09:16 +02:00
2024-02-27 21:54:57 +02:00
2024-03-15 07:10:23 -07:00
2024-04-24 14:09:16 +02:00
2024-03-10 14:11:43 +01:00
2024-03-10 14:11:43 +01:00
2024-03-30 18:34:51 -07:00
2024-05-17 08:52:26 +02:00
2024-02-16 05:46:32 -08:00
2024-02-28 22:27:07 -08:00
2024-04-27 15:16:22 +02:00
2023-07-20 16:45:41 +02:00
2024-03-20 12:43:14 +01:00
2024-04-22 16:49:03 +02:00
2024-03-30 18:34:51 -07:00
2024-03-26 19:35:41 +01:00
2023-07-20 16:45:41 +02:00
2024-04-23 15:26:36 -04:00
2023-07-20 16:45:41 +02:00
2024-03-10 14:11:43 +01:00
2024-04-22 15:10:59 +01:00
2024-05-10 10:29:09 +02:00
2023-07-20 16:45:41 +02:00
2024-03-26 14:13:29 +01:00
2023-10-29 01:13:25 +01:00
2024-04-21 19:33:31 +02:00
2024-05-15 21:11:21 -04:00
2024-04-16 06:26:14 -07:00
2024-04-01 09:49:37 +01:00
2024-05-15 12:07:55 -04:00
2024-04-05 13:30:27 +02:00
2024-01-05 15:40:13 +01:00
2024-04-20 14:29:30 +02:00
2024-03-10 14:11:43 +01:00
2024-05-14 07:50:51 +02:00
2024-03-16 14:14:15 +01:00
2024-05-05 07:39:39 -07:00
2024-04-25 22:42:18 +02:00
2024-03-09 14:25:00 -08:00
2024-04-24 14:09:16 +02:00
2024-05-11 01:40:48 +01:00
2024-04-24 07:58:52 -07:00
2023-07-20 16:45:41 +02:00
2024-04-05 13:30:27 +02:00
2024-03-10 14:11:43 +01:00
2024-01-05 15:40:13 +01:00
2024-03-09 14:25:00 -08:00
2024-04-16 06:26:14 -07:00
2023-07-20 16:45:41 +02:00
2024-03-15 17:06:54 +01:00
2023-07-20 16:45:41 +02:00
2024-01-05 15:40:13 +01:00
2024-01-05 15:40:13 +01:00
2024-03-09 14:25:00 -08:00
2024-04-06 20:15:59 +02:00
2024-04-16 06:26:14 -07:00
2024-04-07 07:18:19 -04:00
2024-01-05 15:40:13 +01:00
2024-03-10 14:11:43 +01:00
2024-04-11 10:07:22 +03:00
2024-04-07 06:49:50 -04:00
2024-04-24 14:09:16 +02:00
2024-05-15 20:34:37 -04:00
2024-04-05 16:17:41 +02:00
2024-04-16 06:26:14 -07:00
2023-07-20 16:45:41 +02:00
2024-03-13 16:25:15 +01:00
2024-04-22 15:05:21 +02:00
2024-04-16 06:26:14 -07:00
2023-07-25 13:31:17 +01:00
2024-05-18 11:38:48 +02:00
2024-03-09 14:25:00 -08:00
2023-08-29 10:43:07 +01:00
2024-05-12 06:38:38 -07:00
2023-07-20 16:45:41 +02:00
2024-01-05 15:40:13 +01:00
2024-01-05 15:40:13 +01:00
2024-04-27 09:42:34 +01:00
2024-03-09 14:25:00 -08:00
2023-07-20 17:23:19 +02:00
2024-04-16 06:26:14 -07:00
2024-02-28 22:27:07 -08:00
2024-03-10 14:16:34 +00:00
2024-01-30 20:21:46 -08:00
2023-07-20 16:45:41 +02:00
2024-05-14 21:11:30 -04:00
2024-05-04 17:33:09 +02:00
2023-09-22 20:08:13 -07:00
2023-08-21 21:27:48 +02:00
2024-05-15 12:07:55 -04:00
2024-03-09 14:25:00 -08:00
2024-04-22 17:24:08 +02:00
2024-04-24 14:09:16 +02:00
2023-07-20 16:45:41 +02:00
2023-08-25 22:55:02 +03:00
2024-04-24 14:09:16 +02:00
2024-05-10 10:46:34 +02:00
2023-07-20 16:45:41 +02:00
2024-03-10 14:11:43 +01:00
2024-01-05 15:40:13 +01:00