No release in over 3 years
Low commit activity in last 3 years
Provide rake tasks to manage image.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Easyfier for Docker image projects

This gem can be used with rake, in order to provide recurrent tasks related to Docker image development. The following tasks are provided (as default):

rake build[cached]         # Build image
rake exec[command]         # Run a command in a running container
rake push                  # Push image
rake restart               # Restart container
rake run[command]          # Run a command in a new container
rake start                 # Start container as awseome_image
rake stop                  # Stop container

Sample of use

In your Rakefile:

require 'kamaze/docker_image'

Kamaze::DockerImage.new do |config|
  config.name    = 'awseome_image'
  config.version = '4.2.2'

  config.path    = 'image'
  config.verbose = false
end

task default: [:build]

Secure Shell (SSH)

Optionally, ssh task can be enabled:

Kamaze::DockerImage.new do |config|
  config.ssh = {
    enabled: true
  }
end

Now, you can do:

rake build restart ssh[pstree]
rake ssh

SSH will wait (using a timeout) until your container is up and running.

Install

In your gems.rb:

source 'https://rubygems.org'
git_source(:github) { |name| "https://github.com/#{name}.git" }

gem 'kamaze-docker_image', \
    github: 'SwagDevOps/kamaze-docker_image', branch: 'master'