Sha256: 23baebab769171c5f00a9a499cba5567a15c8bd41842748c2037b384987c83f4

Contents?: true

Size: 991 Bytes

Versions: 4

Compression:

Stored size: 991 Bytes

Contents

DOCKER_IMAGE_UBUNTU = 'omnibus-ridgepole-ubuntu'
DOCKER_IMAGE_CENTOS = 'omnibus-ridgepole-chentos'

namespace :docker do
  namespace :image do
    task build: ['build:ubuntu', 'build:centos']

    namespace :build do
      task :ubuntu do
        sh 'docker', 'build', '-t', DOCKER_IMAGE_UBUNTU, '-f', 'Dockerfile.ubuntu', '.'
      end

      task :centos do
        sh 'docker', 'build', '-t', DOCKER_IMAGE_CENTOS, '-f', 'Dockerfile.centos', '.'
      end
    end
  end

  namespace :omnibus do
    task :build do
      sh 'omnibus', 'build', 'ridgepole'
    end
  end
end

namespace :omnibus do
  task build: ['build:ubuntu', 'build:centos']

  namespace :build do
    task :ubuntu do
      sh 'docker', 'run', '-v', "#{pwd}:/omnibus-ridgepole", DOCKER_IMAGE_UBUNTU, 'bundle', 'exec', 'rake docker:omnibus:build'
    end

    task :centos do
      sh 'docker', 'run', '-v', "#{pwd}:/omnibus-ridgepole", DOCKER_IMAGE_CENTOS, 'bundle', 'exec', 'rake docker:omnibus:build'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ridgepole-0.7.5 omnibus-ridgepole/Rakefile
ridgepole-0.7.5.beta3 omnibus-ridgepole/Rakefile
ridgepole-0.7.5.beta2 omnibus-ridgepole/Rakefile
ridgepole-0.7.5.beta omnibus-ridgepole/Rakefile