New command to publish worker using Docker image
Depends https://gitlab.com/teklia/arkindex/backend/-/issues/1531
This will be a client for CreateDockerWorkerVersion, named arkindex worker publish
CLI Parameters:
-
docker_image_tagrequired, as argument -
--worker-slugrequired -
--repository-urloptional- when not set, try to find from git repo (using
git remotewe can find the url of the repo, translating ssh url into http, hardcoding replacement for gitlab for example)
- when not set, try to find from git repo (using
-
--revision-hashoptional- when not set, try to find from git repo using current revision
-
--revision-messageoptional- when not set, try to find from git repo using current revision
-
--revision-authoroptional- when not set, try to find from git repo using current revision
-
--revision-branchoptional- when not set, try to find from git repo using current revision
-
--revision-tagoptional- when not set, try to find from git repo using current revision
-
--configuration-path, required, must be valid JSON file -
--gpu=disabled|supported|required, optional, default to disabled -
--requires-model, optional, store_true, default to False