Use DRY extraction
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
class Mrsk::Commands::App < Mrsk::Commands::Base
|
class Mrsk::Commands::App < Mrsk::Commands::Base
|
||||||
def push
|
def push
|
||||||
# TODO: Run 'docker buildx create --use' when needed
|
# TODO: Run 'docker buildx create --use' when needed
|
||||||
|
# TODO: Make multiarch an option so Linux users can enjoy speedier builds
|
||||||
"docker buildx build --push --platform=linux/amd64,linux/arm64 -t #{config.absolute_image} ."
|
"docker buildx build --push --platform=linux/amd64,linux/arm64 -t #{config.absolute_image} ."
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -18,11 +19,11 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def stop
|
def stop
|
||||||
"docker ps -q --filter label=service=#{config.service} | xargs docker stop"
|
"docker ps -q #{service_filter} | xargs docker stop"
|
||||||
end
|
end
|
||||||
|
|
||||||
def info
|
def info
|
||||||
"docker ps --filter label=service=#{config.service}"
|
"docker ps #{service_filter}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_containers
|
def remove_containers
|
||||||
|
|||||||
Reference in New Issue
Block a user