|
31 | 31 | organization = args.organization
|
32 | 32 |
|
33 | 33 | # Upload pytorch/torchserve docker binaries
|
34 |
| - try_and_handle(f"./build_image.sh -t {organization}/torchserve:latest", dry_run) |
| 34 | + try_and_handle(f"./build_image.sh -m -t {organization}/torchserve:latest", dry_run) |
35 | 35 | try_and_handle(
|
36 | 36 | f"./build_image.sh -g -cv cu121 -t {organization}/torchserve:latest-gpu",
|
37 | 37 | dry_run,
|
|
44 | 44 | f"./build_image.sh -bt dev -g -cv cu121 -cpp -t {organization}/torchserve:latest-cpp-dev-gpu",
|
45 | 45 | dry_run,
|
46 | 46 | )
|
| 47 | + |
47 | 48 | try_and_handle(
|
48 |
| - f"docker tag {organization}/torchserve:latest {organization}/torchserve:latest-cpu", |
| 49 | + f"docker buildx imagetools create --tag {organization}/torchserve:latest-cpu {organization}/torchserve:latest", |
49 | 50 | dry_run,
|
50 | 51 | )
|
| 52 | + |
51 | 53 | try_and_handle(
|
52 |
| - f"docker tag {organization}/torchserve:latest {organization}/torchserve:{check_ts_version()}-cpu", |
| 54 | + f"docker buildx imagetools create --tag {organization}/torchserve:{check_ts_version()}-cpu {organization}/torchserve:latest", |
53 | 55 | dry_run,
|
54 | 56 | )
|
| 57 | + |
55 | 58 | try_and_handle(
|
56 | 59 | f"docker tag {organization}/torchserve:latest-gpu {organization}/torchserve:{check_ts_version()}-gpu",
|
57 | 60 | dry_run,
|
|
66 | 69 | )
|
67 | 70 |
|
68 | 71 | for image in [
|
69 |
| - f"{organization}/torchserve:latest", |
70 |
| - f"{organization}/torchserve:latest-cpu", |
71 | 72 | f"{organization}/torchserve:latest-gpu",
|
72 | 73 | f"{organization}/torchserve:latest-cpp-dev-cpu",
|
73 | 74 | f"{organization}/torchserve:latest-cpp-dev-gpu",
|
74 |
| - f"{organization}/torchserve:{check_ts_version()}-cpu", |
75 | 75 | f"{organization}/torchserve:{check_ts_version()}-gpu",
|
76 | 76 | f"{organization}/torchserve:{check_ts_version()}-cpp-dev-cpu",
|
77 | 77 | f"{organization}/torchserve:{check_ts_version()}-cpp-dev-gpu",
|
|
0 commit comments