Sha256: 0ed7700f6016bc7504a4431c203bf5d3f05d89bdfc58f8b7cbb4e6d6f46be876

Contents?: true

Size: 704 Bytes

Versions: 12

Compression:

Stored size: 704 Bytes

Contents

require_relative 'task_helper'

namespace :dad do
  namespace :docker do

    desc 'delete stopped containers and untagged images'
    task :clean do
      unless `docker ps -qa --filter status=exited`.empty?
        run 'docker rm `docker ps -qa --filter status=exited`'
      end
      unless `docker images -q --filter "dangling=true"`.empty?
        run 'docker rmi `docker images -q --filter "dangling=true"`'
      end
    end

    desc 'install Docker'
    task :install do
      run_itamae 'docker/install'
    end

    namespace :registry do

      desc 'install Docker Registry'
      task :install do
        run_itamae 'docker/install', 'docker/registry/install'
      end
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
daddy-0.5.14 lib/tasks/docker.rake
daddy-0.5.13 lib/tasks/docker.rake
daddy-0.5.12 lib/tasks/docker.rake
daddy-0.5.11 lib/tasks/docker.rake
daddy-0.5.10 lib/tasks/docker.rake
daddy-0.5.9 lib/tasks/docker.rake
daddy-0.5.8 lib/tasks/docker.rake
daddy-0.5.7 lib/tasks/docker.rake
daddy-0.5.6 lib/tasks/docker.rake
daddy-0.5.5 lib/tasks/docker.rake
daddy-0.5.4 lib/tasks/docker.rake
daddy-0.5.3 lib/tasks/docker.rake