class DockerBuild

Public Class Methods

composer() click to toggle source
# File lib/docker-build.rb, line 3
def self.composer
    Composer
end
data_container(docker_file_path) click to toggle source
# File lib/docker-build.rb, line 15
def self.data_container(docker_file_path)
    command = "docker build --no-cache #{docker_file_path}"
    output = `#{command}`

    puts output

    output_match = /(Successfully built )(.*)/.match(output)

    fail 'Docker failed to build the container!' unless output_match

    puts output_match[2]

    return output_match[2]
end
google() click to toggle source
# File lib/docker-build.rb, line 11
def self.google
    Google
end
symfony() click to toggle source
# File lib/docker-build.rb, line 7
def self.symfony
    Symfony
end