This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
Set docker build
args and similar for deployment targets
#647
Labels
breaking-change
This is going to break users code
build
Exporting models (building model packages)
deploy
Related to model deployment
🏡 housekeeping
Fighting technical debt and improving dev process
Right now
mlem build docker --help
provide control over manydocker build
options via using class DockerBuildArgs(BaseModel).Ideally, these options should be available when running
mlem deploy $TARGET
, but they're not. One reason for this implementation was that platforms set their own limitations for these options (such as Heroku allows only someplatforms
for docker build to be used). However, this requires us to introduce each option needed manually, example being:build_arg
in Resolve requirements installed from Git or local source #645daemon
andregistry
introduced much earlierIdeally, all deployments should inherit class
DockerModelDirectory
orDockerImageBuilder
instead of re-implementing functions likebuild_heroku_docker
orbuild_k8s_docker
orbuild_sagemaker_docker
. This should extend to CLI so users be able to set those options in CLI.This calls for refactoring with breaking changes, since options added manually (mentioned above) could change their locations, and start looking just like those in
build docker
now.Keeping it "as is" instead will lead to manually work (e.g. I've added
build_arg
to k8s deployment only, but it should be added to each deployment target, and it should be done for each param), so refactoring and breaking changes are inevitable if we're going to improve the tool.cc @omesser FYI
The text was updated successfully, but these errors were encountered: