Local build doesn't need a builder

This commit is contained in:
Donal McBreen
2024-06-06 11:11:54 +01:00
parent c93f0f3048
commit 10a7645ab8

View File

@@ -1,10 +1,8 @@
class Kamal::Commands::Builder::Local < Kamal::Commands::Builder::Base
def create
docker :buildx, :create, "--name", builder_name, "--driver=docker-container"
end
def remove
docker :buildx, :rm, builder_name
end
def info
@@ -22,10 +20,6 @@ class Kamal::Commands::Builder::Local < Kamal::Commands::Builder::Base
build_context
end
def context_hosts
docker :buildx, :inspect, builder_name, "> /dev/null"
end
private
def builder_name
"kamal-local"