docker/pool/builder/lib/builder.rb
# Build Docker image from Git commit id.
# Docker image will be built by Dockerfile in Git repository which is pointed
# by Git commit id.
# This method returns Docker image id.
Build Docker image from Git commit id.
Docker image will be built by Dockerfile in Git repository which is pointed
by Git commit id.
This method returns Docker image id.
Build Docker image from Git commit id . Docker image will be built by Dockerfile in Git repository which is pointed by Git commit id . This method returns Docker image id .
def build
      @logger.info "Build for #{@git_commit_id} ..."
      @workspace = init_repo(@repository[:url],
                        @repository[:path],
                        @logger,
                        :workspace_dir => @git_commit_id)
      @logger.info @workspace.checkout(@git_commit_id)
      @logger.info 'Start building docker image...'
      image = Docker.build("#{@repository[:container_prefix]}/#{@git_commit_id}",
                   "#{@workspace.dir.path}"
                  )
      image_id = image.json["Id"]
      write_ids(image_id)
      image_id
    end
def build @logger . info "Build for #{@git_commit_id} ..." @workspace = init_repo ( @repository [ :url ] , @repository [ :path ] , @logger , :workspace_dir => @git_commit_id ) @logger . info @workspace . checkout ( @git_commit_id ) @logger . info 'Start building docker image...' image = Docker . build ( "#{@repository[:container_prefix]}/#{@git_commit_id}" , "#{@workspace.dir.path}" ) image_id = image . json [ "Id" ] write_ids ( image_id ) image_id end
Build Docker image from Git commit id.
Build Docker image from Git commit id .