refactor: handle CreateContainer server-side

This commit is contained in:
Pavel Sviderski
2025-03-28 19:01:19 +10:00
parent 3893005866
commit 1cba1eef0a
10 changed files with 423 additions and 182 deletions
+9
View File
@@ -19,6 +19,8 @@ service Docker {
// InspectRemoteImage returns the image metadata for an image in a remote registry using the machine's
// Docker auth credentials if necessary.
rpc InspectRemoteImage(InspectRemoteImageRequest) returns (InspectRemoteImageResponse);
rpc CreateServiceContainer(CreateServiceContainerRequest) returns (CreateContainerResponse);
}
message CreateContainerRequest {
@@ -123,3 +125,10 @@ message RemoteImage {
// Raw JSON manifest from the registry.
bytes manifest = 3;
}
message CreateServiceContainerRequest {
string service_id = 1;
// JSON serialised api.ServiceSpec.
bytes service_spec = 2;
string container_name = 3;
}