Sha256: 0c8776db0f62b3c7b987af466e26989e816489665ca57e68f8b86cc23a7d2e99

Contents?: true

Size: 1013 Bytes

Versions: 20

Compression:

Stored size: 1013 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: ['docker:image: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

20 entries across 20 versions & 1 rubygems

Version Path
ridgepole-0.8.13 omnibus-ridgepole/Rakefile
ridgepole-0.9.0.beta omnibus-ridgepole/Rakefile
ridgepole-0.8.12 omnibus-ridgepole/Rakefile
ridgepole-0.8.11 omnibus-ridgepole/Rakefile
ridgepole-0.8.10 omnibus-ridgepole/Rakefile
ridgepole-0.8.9 omnibus-ridgepole/Rakefile
ridgepole-0.8.8 omnibus-ridgepole/Rakefile
ridgepole-0.8.7 omnibus-ridgepole/Rakefile
ridgepole-0.8.6 omnibus-ridgepole/Rakefile
ridgepole-0.8.5 omnibus-ridgepole/Rakefile
ridgepole-0.8.4 omnibus-ridgepole/Rakefile
ridgepole-0.8.3 omnibus-ridgepole/Rakefile
ridgepole-0.8.2 omnibus-ridgepole/Rakefile
ridgepole-0.8.1 omnibus-ridgepole/Rakefile
ridgepole-0.8.0 omnibus-ridgepole/Rakefile
ridgepole-0.8.0.rc2 omnibus-ridgepole/Rakefile
ridgepole-0.7.8 omnibus-ridgepole/Rakefile
ridgepole-0.8.0.rc1 omnibus-ridgepole/Rakefile
ridgepole-0.7.7 omnibus-ridgepole/Rakefile
ridgepole-0.7.6 omnibus-ridgepole/Rakefile