lib/odania_ops/cli/docker.rb in odania_ops-0.0.2 vs lib/odania_ops/cli/docker.rb in odania_ops-0.0.3
- old
+ new
@@ -24,9 +24,11 @@
OdaniaOps::Helper::Docker.push image_name
end
desc 'base_image_check <folder>', 'Searches for all Dockerfiles under <folder> and looks for the base image'
def base_image_check(folder)
+ OdaniaOps::Helper::Docker.login
+
failed_images = []
Dir.glob("#{folder}/**/Dockerfile").each do |file|
result = check_latest_base_image file
failed_images << result unless result
end
\ No newline at end of file